@permute/sdk 0.9.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +60 -3
- package/dist/auth/oauth.d.ts +4 -0
- package/dist/auth/oauth.js +5 -1
- package/dist/auth/request.d.ts +24 -0
- package/dist/auth/request.js +15 -0
- package/dist/cli.js +13 -1
- package/dist/client.d.ts +28 -2
- package/dist/client.js +31 -1
- package/dist/generated/openapi.d.ts +466 -5
- package/dist/generated/runtime-contract.d.ts +3 -1
- package/dist/generated/runtime-contract.js +84 -16
- package/dist/types.d.ts +16 -0
- package/package.json +1 -1
|
@@ -12,7 +12,7 @@ export const publicApiRoutes = {
|
|
|
12
12
|
"permissionsList": { "operationId": "permissionsList", "method": "GET", "path": "/v1/permissions", "scope": "organization", "bodySchema": null, "querySchema": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1, "maxLength": 128 }, "resourceType": { "type": "string", "minLength": 1, "maxLength": 128 }, "workspaceId": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": [], "additionalProperties": false }, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "principalType": { "type": "string" }, "principalId": { "type": "string" }, "resourceId": { "type": "string" }, "resourceType": { "type": "string" }, "subResourceId": { "nullable": true, "type": "string" }, "level": { "type": "string", "enum": ["read", "write", "admin"] }, "operations": { "nullable": true, "type": "array", "items": { "type": "string" } }, "organizationId": { "type": "string" }, "workspaceId": { "nullable": true, "type": "string" }, "grantedBy": { "type": "string" }, "expiresAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["id", "principalType", "principalId", "resourceId", "resourceType", "subResourceId", "level", "operations", "organizationId", "workspaceId", "grantedBy", "expiresAt", "createdAt", "updatedAt"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
13
13
|
"permissionsCreate": { "operationId": "permissionsCreate", "method": "POST", "path": "/v1/permissions", "scope": "organization", "bodySchema": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1, "maxLength": 128 }, "resourceType": { "type": "string", "minLength": 1, "maxLength": 128 }, "level": { "type": "string", "enum": ["read", "write", "admin"] }, "subResourceId": { "description": "New grants support whole resources and resource-type wildcards, with optional expiry. Table, row, and column scopes within a shared source are not supported by current source query APIs, including databases, datasets, connectors, and operation outputs. For narrower reads, share separately filtered Data Table or Data Flow outputs while keeping broader sources restricted, or use an approved caller-filtered Business Action. Existing scoped app grants can be revoked with level: null and their original subResourceId; other scoped grants use the permission deletion API.", "type": "string", "minLength": 1, "maxLength": 128 }, "principalType": { "type": "string", "enum": ["user", "workspace", "organization", "apiKey", "application"] }, "principalId": { "type": "string", "minLength": 1, "maxLength": 320 }, "expiresAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "operations": { "minItems": 1, "maxItems": 8, "type": "array", "items": { "type": "string", "enum": ["application.read_metadata", "application.update_metadata", "application.read_implementation", "application.update_draft", "application.publish", "application.manage_access", "application.manage_hosting", "application.delete", "business_action.read_metadata", "business_action.invoke", "business_action.read_implementation", "business_action.update_draft", "business_action.publish", "business_action.manage_access", "business_action.delegate_access", "business_action.delete"] } } }, "required": ["resourceId", "resourceType", "level", "principalType", "principalId"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "principalType": { "type": "string" }, "principalId": { "type": "string" }, "resourceId": { "type": "string" }, "resourceType": { "type": "string" }, "subResourceId": { "nullable": true, "type": "string" }, "level": { "type": "string", "enum": ["read", "write", "admin"] }, "operations": { "nullable": true, "type": "array", "items": { "type": "string" } }, "organizationId": { "type": "string" }, "workspaceId": { "nullable": true, "type": "string" }, "grantedBy": { "type": "string" }, "expiresAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["id", "principalType", "principalId", "resourceId", "resourceType", "subResourceId", "level", "operations", "organizationId", "workspaceId", "grantedBy", "expiresAt", "createdAt", "updatedAt"], "additionalProperties": false } },
|
|
14
14
|
"permissionsInspect": { "operationId": "permissionsInspect", "method": "POST", "path": "/v1/permissions/inspect", "scope": "organization", "bodySchema": { "type": "object", "properties": { "resourceId": { "type": "string", "pattern": "^[a-zA-Z]+_[a-z0-9]{24}$" }, "principal": { "type": "object", "properties": { "type": { "type": "string", "enum": ["user", "apiKey", "application"] }, "id": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": ["type", "id"], "additionalProperties": false }, "applicationId": { "type": "string", "pattern": "^appl_[a-z0-9]{24}$" } }, "required": ["resourceId", "principal"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "resourceId": { "type": "string" }, "resourceType": { "type": "string" }, "workspaceId": { "nullable": true, "type": "string" }, "principal": { "type": "object", "properties": { "type": { "type": "string", "enum": ["user", "apiKey", "application"] }, "id": { "type": "string", "minLength": 1, "maxLength": 128 } }, "required": ["type", "id"], "additionalProperties": false }, "principalAccess": { "type": "object", "properties": { "level": { "nullable": true, "type": "string", "enum": ["read", "write", "admin", null] }, "sources": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["owner", "creator", "organization_member", "grant", "service"] }, "level": { "type": "string", "enum": ["read", "write", "admin"] }, "grant": { "type": "object", "properties": { "id": { "type": "string" }, "principalType": { "type": "string" }, "principalId": { "type": "string" }, "resourceId": { "type": "string" }, "resourceType": { "type": "string" }, "workspaceId": { "nullable": true, "type": "string" }, "expiresAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "operations": { "type": "array", "items": { "type": "string", "enum": ["application.read_metadata", "application.update_metadata", "application.read_implementation", "application.update_draft", "application.publish", "application.manage_access", "application.manage_hosting", "application.delete", "business_action.read_metadata", "business_action.invoke", "business_action.read_implementation", "business_action.update_draft", "business_action.publish", "business_action.manage_access", "business_action.delegate_access", "business_action.delete"] } } }, "required": ["id", "principalType", "principalId", "resourceId", "resourceType", "workspaceId", "expiresAt"], "additionalProperties": false } }, "required": ["kind", "level"], "additionalProperties": false } }, "restriction": { "nullable": true, "type": "string", "enum": ["identity_policy", "resource_scope", "no_grant", null] } }, "required": ["level", "sources", "restriction"], "additionalProperties": false }, "application": { "nullable": true, "type": "object", "properties": { "id": { "type": "string" }, "access": { "type": "object", "properties": { "level": { "nullable": true, "type": "string", "enum": ["read", "write", "admin", null] }, "sources": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["owner", "creator", "organization_member", "grant", "service"] }, "level": { "type": "string", "enum": ["read", "write", "admin"] }, "grant": { "type": "object", "properties": { "id": { "type": "string" }, "principalType": { "type": "string" }, "principalId": { "type": "string" }, "resourceId": { "type": "string" }, "resourceType": { "type": "string" }, "workspaceId": { "nullable": true, "type": "string" }, "expiresAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "operations": { "type": "array", "items": { "type": "string", "enum": ["application.read_metadata", "application.update_metadata", "application.read_implementation", "application.update_draft", "application.publish", "application.manage_access", "application.manage_hosting", "application.delete", "business_action.read_metadata", "business_action.invoke", "business_action.read_implementation", "business_action.update_draft", "business_action.publish", "business_action.manage_access", "business_action.delegate_access", "business_action.delete"] } } }, "required": ["id", "principalType", "principalId", "resourceId", "resourceType", "workspaceId", "expiresAt"], "additionalProperties": false } }, "required": ["kind", "level"], "additionalProperties": false } }, "restriction": { "nullable": true, "type": "string", "enum": ["identity_policy", "resource_scope", "no_grant", null] } }, "required": ["level", "sources", "restriction"], "additionalProperties": false } }, "required": ["id", "access"], "additionalProperties": false }, "effectiveLevel": { "nullable": true, "type": "string", "enum": ["read", "write", "admin", null] }, "effectiveOperations": { "type": "array", "items": { "type": "string", "enum": ["application.read_metadata", "application.update_metadata", "application.read_implementation", "application.update_draft", "application.publish", "application.manage_access", "application.manage_hosting", "application.delete", "business_action.read_metadata", "business_action.invoke", "business_action.read_implementation", "business_action.update_draft", "business_action.publish", "business_action.manage_access", "business_action.delegate_access", "business_action.delete"] } }, "restrictions": { "type": "array", "items": { "type": "string", "enum": ["workspace_access_required", "key_inactive", "key_expired", "key_scope"] } }, "evaluatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["resourceId", "resourceType", "workspaceId", "principal", "principalAccess", "application", "effectiveLevel", "restrictions", "evaluatedAt"], "additionalProperties": false } },
|
|
15
|
-
"connectorSessionsCreate": { "operationId": "connectorSessionsCreate", "method": "POST", "path": "/v1/connector-sessions", "scope": "workspace", "bodySchema": { "anyOf": [{ "type": "object", "properties": { "provider": { "type": "string", "enum": ["acumatica", "amazon_ads", "amazon_seller_central", "attio", "autodesk", "bigquery", "billcom", "brex", "double", "fireflies", "gmail", "googleads", "granola", "hubspot", "instantly", "klaviyo", "mercury", "meta_ads", "microsoft_advertising", "monday", "procore", "pylon", "quickbooks", "quo", "s3", "salesforce", "shopify", "stripe", "supabase", "tiktok_ads", "tiktok_shop", "xero", "yardi"] }, "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "connectorId": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" }, "config": { "type": "object", "additionalProperties": {} }, "returnUrl": { "type": "string", "maxLength": 2047, "format": "uri" } }, "required": ["provider"], "additionalProperties": false }, { "type": "object", "properties": { "provider": { "type": "string", "enum": ["acumatica", "amazon_ads", "amazon_seller_central", "attio", "autodesk", "bigquery", "billcom", "brex", "double", "fireflies", "gmail", "googleads", "granola", "hubspot", "instantly", "klaviyo", "mercury", "meta_ads", "microsoft_advertising", "monday", "procore", "pylon", "quickbooks", "quo", "s3", "salesforce", "shopify", "stripe", "supabase", "tiktok_ads", "tiktok_shop", "xero", "yardi"] }, "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "connectorId": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" }, "config": { "type": "object", "additionalProperties": {} }, "returnUrl": { "type": "string", "maxLength": 2047, "format": "uri" } }, "required": ["connectorId"], "additionalProperties": false }] }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "connectorId": { "type": "string" }, "provider": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "in_progress", "authorized", "completed", "expired"] }, "expiresAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "connectorStatus": { "type": "string" }, "url": { "type": "string", "format": "uri" } }, "required": ["id", "connectorId", "provider", "status", "expiresAt", "connectorStatus", "url"], "additionalProperties": false } },
|
|
15
|
+
"connectorSessionsCreate": { "operationId": "connectorSessionsCreate", "method": "POST", "path": "/v1/connector-sessions", "scope": "workspace", "bodySchema": { "anyOf": [{ "type": "object", "properties": { "provider": { "type": "string", "enum": ["acumatica", "amazon_ads", "amazon_seller_central", "attio", "autodesk", "bigquery", "billcom", "brex", "double", "fireflies", "gmail", "googleads", "granola", "hubspot", "instantly", "klaviyo", "mercury", "meta_ads", "microsoft_advertising", "monday", "postgres", "procore", "pylon", "quickbooks", "quo", "s3", "salesforce", "shopify", "stripe", "supabase", "tiktok_ads", "tiktok_shop", "xero", "yardi"] }, "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "connectorId": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" }, "config": { "type": "object", "additionalProperties": {} }, "returnUrl": { "type": "string", "maxLength": 2047, "format": "uri" } }, "required": ["provider"], "additionalProperties": false }, { "type": "object", "properties": { "provider": { "type": "string", "enum": ["acumatica", "amazon_ads", "amazon_seller_central", "attio", "autodesk", "bigquery", "billcom", "brex", "double", "fireflies", "gmail", "googleads", "granola", "hubspot", "instantly", "klaviyo", "mercury", "meta_ads", "microsoft_advertising", "monday", "postgres", "procore", "pylon", "quickbooks", "quo", "s3", "salesforce", "shopify", "stripe", "supabase", "tiktok_ads", "tiktok_shop", "xero", "yardi"] }, "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "connectorId": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" }, "config": { "type": "object", "additionalProperties": {} }, "returnUrl": { "type": "string", "maxLength": 2047, "format": "uri" } }, "required": ["connectorId"], "additionalProperties": false }] }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "connectorId": { "type": "string" }, "provider": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "in_progress", "authorized", "completed", "expired"] }, "expiresAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "connectorStatus": { "type": "string" }, "url": { "type": "string", "format": "uri" } }, "required": ["id", "connectorId", "provider", "status", "expiresAt", "connectorStatus", "url"], "additionalProperties": false } },
|
|
16
16
|
"connectorSessionsGet": { "operationId": "connectorSessionsGet", "method": "GET", "path": "/v1/connector-sessions/{sessionId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "connectorId": { "type": "string" }, "provider": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "in_progress", "authorized", "completed", "expired"] }, "expiresAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "connectorStatus": { "type": "string" } }, "required": ["id", "connectorId", "provider", "status", "expiresAt", "connectorStatus"], "additionalProperties": false } },
|
|
17
17
|
"resourceRevisionsList": { "operationId": "resourceRevisionsList", "method": "GET", "path": "/v1/resources/{resourceId}/revisions", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "resourceId": { "type": "string" }, "version": { "type": "string" }, "draft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "published": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "capabilities": { "type": "object", "properties": { "history": { "type": "boolean" }, "restore": { "type": "boolean" }, "publish": { "type": "boolean" } }, "required": ["history", "restore", "publish"], "additionalProperties": false }, "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "parentRevisionId": { "nullable": true, "type": "string" }, "dependencyRevisionIds": { "type": "array", "items": { "type": "string" } }, "actor": { "type": "object", "properties": { "type": { "type": "string", "enum": ["user", "apiKey", "system"] }, "id": { "nullable": true, "type": "string" } }, "required": ["type", "id"], "additionalProperties": false }, "message": { "nullable": true, "type": "string" }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["id", "parentRevisionId", "dependencyRevisionIds", "actor", "message", "createdAt"], "additionalProperties": false } } }, "required": ["resourceId", "version", "draft", "published", "capabilities", "items"], "additionalProperties": false } },
|
|
18
18
|
"resourceRevisionsGet": { "operationId": "resourceRevisionsGet", "method": "GET", "path": "/v1/resources/{resourceId}/revisions/{revisionId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "parentRevisionId": { "nullable": true, "type": "string" }, "dependencyRevisionIds": { "type": "array", "items": { "type": "string" } }, "actor": { "type": "object", "properties": { "type": { "type": "string", "enum": ["user", "apiKey", "system"] }, "id": { "nullable": true, "type": "string" } }, "required": ["type", "id"], "additionalProperties": false }, "message": { "nullable": true, "type": "string" }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "resourceId": { "type": "string" }, "value": { "type": "object", "additionalProperties": {} } }, "required": ["id", "parentRevisionId", "dependencyRevisionIds", "actor", "message", "createdAt", "resourceId", "value"], "additionalProperties": false } },
|
|
@@ -21,19 +21,37 @@ export const publicApiRoutes = {
|
|
|
21
21
|
"actionsPublicationRequestsCreate": { "operationId": "actionsPublicationRequestsCreate", "method": "POST", "path": "/v1/actions/{actionId}/publication-requests", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "revisionId": { "type": "string", "pattern": "^rvsn_[a-z0-9]{24}$" }, "expectedVersion": { "type": "string", "minLength": 1, "maxLength": 128 }, "reason": { "type": "string", "maxLength": 1000 } }, "required": ["revisionId", "expectedVersion"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "revisionId": { "type": "string" }, "expectedVersion": { "type": "string" }, "principalType": { "type": "string", "enum": ["user", "apiKey"] }, "principalId": { "type": "string" }, "reason": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "published", "rejected", "cancelled", "expired", "stale"] }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "expiresAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "canPublish": { "type": "boolean" }, "canCancel": { "type": "boolean" }, "actionId": { "type": "string" } }, "required": ["id", "revisionId", "expectedVersion", "principalType", "principalId", "reason", "status", "createdAt", "expiresAt", "canPublish", "canCancel", "actionId"], "additionalProperties": false } },
|
|
22
22
|
"actionsPublicationRequestsList": { "operationId": "actionsPublicationRequestsList", "method": "GET", "path": "/v1/actions/{actionId}/publication-requests", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "revisionId": { "type": "string" }, "expectedVersion": { "type": "string" }, "principalType": { "type": "string", "enum": ["user", "apiKey"] }, "principalId": { "type": "string" }, "reason": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "published", "rejected", "cancelled", "expired", "stale"] }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "expiresAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "canPublish": { "type": "boolean" }, "canCancel": { "type": "boolean" }, "actionId": { "type": "string" } }, "required": ["id", "revisionId", "expectedVersion", "principalType", "principalId", "reason", "status", "createdAt", "expiresAt", "canPublish", "canCancel", "actionId"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
23
23
|
"actionsPublicationRequestsDecide": { "operationId": "actionsPublicationRequestsDecide", "method": "POST", "path": "/v1/actions/{actionId}/publication-requests/{requestId}/decisions", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "decision": { "type": "string", "enum": ["approved", "rejected", "cancelled"] } }, "required": ["decision"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "revisionId": { "type": "string" }, "expectedVersion": { "type": "string" }, "principalType": { "type": "string", "enum": ["user", "apiKey"] }, "principalId": { "type": "string" }, "reason": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "published", "rejected", "cancelled", "expired", "stale"] }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "expiresAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "canPublish": { "type": "boolean" }, "canCancel": { "type": "boolean" }, "actionId": { "type": "string" } }, "required": ["id", "revisionId", "expectedVersion", "principalType", "principalId", "reason", "status", "createdAt", "expiresAt", "canPublish", "canCancel", "actionId"], "additionalProperties": false } },
|
|
24
|
-
"actionsList": { "operationId": "actionsList", "method": "GET", "path": "/v1/actions", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "workspaceId": { "type": "string" }, "name": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "revisionId": { "nullable": true, "type": "string" }, "contract": { "nullable": true, "type": "object", "properties": { "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "effects": { "type": "object", "properties": { "managedDataWrites": { "type": "boolean" }, "connectorCalls": { "type": "boolean" }, "platformMethods": { "type": "array", "items": { "type": "string" } } }, "required": ["managedDataWrites", "connectorCalls", "platformMethods"], "additionalProperties": false } }, "required": ["inputSchema", "outputSchema", "invokePermission", "effects"], "additionalProperties": false }, "canEditDraft": { "type": "boolean" }, "canPublish": { "type": "boolean" } }, "required": ["id", "workspaceId", "name", "createdAt", "updatedAt", "revisionId", "contract"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
24
|
+
"actionsList": { "operationId": "actionsList", "method": "GET", "path": "/v1/actions", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "workspaceId": { "type": "string" }, "name": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "revisionId": { "nullable": true, "type": "string" }, "contract": { "nullable": true, "type": "object", "properties": { "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "tool": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,39}$", "description": "Business operation name for native tools; the MCP adapter adds an exact-release identity." }, "description": { "type": "string", "minLength": 1, "maxLength": 2000, "description": "When to use this operation, what it does, and its consequential effects." }, "annotations": { "type": "object", "properties": { "readOnlyHint": { "type": "boolean", "description": "Author-declared: true only if every branch leaves business state unchanged. Set false if any mode writes, sends, or starts stateful work." }, "destructiveHint": { "type": "boolean", "description": "Author-declared: true if any branch can delete, overwrite, cancel, revoke access, or cause irreversible effects such as sending a message. An undo path does not make an operation non-destructive." }, "idempotentHint": { "type": "boolean", "description": "Author-declared: true only if repeating identical arguments, including requestId, cannot cause additional effects. Set false when uncertain; this hint does not authorize retrying an uncertain external effect." }, "openWorldHint": { "type": "boolean", "description": "Author-declared: true for public or open-ended external entities and destinations. A bounded private account or workspace is closed-world even when remotely hosted." } }, "required": ["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"], "additionalProperties": false, "description": "The coding agent or author must classify actual behavior across all branches and connector/SDK calls, and reassess these hints whenever behavior changes. Permute validates their shape and consistency, not their truthfulness or code semantics." } }, "required": ["name", "description", "annotations"], "additionalProperties": false }, "effects": { "type": "object", "properties": { "managedDataWrites": { "type": "boolean" }, "connectorCalls": { "type": "boolean" }, "platformMethods": { "type": "array", "items": { "type": "string" } } }, "required": ["managedDataWrites", "connectorCalls", "platformMethods"], "additionalProperties": false } }, "required": ["inputSchema", "outputSchema", "invokePermission", "effects"], "additionalProperties": false }, "canEditDraft": { "type": "boolean" }, "canPublish": { "type": "boolean" } }, "required": ["id", "workspaceId", "name", "createdAt", "updatedAt", "revisionId", "contract"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
25
25
|
"actionsCreate": { "operationId": "actionsCreate", "method": "POST", "path": "/v1/actions", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 255 } }, "required": ["name"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "workspaceId": { "type": "string" }, "name": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["id", "workspaceId", "name", "createdAt", "updatedAt"], "additionalProperties": false } },
|
|
26
|
-
"actionsGet": { "operationId": "actionsGet", "method": "GET", "path": "/v1/actions/{actionId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "workspaceId": { "type": "string" }, "name": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "revisionId": { "nullable": true, "type": "string" }, "contract": { "nullable": true, "type": "object", "properties": { "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "effects": { "type": "object", "properties": { "managedDataWrites": { "type": "boolean" }, "connectorCalls": { "type": "boolean" }, "platformMethods": { "type": "array", "items": { "type": "string" } } }, "required": ["managedDataWrites", "connectorCalls", "platformMethods"], "additionalProperties": false } }, "required": ["inputSchema", "outputSchema", "invokePermission", "effects"], "additionalProperties": false }, "canEditDraft": { "type": "boolean" }, "canPublish": { "type": "boolean" } }, "required": ["id", "workspaceId", "name", "createdAt", "updatedAt", "revisionId", "contract"], "additionalProperties": false } },
|
|
26
|
+
"actionsGet": { "operationId": "actionsGet", "method": "GET", "path": "/v1/actions/{actionId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "workspaceId": { "type": "string" }, "name": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "revisionId": { "nullable": true, "type": "string" }, "contract": { "nullable": true, "type": "object", "properties": { "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "tool": { "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,39}$", "description": "Business operation name for native tools; the MCP adapter adds an exact-release identity." }, "description": { "type": "string", "minLength": 1, "maxLength": 2000, "description": "When to use this operation, what it does, and its consequential effects." }, "annotations": { "type": "object", "properties": { "readOnlyHint": { "type": "boolean", "description": "Author-declared: true only if every branch leaves business state unchanged. Set false if any mode writes, sends, or starts stateful work." }, "destructiveHint": { "type": "boolean", "description": "Author-declared: true if any branch can delete, overwrite, cancel, revoke access, or cause irreversible effects such as sending a message. An undo path does not make an operation non-destructive." }, "idempotentHint": { "type": "boolean", "description": "Author-declared: true only if repeating identical arguments, including requestId, cannot cause additional effects. Set false when uncertain; this hint does not authorize retrying an uncertain external effect." }, "openWorldHint": { "type": "boolean", "description": "Author-declared: true for public or open-ended external entities and destinations. A bounded private account or workspace is closed-world even when remotely hosted." } }, "required": ["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"], "additionalProperties": false, "description": "The coding agent or author must classify actual behavior across all branches and connector/SDK calls, and reassess these hints whenever behavior changes. Permute validates their shape and consistency, not their truthfulness or code semantics." } }, "required": ["name", "description", "annotations"], "additionalProperties": false }, "effects": { "type": "object", "properties": { "managedDataWrites": { "type": "boolean" }, "connectorCalls": { "type": "boolean" }, "platformMethods": { "type": "array", "items": { "type": "string" } } }, "required": ["managedDataWrites", "connectorCalls", "platformMethods"], "additionalProperties": false } }, "required": ["inputSchema", "outputSchema", "invokePermission", "effects"], "additionalProperties": false }, "canEditDraft": { "type": "boolean" }, "canPublish": { "type": "boolean" } }, "required": ["id", "workspaceId", "name", "createdAt", "updatedAt", "revisionId", "contract"], "additionalProperties": false } },
|
|
27
27
|
"actionsDelete": { "operationId": "actionsDelete", "method": "DELETE", "path": "/v1/actions/{actionId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "workspaceId": { "type": "string" }, "name": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["id", "workspaceId", "name", "createdAt", "updatedAt"], "additionalProperties": false } },
|
|
28
|
-
"actionDefinitionGet": { "operationId": "actionDefinitionGet", "method": "GET", "path": "/v1/actions/{actionId}/definition", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "draft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "number" }, "definition": { "type": "object", "properties": { "source": { "type": "string", "minLength": 1, "maxLength": 100000 }, "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "sources": { "maxItems": 100, "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^dbas_[a-z0-9]{24}$" }, "revisionId": { "type": "string", "minLength": 1 }, "readTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } }, "writeTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } } }, "required": ["sourceId", "revisionId", "readTables", "writeTables"], "additionalProperties": false }, { "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^(data|conn|oper|enty)_[a-z0-9]{24}$" } }, "required": ["sourceId"], "additionalProperties": false }] } }, "platform": { "type": "object", "properties": { "methods": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*(\\.[A-Za-z][A-Za-z0-9]*)?$" } }, "permissions": { "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1 }, "resourceType": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*$" }, "level": { "type": "string", "enum": ["read", "write", "admin"] } }, "required": ["resourceId", "resourceType", "level"], "additionalProperties": false } } }, "required": ["methods", "permissions"], "additionalProperties": false }, "connectors": { "type": "object", "additionalProperties": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" } } }, "required": ["source", "inputSchema", "outputSchema", "invokePermission", "sources"], "additionalProperties": false } }, "required": ["revisionId", "sequence", "definition"], "additionalProperties": false }, "published": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "number" }, "definition": { "type": "object", "properties": { "source": { "type": "string", "minLength": 1, "maxLength": 100000 }, "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "sources": { "maxItems": 100, "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^dbas_[a-z0-9]{24}$" }, "revisionId": { "type": "string", "minLength": 1 }, "readTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } }, "writeTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } } }, "required": ["sourceId", "revisionId", "readTables", "writeTables"], "additionalProperties": false }, { "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^(data|conn|oper|enty)_[a-z0-9]{24}$" } }, "required": ["sourceId"], "additionalProperties": false }] } }, "platform": { "type": "object", "properties": { "methods": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*(\\.[A-Za-z][A-Za-z0-9]*)?$" } }, "permissions": { "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1 }, "resourceType": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*$" }, "level": { "type": "string", "enum": ["read", "write", "admin"] } }, "required": ["resourceId", "resourceType", "level"], "additionalProperties": false } } }, "required": ["methods", "permissions"], "additionalProperties": false }, "connectors": { "type": "object", "additionalProperties": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" } } }, "required": ["source", "inputSchema", "outputSchema", "invokePermission", "sources"], "additionalProperties": false } }, "required": ["revisionId", "sequence", "definition"], "additionalProperties": false }, "version": { "type": "string" } }, "required": ["draft", "published", "version"], "additionalProperties": false } },
|
|
29
|
-
"actionDefinitionSave": { "operationId": "actionDefinitionSave", "method": "PUT", "path": "/v1/actions/{actionId}/definition", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "expectedDraft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "definition": { "type": "object", "properties": { "source": { "type": "string", "minLength": 1, "maxLength": 100000 }, "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "sources": { "maxItems": 100, "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^dbas_[a-z0-9]{24}$" }, "revisionId": { "type": "string", "minLength": 1 }, "readTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } }, "writeTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } } }, "required": ["sourceId", "revisionId", "readTables", "writeTables"], "additionalProperties": false }, { "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^(data|conn|oper|enty)_[a-z0-9]{24}$" } }, "required": ["sourceId"], "additionalProperties": false }] } }, "platform": { "type": "object", "properties": { "methods": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*(\\.[A-Za-z][A-Za-z0-9]*)?$" } }, "permissions": { "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1 }, "resourceType": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*$" }, "level": { "type": "string", "enum": ["read", "write", "admin"] } }, "required": ["resourceId", "resourceType", "level"], "additionalProperties": false } } }, "required": ["methods", "permissions"], "additionalProperties": false }, "connectors": { "type": "object", "additionalProperties": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" } } }, "required": ["source", "inputSchema", "outputSchema", "invokePermission", "sources"], "additionalProperties": false } }, "required": ["expectedDraft", "definition"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "revisionId": { "type": "string" } }, "required": ["revisionId"], "additionalProperties": false } },
|
|
28
|
+
"actionDefinitionGet": { "operationId": "actionDefinitionGet", "method": "GET", "path": "/v1/actions/{actionId}/definition", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "draft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "number" }, "definition": { "type": "object", "properties": { "source": { "type": "string", "minLength": 1, "maxLength": 100000 }, "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "tool": { "description": "Author-declared native tool contract, published with the action code. The coding agent must keep descriptions and annotations accurate when changing behavior. Hosts control invocation confirmation; metadata grants no access.", "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,39}$", "description": "Business operation name for native tools; the MCP adapter adds an exact-release identity." }, "description": { "type": "string", "minLength": 1, "maxLength": 2000, "description": "When to use this operation, what it does, and its consequential effects." }, "annotations": { "type": "object", "properties": { "readOnlyHint": { "type": "boolean", "description": "Author-declared: true only if every branch leaves business state unchanged. Set false if any mode writes, sends, or starts stateful work." }, "destructiveHint": { "type": "boolean", "description": "Author-declared: true if any branch can delete, overwrite, cancel, revoke access, or cause irreversible effects such as sending a message. An undo path does not make an operation non-destructive." }, "idempotentHint": { "type": "boolean", "description": "Author-declared: true only if repeating identical arguments, including requestId, cannot cause additional effects. Set false when uncertain; this hint does not authorize retrying an uncertain external effect." }, "openWorldHint": { "type": "boolean", "description": "Author-declared: true for public or open-ended external entities and destinations. A bounded private account or workspace is closed-world even when remotely hosted." } }, "required": ["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"], "additionalProperties": false, "description": "The coding agent or author must classify actual behavior across all branches and connector/SDK calls, and reassess these hints whenever behavior changes. Permute validates their shape and consistency, not their truthfulness or code semantics." } }, "required": ["name", "description", "annotations"], "additionalProperties": false }, "sources": { "maxItems": 100, "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^dbas_[a-z0-9]{24}$" }, "revisionId": { "type": "string", "minLength": 1 }, "readTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } }, "writeTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } } }, "required": ["sourceId", "revisionId", "readTables", "writeTables"], "additionalProperties": false }, { "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^(data|conn|oper|enty)_[a-z0-9]{24}$" } }, "required": ["sourceId"], "additionalProperties": false }] } }, "platform": { "type": "object", "properties": { "methods": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*(\\.[A-Za-z][A-Za-z0-9]*)?$" } }, "permissions": { "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1 }, "resourceType": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*$" }, "level": { "type": "string", "enum": ["read", "write", "admin"] } }, "required": ["resourceId", "resourceType", "level"], "additionalProperties": false } } }, "required": ["methods", "permissions"], "additionalProperties": false }, "connectors": { "type": "object", "additionalProperties": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" } } }, "required": ["source", "inputSchema", "outputSchema", "invokePermission", "sources"], "additionalProperties": false } }, "required": ["revisionId", "sequence", "definition"], "additionalProperties": false }, "published": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "number" }, "definition": { "type": "object", "properties": { "source": { "type": "string", "minLength": 1, "maxLength": 100000 }, "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "tool": { "description": "Author-declared native tool contract, published with the action code. The coding agent must keep descriptions and annotations accurate when changing behavior. Hosts control invocation confirmation; metadata grants no access.", "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,39}$", "description": "Business operation name for native tools; the MCP adapter adds an exact-release identity." }, "description": { "type": "string", "minLength": 1, "maxLength": 2000, "description": "When to use this operation, what it does, and its consequential effects." }, "annotations": { "type": "object", "properties": { "readOnlyHint": { "type": "boolean", "description": "Author-declared: true only if every branch leaves business state unchanged. Set false if any mode writes, sends, or starts stateful work." }, "destructiveHint": { "type": "boolean", "description": "Author-declared: true if any branch can delete, overwrite, cancel, revoke access, or cause irreversible effects such as sending a message. An undo path does not make an operation non-destructive." }, "idempotentHint": { "type": "boolean", "description": "Author-declared: true only if repeating identical arguments, including requestId, cannot cause additional effects. Set false when uncertain; this hint does not authorize retrying an uncertain external effect." }, "openWorldHint": { "type": "boolean", "description": "Author-declared: true for public or open-ended external entities and destinations. A bounded private account or workspace is closed-world even when remotely hosted." } }, "required": ["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"], "additionalProperties": false, "description": "The coding agent or author must classify actual behavior across all branches and connector/SDK calls, and reassess these hints whenever behavior changes. Permute validates their shape and consistency, not their truthfulness or code semantics." } }, "required": ["name", "description", "annotations"], "additionalProperties": false }, "sources": { "maxItems": 100, "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^dbas_[a-z0-9]{24}$" }, "revisionId": { "type": "string", "minLength": 1 }, "readTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } }, "writeTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } } }, "required": ["sourceId", "revisionId", "readTables", "writeTables"], "additionalProperties": false }, { "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^(data|conn|oper|enty)_[a-z0-9]{24}$" } }, "required": ["sourceId"], "additionalProperties": false }] } }, "platform": { "type": "object", "properties": { "methods": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*(\\.[A-Za-z][A-Za-z0-9]*)?$" } }, "permissions": { "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1 }, "resourceType": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*$" }, "level": { "type": "string", "enum": ["read", "write", "admin"] } }, "required": ["resourceId", "resourceType", "level"], "additionalProperties": false } } }, "required": ["methods", "permissions"], "additionalProperties": false }, "connectors": { "type": "object", "additionalProperties": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" } } }, "required": ["source", "inputSchema", "outputSchema", "invokePermission", "sources"], "additionalProperties": false } }, "required": ["revisionId", "sequence", "definition"], "additionalProperties": false }, "version": { "type": "string" } }, "required": ["draft", "published", "version"], "additionalProperties": false } },
|
|
29
|
+
"actionDefinitionSave": { "operationId": "actionDefinitionSave", "method": "PUT", "path": "/v1/actions/{actionId}/definition", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "expectedDraft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "definition": { "type": "object", "properties": { "source": { "type": "string", "minLength": 1, "maxLength": 100000 }, "inputSchema": { "type": "object", "additionalProperties": {} }, "outputSchema": { "type": "object", "additionalProperties": {} }, "invokePermission": { "type": "string", "enum": ["read", "write", "admin"], "description": "Minimum level for existing level-based grants, checked against current and selected published revisions. Explicit business_action.invoke grants authorize Run independently of this legacy threshold." }, "tool": { "description": "Author-declared native tool contract, published with the action code. The coding agent must keep descriptions and annotations accurate when changing behavior. Hosts control invocation confirmation; metadata grants no access.", "type": "object", "properties": { "name": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,39}$", "description": "Business operation name for native tools; the MCP adapter adds an exact-release identity." }, "description": { "type": "string", "minLength": 1, "maxLength": 2000, "description": "When to use this operation, what it does, and its consequential effects." }, "annotations": { "type": "object", "properties": { "readOnlyHint": { "type": "boolean", "description": "Author-declared: true only if every branch leaves business state unchanged. Set false if any mode writes, sends, or starts stateful work." }, "destructiveHint": { "type": "boolean", "description": "Author-declared: true if any branch can delete, overwrite, cancel, revoke access, or cause irreversible effects such as sending a message. An undo path does not make an operation non-destructive." }, "idempotentHint": { "type": "boolean", "description": "Author-declared: true only if repeating identical arguments, including requestId, cannot cause additional effects. Set false when uncertain; this hint does not authorize retrying an uncertain external effect." }, "openWorldHint": { "type": "boolean", "description": "Author-declared: true for public or open-ended external entities and destinations. A bounded private account or workspace is closed-world even when remotely hosted." } }, "required": ["readOnlyHint", "destructiveHint", "idempotentHint", "openWorldHint"], "additionalProperties": false, "description": "The coding agent or author must classify actual behavior across all branches and connector/SDK calls, and reassess these hints whenever behavior changes. Permute validates their shape and consistency, not their truthfulness or code semantics." } }, "required": ["name", "description", "annotations"], "additionalProperties": false }, "sources": { "maxItems": 100, "type": "array", "items": { "anyOf": [{ "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^dbas_[a-z0-9]{24}$" }, "revisionId": { "type": "string", "minLength": 1 }, "readTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } }, "writeTables": { "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[a-z][a-z0-9_]{0,62}$" } } }, "required": ["sourceId", "revisionId", "readTables", "writeTables"], "additionalProperties": false }, { "type": "object", "properties": { "sourceId": { "type": "string", "pattern": "^(data|conn|oper|enty)_[a-z0-9]{24}$" } }, "required": ["sourceId"], "additionalProperties": false }] } }, "platform": { "type": "object", "properties": { "methods": { "minItems": 1, "maxItems": 100, "type": "array", "items": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*(\\.[A-Za-z][A-Za-z0-9]*)?$" } }, "permissions": { "maxItems": 100, "type": "array", "items": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1 }, "resourceType": { "type": "string", "pattern": "^[A-Za-z][A-Za-z0-9]*$" }, "level": { "type": "string", "enum": ["read", "write", "admin"] } }, "required": ["resourceId", "resourceType", "level"], "additionalProperties": false } } }, "required": ["methods", "permissions"], "additionalProperties": false }, "connectors": { "type": "object", "additionalProperties": { "type": "string", "pattern": "^conn_[a-z0-9]{24}$" } } }, "required": ["source", "inputSchema", "outputSchema", "invokePermission", "sources"], "additionalProperties": false } }, "required": ["expectedDraft", "definition"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "revisionId": { "type": "string" } }, "required": ["revisionId"], "additionalProperties": false } },
|
|
30
30
|
"actionsInvoke": { "operationId": "actionsInvoke", "method": "POST", "path": "/v1/actions/{actionId}/invoke", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "requestId": { "type": "string", "pattern": "^[a-zA-Z0-9_-]{1,128}$" }, "input": { "type": "object", "additionalProperties": {} } }, "required": ["requestId", "input"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "requestId": { "type": "string" }, "actionId": { "type": "string" }, "revisionId": { "type": "string" }, "versions": { "type": "array", "items": { "anyOf": [{ "type": "string", "pattern": "^rver_[a-z0-9]{24}$" }, { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }] } }, "output": {} }, "required": ["requestId", "actionId", "revisionId", "versions"], "additionalProperties": false } },
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
"
|
|
34
|
-
"
|
|
35
|
-
"
|
|
31
|
+
"actionTriggersList": { "operationId": "actionTriggersList", "method": "GET", "path": "/v1/actions/{actionId}/triggers", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "oneOf": [{ "type": "object", "properties": { "id": { "type": "string" }, "actionId": { "type": "string" }, "workspaceId": { "type": "string" }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string" }, "disabledReason": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "lastRun": { "nullable": true, "type": "object", "properties": { "requestId": { "type": "string" }, "status": { "type": "string", "enum": ["running", "succeeded", "failed", "unknown"] }, "revisionId": { "type": "string" }, "failure": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["requestId", "status", "revisionId", "failure", "createdAt", "updatedAt"], "additionalProperties": false }, "type": { "type": "string", "enum": ["schedule"] }, "config": { "type": "object", "properties": { "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "input": { "type": "object", "additionalProperties": {} } }, "required": ["schedule", "input"], "additionalProperties": false } }, "required": ["id", "actionId", "workspaceId", "isEnabled", "nextRunAt", "disabledReason", "createdAt", "updatedAt", "lastRun", "type", "config"], "additionalProperties": false }] } } }, "required": ["items"], "additionalProperties": false } },
|
|
32
|
+
"actionTriggersCreate": { "operationId": "actionTriggersCreate", "method": "POST", "path": "/v1/actions/{actionId}/triggers", "scope": "workspace", "bodySchema": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["schedule"] }, "config": { "type": "object", "properties": { "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "input": { "type": "object", "additionalProperties": {} } }, "required": ["schedule", "input"], "additionalProperties": false } }, "required": ["type", "config"], "additionalProperties": false }] }, "querySchema": null, "responseSchema": { "oneOf": [{ "type": "object", "properties": { "id": { "type": "string" }, "actionId": { "type": "string" }, "workspaceId": { "type": "string" }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string" }, "disabledReason": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "lastRun": { "nullable": true, "type": "object", "properties": { "requestId": { "type": "string" }, "status": { "type": "string", "enum": ["running", "succeeded", "failed", "unknown"] }, "revisionId": { "type": "string" }, "failure": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["requestId", "status", "revisionId", "failure", "createdAt", "updatedAt"], "additionalProperties": false }, "type": { "type": "string", "enum": ["schedule"] }, "config": { "type": "object", "properties": { "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "input": { "type": "object", "additionalProperties": {} } }, "required": ["schedule", "input"], "additionalProperties": false } }, "required": ["id", "actionId", "workspaceId", "isEnabled", "nextRunAt", "disabledReason", "createdAt", "updatedAt", "lastRun", "type", "config"], "additionalProperties": false }] } },
|
|
33
|
+
"actionTriggersGet": { "operationId": "actionTriggersGet", "method": "GET", "path": "/v1/actions/{actionId}/triggers/{triggerId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "oneOf": [{ "type": "object", "properties": { "id": { "type": "string" }, "actionId": { "type": "string" }, "workspaceId": { "type": "string" }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string" }, "disabledReason": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "lastRun": { "nullable": true, "type": "object", "properties": { "requestId": { "type": "string" }, "status": { "type": "string", "enum": ["running", "succeeded", "failed", "unknown"] }, "revisionId": { "type": "string" }, "failure": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["requestId", "status", "revisionId", "failure", "createdAt", "updatedAt"], "additionalProperties": false }, "type": { "type": "string", "enum": ["schedule"] }, "config": { "type": "object", "properties": { "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "input": { "type": "object", "additionalProperties": {} } }, "required": ["schedule", "input"], "additionalProperties": false } }, "required": ["id", "actionId", "workspaceId", "isEnabled", "nextRunAt", "disabledReason", "createdAt", "updatedAt", "lastRun", "type", "config"], "additionalProperties": false }] } },
|
|
34
|
+
"actionTriggersUpdate": { "operationId": "actionTriggersUpdate", "method": "PATCH", "path": "/v1/actions/{actionId}/triggers/{triggerId}", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "config": { "type": "object", "properties": { "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "input": { "type": "object", "additionalProperties": {} } }, "required": ["schedule", "input"], "additionalProperties": false }, "isEnabled": { "type": "boolean" } }, "additionalProperties": false }, "querySchema": null, "responseSchema": { "oneOf": [{ "type": "object", "properties": { "id": { "type": "string" }, "actionId": { "type": "string" }, "workspaceId": { "type": "string" }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string" }, "disabledReason": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "lastRun": { "nullable": true, "type": "object", "properties": { "requestId": { "type": "string" }, "status": { "type": "string", "enum": ["running", "succeeded", "failed", "unknown"] }, "revisionId": { "type": "string" }, "failure": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["requestId", "status", "revisionId", "failure", "createdAt", "updatedAt"], "additionalProperties": false }, "type": { "type": "string", "enum": ["schedule"] }, "config": { "type": "object", "properties": { "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "input": { "type": "object", "additionalProperties": {} } }, "required": ["schedule", "input"], "additionalProperties": false } }, "required": ["id", "actionId", "workspaceId", "isEnabled", "nextRunAt", "disabledReason", "createdAt", "updatedAt", "lastRun", "type", "config"], "additionalProperties": false }] } },
|
|
35
|
+
"actionTriggersDelete": { "operationId": "actionTriggersDelete", "method": "DELETE", "path": "/v1/actions/{actionId}/triggers/{triggerId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "oneOf": [{ "type": "object", "properties": { "id": { "type": "string" }, "actionId": { "type": "string" }, "workspaceId": { "type": "string" }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string" }, "disabledReason": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" }, "lastRun": { "nullable": true, "type": "object", "properties": { "requestId": { "type": "string" }, "status": { "type": "string", "enum": ["running", "succeeded", "failed", "unknown"] }, "revisionId": { "type": "string" }, "failure": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["requestId", "status", "revisionId", "failure", "createdAt", "updatedAt"], "additionalProperties": false }, "type": { "type": "string", "enum": ["schedule"] }, "config": { "type": "object", "properties": { "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "input": { "type": "object", "additionalProperties": {} } }, "required": ["schedule", "input"], "additionalProperties": false } }, "required": ["id", "actionId", "workspaceId", "isEnabled", "nextRunAt", "disabledReason", "createdAt", "updatedAt", "lastRun", "type", "config"], "additionalProperties": false }] } },
|
|
36
|
+
"actionTriggerRunsList": { "operationId": "actionTriggerRunsList", "method": "GET", "path": "/v1/actions/{actionId}/triggers/{triggerId}/runs", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "requestId": { "type": "string" }, "status": { "type": "string", "enum": ["running", "succeeded", "failed", "unknown"] }, "revisionId": { "type": "string" }, "failure": { "nullable": true, "type": "object", "properties": { "code": { "type": "string", "enum": ["validation_failed", "record_conflict", "invalid_transition", "permission_denied", "not_found", "request_conflict", "request_in_progress", "outcome_unknown", "execution_failed"] }, "message": { "type": "string", "minLength": 1, "maxLength": 1000 }, "details": { "anyOf": [{ "type": "object", "additionalProperties": { "type": "string", "maxLength": 500 } }, { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] }, "issues": { "maxItems": 32, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "maxLength": 500 }, "rule": { "type": "string", "maxLength": 100 }, "schemaPath": { "type": "string", "maxLength": 500 }, "allowedValues": { "maxItems": 20, "type": "array", "items": {} }, "allowedValuesTruncated": { "type": "boolean" }, "constraint": { "anyOf": [{ "type": "string", "maxLength": 500 }, { "type": "number" }, { "type": "boolean" }] } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false } }, "issuesTruncated": { "type": "boolean" } }, "required": ["path", "rule", "schemaPath"], "additionalProperties": false }] } }, "required": ["code", "message"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["requestId", "status", "revisionId", "failure", "createdAt", "updatedAt"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
37
|
+
"chatsCreate": { "operationId": "chatsCreate", "method": "POST", "path": "/v1/chats", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "action": { "type": "string", "enum": ["send_message"] }, "clientRequestId": { "type": "string", "minLength": 1, "maxLength": 200 }, "message": { "type": "string", "minLength": 1, "maxLength": 8000 }, "contexts": { "type": "array", "items": { "type": "string" } }, "attachments": { "maxItems": 4, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "fileName": { "type": "string" }, "mimeType": { "type": "string", "enum": ["image/png", "image/jpeg", "image/gif", "image/webp"] }, "s3Key": { "type": "string" } }, "required": ["id", "fileName", "mimeType", "s3Key"], "additionalProperties": false } }, "timeZone": { "type": "string" } }, "required": ["action", "clientRequestId", "message"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string", "enum": ["running", "waiting", "completed", "failed", "cancelled"] }, "error": { "nullable": true, "type": "string" }, "conversation": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" }, "timestamp": { "type": "string" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "datasetId": { "type": "string" }, "page": { "type": "number" }, "reason": { "type": "string" }, "quote": { "type": "string" } }, "required": ["datasetId", "page"], "additionalProperties": false } }, "tableCitations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "datasetId": { "type": "string" }, "page": { "type": "string" }, "tableDescription": { "type": "string" }, "sampleData": { "type": "object", "properties": { "columns": { "type": "array", "items": { "type": "string" } }, "rows": { "type": "array", "items": { "type": "array", "items": {} } } }, "required": ["columns", "rows"], "additionalProperties": false }, "queryDetails": { "type": "object", "properties": { "connectorId": { "type": "string" }, "provider": { "type": "string" }, "sql": { "type": "string" }, "detailSql": { "type": "string" }, "sourceTables": { "type": "array", "items": { "type": "string" } }, "sources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "provider": { "type": "string" } }, "required": ["id", "name"], "additionalProperties": false } }, "retrievedAt": { "type": "string" }, "rowCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["connectorId", "provider", "sql"], "additionalProperties": false } }, "required": ["id", "datasetId", "page", "tableDescription"], "additionalProperties": false } }, "meta": { "type": "object", "properties": { "appAction": { "type": "object", "properties": { "requestId": { "type": "string", "pattern": "^areq_[a-z0-9]{24}$" }, "actionId": { "type": "string" }, "name": { "type": "string" }, "input": { "type": "object", "additionalProperties": {} }, "status": { "type": "string", "enum": ["pending", "dismissed", "completed"] } }, "required": ["requestId", "actionId", "name", "input", "status"], "additionalProperties": false } }, "additionalProperties": {} } }, "required": ["role", "content"], "additionalProperties": {} } }, "pendingTask": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "title": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "open", "in_progress", "done", "cancelled"] }, "actionType": { "type": "string" }, "actionOutputId": { "nullable": true, "type": "string" }, "draft": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "instructions": { "type": "string", "minLength": 1 }, "dataSourceIds": { "default": [], "type": "array", "items": { "type": "string" } }, "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "metadata": { "type": "object", "properties": { "subtype": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "wizardState": { "type": "object", "additionalProperties": {} } }, "additionalProperties": {} }, "chatHistory": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" } }, "required": ["role", "content"], "additionalProperties": false } }, "outputSchema": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "columns": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" } }, "required": ["name", "type"], "additionalProperties": false } } }, "required": ["name", "columns"], "additionalProperties": false } }, "isDraft": { "type": "boolean" } }, "required": ["instructions"], "additionalProperties": false } }, "required": ["id", "kind", "title", "status", "actionType", "draft"], "additionalProperties": false }, "traceSteps": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["trace_step"] }, "id": { "type": "string" }, "step": { "type": "string" }, "details": { "type": "string" }, "status": { "type": "string", "enum": ["in_progress", "completed", "failed"] } }, "required": ["kind", "id", "step", "status"], "additionalProperties": false } }, "startedAt": { "type": "string" } }, "required": ["id", "status", "error", "conversation"], "additionalProperties": false } },
|
|
38
|
+
"chatsGet": { "operationId": "chatsGet", "method": "GET", "path": "/v1/chats/{chatId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string", "enum": ["running", "waiting", "completed", "failed", "cancelled"] }, "error": { "nullable": true, "type": "string" }, "conversation": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" }, "timestamp": { "type": "string" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "datasetId": { "type": "string" }, "page": { "type": "number" }, "reason": { "type": "string" }, "quote": { "type": "string" } }, "required": ["datasetId", "page"], "additionalProperties": false } }, "tableCitations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "datasetId": { "type": "string" }, "page": { "type": "string" }, "tableDescription": { "type": "string" }, "sampleData": { "type": "object", "properties": { "columns": { "type": "array", "items": { "type": "string" } }, "rows": { "type": "array", "items": { "type": "array", "items": {} } } }, "required": ["columns", "rows"], "additionalProperties": false }, "queryDetails": { "type": "object", "properties": { "connectorId": { "type": "string" }, "provider": { "type": "string" }, "sql": { "type": "string" }, "detailSql": { "type": "string" }, "sourceTables": { "type": "array", "items": { "type": "string" } }, "sources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "provider": { "type": "string" } }, "required": ["id", "name"], "additionalProperties": false } }, "retrievedAt": { "type": "string" }, "rowCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["connectorId", "provider", "sql"], "additionalProperties": false } }, "required": ["id", "datasetId", "page", "tableDescription"], "additionalProperties": false } }, "meta": { "type": "object", "properties": { "appAction": { "type": "object", "properties": { "requestId": { "type": "string", "pattern": "^areq_[a-z0-9]{24}$" }, "actionId": { "type": "string" }, "name": { "type": "string" }, "input": { "type": "object", "additionalProperties": {} }, "status": { "type": "string", "enum": ["pending", "dismissed", "completed"] } }, "required": ["requestId", "actionId", "name", "input", "status"], "additionalProperties": false } }, "additionalProperties": {} } }, "required": ["role", "content"], "additionalProperties": {} } }, "pendingTask": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "title": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "open", "in_progress", "done", "cancelled"] }, "actionType": { "type": "string" }, "actionOutputId": { "nullable": true, "type": "string" }, "draft": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "instructions": { "type": "string", "minLength": 1 }, "dataSourceIds": { "default": [], "type": "array", "items": { "type": "string" } }, "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "metadata": { "type": "object", "properties": { "subtype": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "wizardState": { "type": "object", "additionalProperties": {} } }, "additionalProperties": {} }, "chatHistory": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" } }, "required": ["role", "content"], "additionalProperties": false } }, "outputSchema": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "columns": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" } }, "required": ["name", "type"], "additionalProperties": false } } }, "required": ["name", "columns"], "additionalProperties": false } }, "isDraft": { "type": "boolean" } }, "required": ["instructions"], "additionalProperties": false } }, "required": ["id", "kind", "title", "status", "actionType", "draft"], "additionalProperties": false }, "traceSteps": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["trace_step"] }, "id": { "type": "string" }, "step": { "type": "string" }, "details": { "type": "string" }, "status": { "type": "string", "enum": ["in_progress", "completed", "failed"] } }, "required": ["kind", "id", "step", "status"], "additionalProperties": false } }, "startedAt": { "type": "string" } }, "required": ["id", "status", "error", "conversation"], "additionalProperties": false } },
|
|
39
|
+
"chatTurnsCreate": { "operationId": "chatTurnsCreate", "method": "POST", "path": "/v1/chats/{chatId}/turns", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "action": { "type": "string", "enum": ["send_message"] }, "clientRequestId": { "type": "string", "minLength": 1, "maxLength": 200 }, "message": { "type": "string", "minLength": 1, "maxLength": 8000 }, "contexts": { "type": "array", "items": { "type": "string" } }, "attachments": { "maxItems": 4, "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "fileName": { "type": "string" }, "mimeType": { "type": "string", "enum": ["image/png", "image/jpeg", "image/gif", "image/webp"] }, "s3Key": { "type": "string" } }, "required": ["id", "fileName", "mimeType", "s3Key"], "additionalProperties": false } }, "timeZone": { "type": "string" } }, "required": ["action", "clientRequestId", "message"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string", "enum": ["running", "waiting", "completed", "failed", "cancelled"] }, "error": { "nullable": true, "type": "string" }, "conversation": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" }, "timestamp": { "type": "string" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "datasetId": { "type": "string" }, "page": { "type": "number" }, "reason": { "type": "string" }, "quote": { "type": "string" } }, "required": ["datasetId", "page"], "additionalProperties": false } }, "tableCitations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "datasetId": { "type": "string" }, "page": { "type": "string" }, "tableDescription": { "type": "string" }, "sampleData": { "type": "object", "properties": { "columns": { "type": "array", "items": { "type": "string" } }, "rows": { "type": "array", "items": { "type": "array", "items": {} } } }, "required": ["columns", "rows"], "additionalProperties": false }, "queryDetails": { "type": "object", "properties": { "connectorId": { "type": "string" }, "provider": { "type": "string" }, "sql": { "type": "string" }, "detailSql": { "type": "string" }, "sourceTables": { "type": "array", "items": { "type": "string" } }, "sources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "provider": { "type": "string" } }, "required": ["id", "name"], "additionalProperties": false } }, "retrievedAt": { "type": "string" }, "rowCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["connectorId", "provider", "sql"], "additionalProperties": false } }, "required": ["id", "datasetId", "page", "tableDescription"], "additionalProperties": false } }, "meta": { "type": "object", "properties": { "appAction": { "type": "object", "properties": { "requestId": { "type": "string", "pattern": "^areq_[a-z0-9]{24}$" }, "actionId": { "type": "string" }, "name": { "type": "string" }, "input": { "type": "object", "additionalProperties": {} }, "status": { "type": "string", "enum": ["pending", "dismissed", "completed"] } }, "required": ["requestId", "actionId", "name", "input", "status"], "additionalProperties": false } }, "additionalProperties": {} } }, "required": ["role", "content"], "additionalProperties": {} } }, "pendingTask": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "title": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "open", "in_progress", "done", "cancelled"] }, "actionType": { "type": "string" }, "actionOutputId": { "nullable": true, "type": "string" }, "draft": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "instructions": { "type": "string", "minLength": 1 }, "dataSourceIds": { "default": [], "type": "array", "items": { "type": "string" } }, "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "metadata": { "type": "object", "properties": { "subtype": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "wizardState": { "type": "object", "additionalProperties": {} } }, "additionalProperties": {} }, "chatHistory": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" } }, "required": ["role", "content"], "additionalProperties": false } }, "outputSchema": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "columns": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" } }, "required": ["name", "type"], "additionalProperties": false } } }, "required": ["name", "columns"], "additionalProperties": false } }, "isDraft": { "type": "boolean" } }, "required": ["instructions"], "additionalProperties": false } }, "required": ["id", "kind", "title", "status", "actionType", "draft"], "additionalProperties": false }, "traceSteps": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["trace_step"] }, "id": { "type": "string" }, "step": { "type": "string" }, "details": { "type": "string" }, "status": { "type": "string", "enum": ["in_progress", "completed", "failed"] } }, "required": ["kind", "id", "step", "status"], "additionalProperties": false } }, "startedAt": { "type": "string" } }, "required": ["id", "status", "error", "conversation"], "additionalProperties": false } },
|
|
40
|
+
"chatsStop": { "operationId": "chatsStop", "method": "POST", "path": "/v1/chats/{chatId}/stop", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string", "enum": ["running", "waiting", "completed", "failed", "cancelled"] }, "error": { "nullable": true, "type": "string" }, "conversation": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" }, "timestamp": { "type": "string" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "datasetId": { "type": "string" }, "page": { "type": "number" }, "reason": { "type": "string" }, "quote": { "type": "string" } }, "required": ["datasetId", "page"], "additionalProperties": false } }, "tableCitations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "datasetId": { "type": "string" }, "page": { "type": "string" }, "tableDescription": { "type": "string" }, "sampleData": { "type": "object", "properties": { "columns": { "type": "array", "items": { "type": "string" } }, "rows": { "type": "array", "items": { "type": "array", "items": {} } } }, "required": ["columns", "rows"], "additionalProperties": false }, "queryDetails": { "type": "object", "properties": { "connectorId": { "type": "string" }, "provider": { "type": "string" }, "sql": { "type": "string" }, "detailSql": { "type": "string" }, "sourceTables": { "type": "array", "items": { "type": "string" } }, "sources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "provider": { "type": "string" } }, "required": ["id", "name"], "additionalProperties": false } }, "retrievedAt": { "type": "string" }, "rowCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["connectorId", "provider", "sql"], "additionalProperties": false } }, "required": ["id", "datasetId", "page", "tableDescription"], "additionalProperties": false } }, "meta": { "type": "object", "properties": { "appAction": { "type": "object", "properties": { "requestId": { "type": "string", "pattern": "^areq_[a-z0-9]{24}$" }, "actionId": { "type": "string" }, "name": { "type": "string" }, "input": { "type": "object", "additionalProperties": {} }, "status": { "type": "string", "enum": ["pending", "dismissed", "completed"] } }, "required": ["requestId", "actionId", "name", "input", "status"], "additionalProperties": false } }, "additionalProperties": {} } }, "required": ["role", "content"], "additionalProperties": {} } }, "pendingTask": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "title": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "open", "in_progress", "done", "cancelled"] }, "actionType": { "type": "string" }, "actionOutputId": { "nullable": true, "type": "string" }, "draft": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "instructions": { "type": "string", "minLength": 1 }, "dataSourceIds": { "default": [], "type": "array", "items": { "type": "string" } }, "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "metadata": { "type": "object", "properties": { "subtype": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "wizardState": { "type": "object", "additionalProperties": {} } }, "additionalProperties": {} }, "chatHistory": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" } }, "required": ["role", "content"], "additionalProperties": false } }, "outputSchema": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "columns": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" } }, "required": ["name", "type"], "additionalProperties": false } } }, "required": ["name", "columns"], "additionalProperties": false } }, "isDraft": { "type": "boolean" } }, "required": ["instructions"], "additionalProperties": false } }, "required": ["id", "kind", "title", "status", "actionType", "draft"], "additionalProperties": false }, "traceSteps": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["trace_step"] }, "id": { "type": "string" }, "step": { "type": "string" }, "details": { "type": "string" }, "status": { "type": "string", "enum": ["in_progress", "completed", "failed"] } }, "required": ["kind", "id", "step", "status"], "additionalProperties": false } }, "startedAt": { "type": "string" } }, "required": ["id", "status", "error", "conversation"], "additionalProperties": false } },
|
|
41
|
+
"chatDecisionsCreate": { "operationId": "chatDecisionsCreate", "method": "POST", "path": "/v1/chats/{chatId}/decisions", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "requestId": { "type": "string", "pattern": "^areq_[a-z0-9]{24}$" }, "approve": { "type": "boolean" } }, "required": ["requestId", "approve"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "status": { "type": "string", "enum": ["running", "waiting", "completed", "failed", "cancelled"] }, "error": { "nullable": true, "type": "string" }, "conversation": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" }, "timestamp": { "type": "string" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "datasetId": { "type": "string" }, "page": { "type": "number" }, "reason": { "type": "string" }, "quote": { "type": "string" } }, "required": ["datasetId", "page"], "additionalProperties": false } }, "tableCitations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "number" }, "datasetId": { "type": "string" }, "page": { "type": "string" }, "tableDescription": { "type": "string" }, "sampleData": { "type": "object", "properties": { "columns": { "type": "array", "items": { "type": "string" } }, "rows": { "type": "array", "items": { "type": "array", "items": {} } } }, "required": ["columns", "rows"], "additionalProperties": false }, "queryDetails": { "type": "object", "properties": { "connectorId": { "type": "string" }, "provider": { "type": "string" }, "sql": { "type": "string" }, "detailSql": { "type": "string" }, "sourceTables": { "type": "array", "items": { "type": "string" } }, "sources": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "provider": { "type": "string" } }, "required": ["id", "name"], "additionalProperties": false } }, "retrievedAt": { "type": "string" }, "rowCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": ["connectorId", "provider", "sql"], "additionalProperties": false } }, "required": ["id", "datasetId", "page", "tableDescription"], "additionalProperties": false } }, "meta": { "type": "object", "properties": { "appAction": { "type": "object", "properties": { "requestId": { "type": "string", "pattern": "^areq_[a-z0-9]{24}$" }, "actionId": { "type": "string" }, "name": { "type": "string" }, "input": { "type": "object", "additionalProperties": {} }, "status": { "type": "string", "enum": ["pending", "dismissed", "completed"] } }, "required": ["requestId", "actionId", "name", "input", "status"], "additionalProperties": false } }, "additionalProperties": {} } }, "required": ["role", "content"], "additionalProperties": {} } }, "pendingTask": { "type": "object", "properties": { "id": { "type": "string" }, "kind": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "title": { "type": "string" }, "description": { "type": "string" }, "status": { "type": "string", "enum": ["pending", "open", "in_progress", "done", "cancelled"] }, "actionType": { "type": "string" }, "actionOutputId": { "nullable": true, "type": "string" }, "draft": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "instructions": { "type": "string", "minLength": 1 }, "dataSourceIds": { "default": [], "type": "array", "items": { "type": "string" } }, "schedule": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, "metadata": { "type": "object", "properties": { "subtype": { "type": "string", "enum": ["report", "dashboard", "dataFlow", "dataTable"] }, "wizardState": { "type": "object", "additionalProperties": {} } }, "additionalProperties": {} }, "chatHistory": { "type": "array", "items": { "type": "object", "properties": { "role": { "type": "string", "enum": ["user", "assistant"] }, "content": { "type": "string" } }, "required": ["role", "content"], "additionalProperties": false } }, "outputSchema": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "columns": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" } }, "required": ["name", "type"], "additionalProperties": false } } }, "required": ["name", "columns"], "additionalProperties": false } }, "isDraft": { "type": "boolean" } }, "required": ["instructions"], "additionalProperties": false } }, "required": ["id", "kind", "title", "status", "actionType", "draft"], "additionalProperties": false }, "traceSteps": { "type": "array", "items": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["trace_step"] }, "id": { "type": "string" }, "step": { "type": "string" }, "details": { "type": "string" }, "status": { "type": "string", "enum": ["in_progress", "completed", "failed"] } }, "required": ["kind", "id", "step", "status"], "additionalProperties": false } }, "startedAt": { "type": "string" } }, "required": ["id", "status", "error", "conversation"], "additionalProperties": false } },
|
|
36
42
|
"usersMe": { "operationId": "usersMe", "method": "GET", "path": "/v1/me", "scope": "none", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "email": { "type": "string" } }, "required": ["id", "name", "email"], "additionalProperties": false } },
|
|
43
|
+
"organizationsList": { "operationId": "organizationsList", "method": "GET", "path": "/v1/organizations", "scope": "none", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "signInRequired": { "nullable": true, "type": "string", "enum": ["saml", "local", null] } }, "required": ["id", "name", "signInRequired"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
44
|
+
"organizationsGet": { "operationId": "organizationsGet", "method": "GET", "path": "/v1/organizations/{organizationId}", "scope": "none", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "signInRequired": { "nullable": true, "type": "string", "enum": ["saml", "local", null] } }, "required": ["id", "name", "signInRequired"], "additionalProperties": false } },
|
|
45
|
+
"organizationMembersList": { "operationId": "organizationMembersList", "method": "GET", "path": "/v1/organizations/{organizationId}/members", "scope": "organization", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "userId": { "type": "string" }, "name": { "type": "string" }, "email": { "type": "string" }, "organizationRole": { "nullable": true, "type": "string", "enum": ["owner", "admin", "member", "viewer", "guest", null] }, "workspaceRole": { "nullable": true, "type": "string", "enum": ["owner", "admin", "member", "viewer", "guest", null] } }, "required": ["userId", "name", "email", "organizationRole", "workspaceRole"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
46
|
+
"organizationMembersInvite": { "operationId": "organizationMembersInvite", "method": "POST", "path": "/v1/organizations/{organizationId}/members", "scope": "organization", "bodySchema": { "type": "object", "properties": { "email": { "type": "string", "maxLength": 255, "format": "email", "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "role": { "type": "string", "enum": ["admin", "member", "viewer"] } }, "required": ["email", "role"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "userId": { "type": "string" }, "email": { "type": "string" }, "role": { "nullable": true, "type": "string", "enum": ["admin", "member", "viewer", "guest", null] }, "invitationSent": { "type": "boolean" } }, "required": ["userId", "email", "role", "invitationSent"], "additionalProperties": false } },
|
|
47
|
+
"workspaceMembersList": { "operationId": "workspaceMembersList", "method": "GET", "path": "/v1/workspaces/{workspaceId}/members", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "userId": { "type": "string" }, "name": { "type": "string" }, "email": { "type": "string" }, "organizationRole": { "nullable": true, "type": "string", "enum": ["owner", "admin", "member", "viewer", "guest", null] }, "workspaceRole": { "nullable": true, "type": "string", "enum": ["owner", "admin", "member", "viewer", "guest", null] } }, "required": ["userId", "name", "email", "organizationRole", "workspaceRole"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
48
|
+
"workspaceMembersInvite": { "operationId": "workspaceMembersInvite", "method": "POST", "path": "/v1/workspaces/{workspaceId}/members", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "email": { "type": "string", "maxLength": 255, "format": "email", "pattern": "^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$" }, "role": { "type": "string", "enum": ["admin", "member", "viewer", "guest"] } }, "required": ["email", "role"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "userId": { "type": "string" }, "email": { "type": "string" }, "role": { "nullable": true, "type": "string", "enum": ["admin", "member", "viewer", "guest", null] }, "invitationSent": { "type": "boolean" } }, "required": ["userId", "email", "role", "invitationSent"], "additionalProperties": false } },
|
|
49
|
+
"organizationMembersResendInvitation": { "operationId": "organizationMembersResendInvitation", "method": "POST", "path": "/v1/organizations/{organizationId}/members/{userId}/resend-invitation", "scope": "organization", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "invitationSent": { "type": "boolean" } }, "required": ["invitationSent"], "additionalProperties": false } },
|
|
50
|
+
"organizationMembersUpdateRole": { "operationId": "organizationMembersUpdateRole", "method": "PATCH", "path": "/v1/organizations/{organizationId}/members/{userId}", "scope": "organization", "bodySchema": { "type": "object", "properties": { "role": { "type": "string", "enum": ["admin", "member", "viewer"] } }, "required": ["role"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "userId": { "type": "string" }, "role": { "type": "string", "enum": ["admin", "member", "viewer", "guest"] } }, "required": ["userId", "role"], "additionalProperties": false } },
|
|
51
|
+
"organizationMembersRemove": { "operationId": "organizationMembersRemove", "method": "DELETE", "path": "/v1/organizations/{organizationId}/members/{userId}", "scope": "organization", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "removed": { "type": "boolean", "enum": [true] } }, "required": ["removed"], "additionalProperties": false } },
|
|
52
|
+
"workspaceMembersResendInvitation": { "operationId": "workspaceMembersResendInvitation", "method": "POST", "path": "/v1/workspaces/{workspaceId}/members/{userId}/resend-invitation", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "invitationSent": { "type": "boolean" } }, "required": ["invitationSent"], "additionalProperties": false } },
|
|
53
|
+
"workspaceMembersUpdateRole": { "operationId": "workspaceMembersUpdateRole", "method": "PATCH", "path": "/v1/workspaces/{workspaceId}/members/{userId}", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "role": { "type": "string", "enum": ["admin", "member", "viewer", "guest"] } }, "required": ["role"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "userId": { "type": "string" }, "role": { "type": "string", "enum": ["admin", "member", "viewer", "guest"] } }, "required": ["userId", "role"], "additionalProperties": false } },
|
|
54
|
+
"workspaceMembersRemove": { "operationId": "workspaceMembersRemove", "method": "DELETE", "path": "/v1/workspaces/{workspaceId}/members/{userId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "removed": { "type": "boolean", "enum": [true] } }, "required": ["removed"], "additionalProperties": false } },
|
|
37
55
|
"workspacesList": { "operationId": "workspacesList", "method": "GET", "path": "/v1/workspaces", "scope": "organization", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "organizationId": { "type": "string" }, "name": { "type": "string" }, "context": { "type": "string" }, "visibility": { "type": "string", "enum": ["private", "internal", "public", "unlisted"] }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["id", "organizationId", "name", "context", "visibility", "createdAt", "updatedAt"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
38
56
|
"workspacesCreate": { "operationId": "workspacesCreate", "method": "POST", "path": "/v1/workspaces", "scope": "organization", "bodySchema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "context": { "type": "string", "maxLength": 10000 } }, "required": ["name"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "organizationId": { "type": "string" }, "name": { "type": "string" }, "context": { "type": "string" }, "visibility": { "type": "string", "enum": ["private", "internal", "public", "unlisted"] }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["id", "organizationId", "name", "context", "visibility", "createdAt", "updatedAt"], "additionalProperties": false } },
|
|
39
57
|
"workspacesGet": { "operationId": "workspacesGet", "method": "GET", "path": "/v1/workspaces/{workspaceId}", "scope": "organization", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "organizationId": { "type": "string" }, "name": { "type": "string" }, "context": { "type": "string" }, "visibility": { "type": "string", "enum": ["private", "internal", "public", "unlisted"] }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["id", "organizationId", "name", "context", "visibility", "createdAt", "updatedAt"], "additionalProperties": false } },
|
|
@@ -54,16 +72,16 @@ export const publicApiRoutes = {
|
|
|
54
72
|
"answerJobsGet": { "operationId": "answerJobsGet", "method": "GET", "path": "/v1/answer-jobs/{answerJobId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "answerJobId": { "type": "string" }, "status": { "type": "string", "enum": ["queued", "running", "completed", "failed", "cancelled"] }, "result": { "type": "object", "properties": { "answer": { "type": "string" }, "citations": { "type": "array", "items": { "type": "object", "properties": { "type": { "type": "string", "enum": ["text", "table", "web", "fact"] }, "sourceId": { "type": "string" }, "ref": { "type": "string" }, "title": { "type": "string" }, "url": { "type": "string" }, "metadata": { "type": "object", "additionalProperties": {} } }, "required": ["type"], "additionalProperties": false } }, "assumptions": { "type": "array", "items": { "type": "object", "additionalProperties": {} } }, "charts": { "type": "array", "items": { "type": "object", "additionalProperties": {} } }, "followUps": { "type": "array", "items": { "type": "string" } }, "confidence": { "type": "object", "properties": { "score": { "type": "number", "minimum": 0, "maximum": 100 }, "queryComplexity": { "type": "string", "enum": ["high", "medium", "low"] }, "reason": { "type": "string" } }, "required": ["score", "queryComplexity", "reason"], "additionalProperties": false } }, "required": ["answer", "citations"], "additionalProperties": false }, "error": { "type": "string" }, "pollAfterMs": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "startedAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "completedAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["answerJobId", "status"], "additionalProperties": false } },
|
|
55
73
|
"queriesCreate": { "operationId": "queriesCreate", "method": "POST", "path": "/v1/queries", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "sourceIds": { "minItems": 1, "type": "array", "items": { "type": "string", "minLength": 1 } }, "sql": { "type": "string", "minLength": 1 }, "limit": { "type": "integer", "minimum": 1, "maximum": 1000 } }, "required": ["sourceIds", "sql"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "queryId": { "type": "string" }, "sourceIds": { "type": "array", "items": { "type": "string" } }, "sql": { "type": "string" }, "columns": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "type": { "type": "string" } }, "required": ["name"], "additionalProperties": false } }, "rows": { "type": "array", "items": { "type": "object", "additionalProperties": {} } }, "rowCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "truncated": { "type": "boolean" }, "executionMs": { "type": "number", "minimum": 0 }, "timings": { "type": "object", "properties": { "sourceValidationMs": { "type": "number", "minimum": 0 }, "initializationMs": { "type": "number", "minimum": 0 }, "sourceLoadMs": { "type": "number", "minimum": 0 }, "sqlExecutionMs": { "type": "number", "minimum": 0 }, "totalMs": { "type": "number", "minimum": 0 } }, "required": ["sourceValidationMs", "initializationMs", "sourceLoadMs", "sqlExecutionMs", "totalMs"], "additionalProperties": false } }, "required": ["queryId", "sourceIds", "sql", "columns", "rows", "rowCount", "truncated", "executionMs"], "additionalProperties": false } },
|
|
56
74
|
"operationRunsList": { "operationId": "operationRunsList", "method": "GET", "path": "/v1/operation-runs", "scope": "workspace", "bodySchema": null, "querySchema": { "type": "object", "properties": { "workflowId": { "type": "string", "minLength": 1 } }, "required": ["workflowId"], "additionalProperties": false }, "responseSchema": { "type": "object", "properties": { "workflowId": { "type": "string" }, "status": { "type": "string", "enum": ["running", "completed", "failed"] }, "completedRuns": { "type": "number" }, "failedRuns": { "type": "number" }, "pendingRuns": { "type": "number" }, "totalRuns": { "type": "number" }, "progressPct": { "type": "number" }, "startedAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "completedAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "workflowId": { "type": "string" }, "revisionId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "completedAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "error": { "nullable": true, "type": "string" }, "outputDocId": { "nullable": true, "type": "string" }, "operationId": { "type": "string" } }, "required": ["id", "workflowId", "revisionId", "status", "createdAt", "completedAt", "error", "outputDocId", "operationId"], "additionalProperties": false } } }, "required": ["workflowId", "status", "completedRuns", "failedRuns", "pendingRuns", "totalRuns", "progressPct", "startedAt", "completedAt", "items"], "additionalProperties": false } },
|
|
57
|
-
"operationsList": { "operationId": "operationsList", "method": "GET", "path": "/v1/operations", "scope": "workspace", "bodySchema": null, "querySchema": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["dataFlow", "dataTable", "report", "dashboard"] }, "dataFlowId": { "type": "string", "minLength": 1 } }, "required": [], "additionalProperties": false }, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "kind": { "type": "string" }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "parentDataFlowId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "codeStale": { "type": "boolean" }, "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "
|
|
58
|
-
"operationsGet": { "operationId": "operationsGet", "method": "GET", "path": "/v1/operations/{operationId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "kind": { "type": "string" }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "parentDataFlowId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "codeStale": { "type": "boolean" }, "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "
|
|
59
|
-
"operationsUpdate": { "operationId": "operationsUpdate", "method": "PATCH", "path": "/v1/operations/{operationId}", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "
|
|
75
|
+
"operationsList": { "operationId": "operationsList", "method": "GET", "path": "/v1/operations", "scope": "workspace", "bodySchema": null, "querySchema": { "type": "object", "properties": { "kind": { "type": "string", "enum": ["dataFlow", "dataTable", "report", "dashboard"] }, "dataFlowId": { "type": "string", "minLength": 1 } }, "required": [], "additionalProperties": false }, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "kind": { "type": "string" }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "parentDataFlowId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "codeStale": { "type": "boolean" }, "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, { "type": "object", "nullable": true, "enum": [null] }] }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "draft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "published": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false } }, "required": ["id", "name", "kind", "instructions", "dataSourceIds", "parentDataFlowId", "status", "codeStale", "schedule", "isEnabled", "nextRunAt", "draft", "published"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
76
|
+
"operationsGet": { "operationId": "operationsGet", "method": "GET", "path": "/v1/operations/{operationId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "kind": { "type": "string" }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "parentDataFlowId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "codeStale": { "type": "boolean" }, "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, { "type": "object", "nullable": true, "enum": [null] }] }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "draft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "published": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false } }, "required": ["id", "name", "kind", "instructions", "dataSourceIds", "parentDataFlowId", "status", "codeStale", "schedule", "isEnabled", "nextRunAt", "draft", "published"], "additionalProperties": false } },
|
|
77
|
+
"operationsUpdate": { "operationId": "operationsUpdate", "method": "PATCH", "path": "/v1/operations/{operationId}", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, { "type": "object", "nullable": true, "enum": [null] }] }, "isEnabled": { "type": "boolean" } }, "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "kind": { "type": "string" }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "parentDataFlowId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "codeStale": { "type": "boolean" }, "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, { "type": "object", "nullable": true, "enum": [null] }] }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "draft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "published": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false } }, "required": ["id", "name", "kind", "instructions", "dataSourceIds", "parentDataFlowId", "status", "codeStale", "schedule", "isEnabled", "nextRunAt", "draft", "published"], "additionalProperties": false } },
|
|
60
78
|
"operationsSourceGet": { "operationId": "operationsSourceGet", "method": "GET", "path": "/v1/operations/{operationId}/source", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "operationId": { "type": "string" }, "source": { "type": "string" }, "incremental": { "nullable": true, "type": "object", "properties": { "sourceId": { "type": "string", "minLength": 1 }, "table": { "type": "string", "minLength": 1 }, "keyColumns": { "minItems": 1, "type": "array", "items": { "type": "string", "minLength": 1 } }, "inputColumns": { "minItems": 1, "type": "array", "items": { "type": "string", "minLength": 1 } } }, "required": ["sourceId", "table", "keyColumns", "inputColumns"], "additionalProperties": false }, "revision": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "dependencyOperationIds": { "type": "array", "items": { "type": "string" } }, "dataFlowRevision": { "nullable": true, "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["operationId", "source", "incremental", "revision", "instructions", "dataSourceIds", "dependencyOperationIds", "dataFlowRevision", "updatedAt"], "additionalProperties": false } },
|
|
61
79
|
"operationsSourceUpdate": { "operationId": "operationsSourceUpdate", "method": "PUT", "path": "/v1/operations/{operationId}/source", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "source": { "type": "string", "minLength": 1, "maxLength": 1000000 }, "incremental": { "nullable": true, "type": "object", "properties": { "sourceId": { "type": "string", "minLength": 1 }, "table": { "type": "string", "minLength": 1 }, "keyColumns": { "minItems": 1, "type": "array", "items": { "type": "string", "minLength": 1 } }, "inputColumns": { "minItems": 1, "type": "array", "items": { "type": "string", "minLength": 1 } } }, "required": ["sourceId", "table", "keyColumns", "inputColumns"], "additionalProperties": false }, "expectedRevision": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "expectedDataFlowRevision": { "nullable": true, "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "expectedUpdatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["source", "expectedRevision", "expectedDataFlowRevision", "expectedUpdatedAt"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "operationId": { "type": "string" }, "source": { "type": "string" }, "incremental": { "nullable": true, "type": "object", "properties": { "sourceId": { "type": "string", "minLength": 1 }, "table": { "type": "string", "minLength": 1 }, "keyColumns": { "minItems": 1, "type": "array", "items": { "type": "string", "minLength": 1 } }, "inputColumns": { "minItems": 1, "type": "array", "items": { "type": "string", "minLength": 1 } } }, "required": ["sourceId", "table", "keyColumns", "inputColumns"], "additionalProperties": false }, "revision": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "dependencyOperationIds": { "type": "array", "items": { "type": "string" } }, "dataFlowRevision": { "nullable": true, "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["operationId", "source", "incremental", "revision", "instructions", "dataSourceIds", "dependencyOperationIds", "dataFlowRevision", "updatedAt"], "additionalProperties": false } },
|
|
62
80
|
"operationsRunsList": { "operationId": "operationsRunsList", "method": "GET", "path": "/v1/operations/{operationId}/runs", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "workflowId": { "type": "string" }, "revisionId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "completedAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "error": { "nullable": true, "type": "string" }, "outputDocId": { "nullable": true, "type": "string" } }, "required": ["id", "workflowId", "revisionId", "status", "createdAt", "completedAt", "error", "outputDocId"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
63
81
|
"operationsRun": { "operationId": "operationsRun", "method": "POST", "path": "/v1/operations/{operationId}/runs", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "version": { "type": "string", "enum": ["draft", "published"] } }, "required": ["version"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "workflowId": { "type": "string" }, "runId": { "type": "string" } }, "required": ["workflowId"], "additionalProperties": false } },
|
|
64
82
|
"operationsRunOutput": { "operationId": "operationsRunOutput", "method": "GET", "path": "/v1/operations/{operationId}/runs/{runId}/output", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "runId": { "type": "string" }, "revisionId": { "nullable": true, "type": "string" }, "rowLimitPerTable": { "type": "number", "enum": [1000] }, "tables": { "type": "object", "additionalProperties": { "type": "array", "items": {} } }, "names": { "type": "object", "additionalProperties": { "type": "string" } }, "schemas": { "type": "object", "additionalProperties": {} } }, "required": ["runId", "revisionId", "rowLimitPerTable", "tables", "names", "schemas"], "additionalProperties": false } },
|
|
65
|
-
"dataFlowsCreate": { "operationId": "dataFlowsCreate", "method": "POST", "path": "/v1/data-flows", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "description": { "default": "", "type": "string" }, "dataSourceIds": { "default": [], "type": "array", "items": { "type": "string", "minLength": 1 } } }, "required": ["name"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "operation": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "kind": { "type": "string" }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "parentDataFlowId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "codeStale": { "type": "boolean" }, "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "
|
|
66
|
-
"dataFlowsGet": { "operationId": "dataFlowsGet", "method": "GET", "path": "/v1/data-flows/{dataFlowId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "operation": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "kind": { "type": "string" }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "parentDataFlowId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "codeStale": { "type": "boolean" }, "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "
|
|
83
|
+
"dataFlowsCreate": { "operationId": "dataFlowsCreate", "method": "POST", "path": "/v1/data-flows", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "description": { "default": "", "type": "string" }, "dataSourceIds": { "default": [], "type": "array", "items": { "type": "string", "minLength": 1 } } }, "required": ["name"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "operation": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "kind": { "type": "string" }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "parentDataFlowId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "codeStale": { "type": "boolean" }, "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, { "type": "object", "nullable": true, "enum": [null] }] }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "draft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "published": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false } }, "required": ["id", "name", "kind", "instructions", "dataSourceIds", "parentDataFlowId", "status", "codeStale", "schedule", "isEnabled", "nextRunAt", "draft", "published"], "additionalProperties": false }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "draftVersion": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "publishedVersion": { "nullable": true, "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "operationIds": { "type": "array", "items": { "type": "string" } }, "sourceIds": { "type": "array", "items": { "type": "string" } }, "edges": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "fromNodeId": { "type": "string" }, "toNodeId": { "type": "string" } }, "required": ["id", "fromNodeId", "toNodeId"], "additionalProperties": false } } }, "required": ["operation", "revision", "draftVersion", "publishedVersion", "operationIds", "sourceIds", "edges"], "additionalProperties": false } },
|
|
84
|
+
"dataFlowsGet": { "operationId": "dataFlowsGet", "method": "GET", "path": "/v1/data-flows/{dataFlowId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "operation": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "kind": { "type": "string" }, "instructions": { "type": "string" }, "dataSourceIds": { "type": "array", "items": { "type": "string" } }, "parentDataFlowId": { "nullable": true, "type": "string" }, "status": { "type": "string" }, "codeStale": { "type": "boolean" }, "schedule": { "anyOf": [{ "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["manual"] } }, "required": ["type"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["hourly"] }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["daily"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 } }, "required": ["type", "hour", "minute"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["weekly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfWeek": { "type": "integer", "minimum": 0, "maximum": 6 } }, "required": ["type", "hour", "minute", "dayOfWeek"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["monthly"] }, "hour": { "type": "integer", "minimum": 0, "maximum": 23 }, "minute": { "type": "integer", "minimum": 0, "maximum": 59 }, "dayOfMonth": { "type": "integer", "minimum": 1, "maximum": 31 } }, "required": ["type", "hour", "minute", "dayOfMonth"], "additionalProperties": false }] }, { "type": "object", "nullable": true, "enum": [null] }] }, "isEnabled": { "type": "boolean" }, "nextRunAt": { "nullable": true, "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "draft": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "published": { "nullable": true, "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false } }, "required": ["id", "name", "kind", "instructions", "dataSourceIds", "parentDataFlowId", "status", "codeStale", "schedule", "isEnabled", "nextRunAt", "draft", "published"], "additionalProperties": false }, "revision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "draftVersion": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "publishedVersion": { "nullable": true, "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "operationIds": { "type": "array", "items": { "type": "string" } }, "sourceIds": { "type": "array", "items": { "type": "string" } }, "edges": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "fromNodeId": { "type": "string" }, "toNodeId": { "type": "string" } }, "required": ["id", "fromNodeId", "toNodeId"], "additionalProperties": false } } }, "required": ["operation", "revision", "draftVersion", "publishedVersion", "operationIds", "sourceIds", "edges"], "additionalProperties": false } },
|
|
67
85
|
"dataFlowsCommand": { "operationId": "dataFlowsCommand", "method": "POST", "path": "/v1/data-flows/{dataFlowId}/commands", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "command": { "oneOf": [{ "type": "object", "properties": { "expectedRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "type": { "type": "string", "enum": ["updateFlow"] }, "patch": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "description": { "type": "string" } }, "additionalProperties": false } }, "required": ["expectedRevision", "type", "patch"], "additionalProperties": false }, { "type": "object", "properties": { "expectedRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "type": { "type": "string", "enum": ["addTransform"] }, "input": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "instruction": { "type": "string", "minLength": 1 }, "inputIds": { "minItems": 1, "type": "array", "items": { "type": "string", "minLength": 1 } }, "position": { "type": "object", "properties": { "x": { "type": "number" }, "y": { "type": "number" } }, "required": ["x", "y"], "additionalProperties": false } }, "required": ["name", "instruction", "inputIds"], "additionalProperties": false } }, "required": ["expectedRevision", "type", "input"], "additionalProperties": false }, { "type": "object", "properties": { "expectedRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "type": { "type": "string", "enum": ["updateNode"] }, "nodeId": { "type": "string", "minLength": 1 }, "patch": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1 }, "instruction": { "type": "string", "minLength": 1 }, "locked": { "type": "boolean" }, "position": { "type": "object", "properties": { "x": { "type": "number" }, "y": { "type": "number" } }, "required": ["x", "y"], "additionalProperties": false } }, "additionalProperties": false } }, "required": ["expectedRevision", "type", "nodeId", "patch"], "additionalProperties": false }, { "type": "object", "properties": { "expectedRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "type": { "type": "string", "enum": ["deleteNode"] }, "nodeId": { "type": "string", "minLength": 1 } }, "required": ["expectedRevision", "type", "nodeId"], "additionalProperties": false }, { "type": "object", "properties": { "expectedRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "type": { "type": "string", "enum": ["connectNodes"] }, "fromNodeId": { "type": "string", "minLength": 1 }, "toNodeId": { "type": "string", "minLength": 1 } }, "required": ["expectedRevision", "type", "fromNodeId", "toNodeId"], "additionalProperties": false }, { "type": "object", "properties": { "expectedRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "type": { "type": "string", "enum": ["disconnectNodes"] }, "edgeId": { "type": "string", "minLength": 1 } }, "required": ["expectedRevision", "type", "edgeId"], "additionalProperties": false }, { "type": "object", "properties": { "expectedRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "type": { "type": "string", "enum": ["publish"] } }, "required": ["expectedRevision", "type"], "additionalProperties": false }, { "type": "object", "properties": { "expectedRevision": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "type": { "type": "string", "enum": ["deleteFlow"] } }, "required": ["expectedRevision", "type"], "additionalProperties": false }] } }, "required": ["command"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "dataFlowId": { "type": "string" }, "deleted": { "type": "boolean" } }, "required": ["dataFlowId", "deleted"], "additionalProperties": false } },
|
|
68
86
|
"factsList": { "operationId": "factsList", "method": "GET", "path": "/v1/facts", "scope": "organization", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "definition": { "nullable": true, "type": "string", "maxLength": 2000 }, "aliases": { "nullable": true, "type": "string", "maxLength": 1000 }, "formula": { "nullable": true, "type": "string", "maxLength": 2000 }, "formulaType": { "nullable": true, "type": "string", "enum": ["math", "sql", null] }, "usualValue": { "nullable": true, "type": "number" }, "usualValueMin": { "nullable": true, "type": "number" }, "usualValueMax": { "nullable": true, "type": "number" }, "unit": { "nullable": true, "type": "string", "maxLength": 255 }, "startDate": { "nullable": true, "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "endDate": { "nullable": true, "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "scope": { "nullable": true, "type": "string", "maxLength": 255 }, "metadata": { "nullable": true, "type": "object", "additionalProperties": {} }, "id": { "type": "string" }, "organizationId": { "type": "string" }, "key": { "type": "string" }, "type": { "type": "string", "enum": ["definition", "alias", "formula", "baseline"] }, "ownerId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["name", "id", "organizationId", "key", "type", "ownerId", "createdAt", "updatedAt"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
69
87
|
"factsCreate": { "operationId": "factsCreate", "method": "POST", "path": "/v1/facts", "scope": "organization", "bodySchema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "definition": { "nullable": true, "type": "string", "maxLength": 2000 }, "aliases": { "nullable": true, "type": "string", "maxLength": 1000 }, "formula": { "nullable": true, "type": "string", "maxLength": 2000 }, "formulaType": { "nullable": true, "type": "string", "enum": ["math", "sql", null] }, "usualValue": { "nullable": true, "type": "number" }, "usualValueMin": { "nullable": true, "type": "number" }, "usualValueMax": { "nullable": true, "type": "number" }, "unit": { "nullable": true, "type": "string", "maxLength": 255 }, "startDate": { "nullable": true, "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "endDate": { "nullable": true, "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "scope": { "nullable": true, "type": "string", "maxLength": 255 }, "metadata": { "nullable": true, "type": "object", "additionalProperties": {} } }, "required": ["name"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "definition": { "nullable": true, "type": "string", "maxLength": 2000 }, "aliases": { "nullable": true, "type": "string", "maxLength": 1000 }, "formula": { "nullable": true, "type": "string", "maxLength": 2000 }, "formulaType": { "nullable": true, "type": "string", "enum": ["math", "sql", null] }, "usualValue": { "nullable": true, "type": "number" }, "usualValueMin": { "nullable": true, "type": "number" }, "usualValueMax": { "nullable": true, "type": "number" }, "unit": { "nullable": true, "type": "string", "maxLength": 255 }, "startDate": { "nullable": true, "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "endDate": { "nullable": true, "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$" }, "scope": { "nullable": true, "type": "string", "maxLength": 255 }, "metadata": { "nullable": true, "type": "object", "additionalProperties": {} }, "id": { "type": "string" }, "organizationId": { "type": "string" }, "key": { "type": "string" }, "type": { "type": "string", "enum": ["definition", "alias", "formula", "baseline"] }, "ownerId": { "type": "string" }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["name", "id", "organizationId", "key", "type", "ownerId", "createdAt", "updatedAt"], "additionalProperties": false } },
|
|
@@ -104,7 +122,7 @@ export const publicApiRoutes = {
|
|
|
104
122
|
"appsUpdate": { "operationId": "appsUpdate", "method": "PATCH", "path": "/v1/apps/{applicationId}", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "name": { "type": "string", "minLength": 1, "maxLength": 255 }, "description": { "type": "string", "maxLength": 2000 }, "login": { "nullable": true, "type": "object", "properties": { "sidePanelImage": { "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!__)(?!v1(?:\\/|$))(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))[a-zA-Z0-9_-][a-zA-Z0-9_./-]*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "exclusiveMinimum": 0, "maximum": 2097152 } }, "required": ["path", "sha256", "size"], "additionalProperties": false }, "header": { "type": "string", "maxLength": 160 }, "subheader": { "type": "string", "maxLength": 300 }, "title": { "type": "string", "maxLength": 100 }, "subtitle": { "type": "string", "maxLength": 100 }, "primaryColor": { "type": "string", "pattern": "^#[a-fA-F0-9]{6}$" }, "secondaryColor": { "type": "string", "pattern": "^#[a-fA-F0-9]{6}$" } }, "additionalProperties": false }, "favicon": { "nullable": true, "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!__)(?!v1(?:\\/|$))(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))[a-zA-Z0-9_-][a-zA-Z0-9_./-]*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "exclusiveMinimum": 0, "maximum": 262144 } }, "required": ["path", "sha256", "size"], "additionalProperties": false }, "chat": { "type": "object", "properties": { "enabled": { "type": "boolean" } }, "required": ["enabled"], "additionalProperties": false }, "expectedDraft": { "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false } }, "required": ["expectedDraft"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^appl_[a-z0-9]{24}$" }, "workspaceId": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "login": { "nullable": true, "type": "object", "properties": { "sidePanelImage": { "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!__)(?!v1(?:\\/|$))(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))[a-zA-Z0-9_-][a-zA-Z0-9_./-]*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "exclusiveMinimum": 0, "maximum": 2097152 } }, "required": ["path", "sha256", "size"], "additionalProperties": false }, "header": { "type": "string", "maxLength": 160 }, "subheader": { "type": "string", "maxLength": 300 }, "title": { "type": "string", "maxLength": 100 }, "subtitle": { "type": "string", "maxLength": 100 }, "primaryColor": { "type": "string", "pattern": "^#[a-fA-F0-9]{6}$" }, "secondaryColor": { "type": "string", "pattern": "^#[a-fA-F0-9]{6}$" } }, "additionalProperties": false }, "favicon": { "nullable": true, "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!__)(?!v1(?:\\/|$))(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))[a-zA-Z0-9_-][a-zA-Z0-9_./-]*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "exclusiveMinimum": 0, "maximum": 262144 } }, "required": ["path", "sha256", "size"], "additionalProperties": false }, "chat": { "type": "object", "properties": { "enabled": { "type": "boolean" } }, "required": ["enabled"], "additionalProperties": false }, "deployment": { "nullable": true, "type": "object", "properties": { "status": { "type": "string", "enum": ["deploying", "live", "deleting", "failed", "deleted"] }, "url": { "type": "string", "format": "uri" }, "revisionId": { "type": "string" }, "error": { "nullable": true, "type": "string" } }, "required": ["status", "url", "revisionId", "error"], "additionalProperties": false }, "draft": { "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["id", "workspaceId", "name", "description", "deployment", "draft", "createdAt", "updatedAt"], "additionalProperties": false } },
|
|
105
123
|
"appsDelete": { "operationId": "appsDelete", "method": "DELETE", "path": "/v1/apps/{applicationId}", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "deleted": { "type": "boolean" } }, "required": ["id", "deleted"], "additionalProperties": false } },
|
|
106
124
|
"appsUploadsCreate": { "operationId": "appsUploadsCreate", "method": "POST", "path": "/v1/apps/{applicationId}/uploads", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "files": { "minItems": 1, "maxItems": 1000, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?=[\\x20-\\x7e\\x80-\\uffff]+$)[^\\\\/:<>\"|?*]+(?:\\/[^\\\\/:<>\"|?*]+)*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "minimum": 0, "maximum": 4194304 } }, "required": ["path", "sha256", "size"], "additionalProperties": false } } }, "required": ["files"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "uploads": { "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string" }, "url": { "type": "string", "format": "uri" }, "headers": { "type": "object", "additionalProperties": { "type": "string" } } }, "required": ["path", "url", "headers"], "additionalProperties": false } } }, "required": ["uploads"], "additionalProperties": false } },
|
|
107
|
-
"appsSiteUpdate": { "operationId": "appsSiteUpdate", "method": "PUT", "path": "/v1/apps/{applicationId}/site", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "source": { "type": "object", "properties": { "files": { "minItems": 1, "maxItems": 1000, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?=[\\x20-\\x7e\\x80-\\uffff]+$)[^\\\\/:<>\"|?*]+(?:\\/[^\\\\/:<>\"|?*]+)*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "minimum": 0, "maximum": 4194304 }, "executable": { "type": "boolean" } }, "required": ["path", "sha256", "size"], "additionalProperties": false } }, "build": { "type": "object", "properties": { "command": { "type": "string", "minLength": 1, "maxLength": 1000 }, "outputDirectory": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?=[\\x20-\\x7e\\x80-\\uffff]+$)[^\\\\/:<>\"|?*]+(?:\\/[^\\\\/:<>\"|?*]+)*$" }, "runtime": { "type": "string", "pattern": "^(?:bun|node)@\\d+\\.\\d+\\.\\d+$" } }, "required": ["command", "outputDirectory", "runtime"], "additionalProperties": false } }, "required": ["files", "build"], "additionalProperties": false }, "site": { "type": "object", "properties": { "files": { "minItems": 1, "maxItems": 200, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!__)(?!v1(?:\\/|$))(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))[a-zA-Z0-9_-][a-zA-Z0-9_./-]*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "minimum": 0, "maximum": 4194304 } }, "required": ["path", "sha256", "size"], "additionalProperties": false } }, "spa": { "type": "boolean" } }, "required": ["files", "spa"], "additionalProperties": false }, "actions": { "maxItems":
|
|
125
|
+
"appsSiteUpdate": { "operationId": "appsSiteUpdate", "method": "PUT", "path": "/v1/apps/{applicationId}/site", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "source": { "type": "object", "properties": { "files": { "minItems": 1, "maxItems": 1000, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?=[\\x20-\\x7e\\x80-\\uffff]+$)[^\\\\/:<>\"|?*]+(?:\\/[^\\\\/:<>\"|?*]+)*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "minimum": 0, "maximum": 4194304 }, "executable": { "type": "boolean" } }, "required": ["path", "sha256", "size"], "additionalProperties": false } }, "build": { "type": "object", "properties": { "command": { "type": "string", "minLength": 1, "maxLength": 1000 }, "outputDirectory": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?=[\\x20-\\x7e\\x80-\\uffff]+$)[^\\\\/:<>\"|?*]+(?:\\/[^\\\\/:<>\"|?*]+)*$" }, "runtime": { "type": "string", "pattern": "^(?:bun|node)@\\d+\\.\\d+\\.\\d+$" } }, "required": ["command", "outputDirectory", "runtime"], "additionalProperties": false } }, "required": ["files", "build"], "additionalProperties": false }, "site": { "type": "object", "properties": { "files": { "minItems": 1, "maxItems": 200, "type": "array", "items": { "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!__)(?!v1(?:\\/|$))(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))[a-zA-Z0-9_-][a-zA-Z0-9_./-]*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "minimum": 0, "maximum": 4194304 } }, "required": ["path", "sha256", "size"], "additionalProperties": false } }, "spa": { "type": "boolean" } }, "required": ["files", "spa"], "additionalProperties": false }, "actions": { "maxItems": 500, "type": "array", "items": { "type": "object", "properties": { "actionId": { "type": "string", "pattern": "^actn_[a-z0-9]{24}$" }, "revisionId": { "type": "string", "minLength": 1 } }, "required": ["actionId", "revisionId"], "additionalProperties": false } }, "expectedDraft": { "type": "object", "properties": { "revisionId": { "type": "string", "minLength": 1 }, "sequence": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false } }, "required": ["source", "expectedDraft"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^appl_[a-z0-9]{24}$" }, "workspaceId": { "type": "string" }, "name": { "type": "string" }, "description": { "type": "string" }, "login": { "nullable": true, "type": "object", "properties": { "sidePanelImage": { "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!__)(?!v1(?:\\/|$))(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))[a-zA-Z0-9_-][a-zA-Z0-9_./-]*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "exclusiveMinimum": 0, "maximum": 2097152 } }, "required": ["path", "sha256", "size"], "additionalProperties": false }, "header": { "type": "string", "maxLength": 160 }, "subheader": { "type": "string", "maxLength": 300 }, "title": { "type": "string", "maxLength": 100 }, "subtitle": { "type": "string", "maxLength": 100 }, "primaryColor": { "type": "string", "pattern": "^#[a-fA-F0-9]{6}$" }, "secondaryColor": { "type": "string", "pattern": "^#[a-fA-F0-9]{6}$" } }, "additionalProperties": false }, "favicon": { "nullable": true, "type": "object", "properties": { "path": { "type": "string", "minLength": 1, "maxLength": 240, "pattern": "^(?!__)(?!v1(?:\\/|$))(?!.*(?:^|\\/)\\.{1,2}(?:\\/|$))[a-zA-Z0-9_-][a-zA-Z0-9_./-]*$" }, "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "size": { "type": "integer", "exclusiveMinimum": 0, "maximum": 262144 } }, "required": ["path", "sha256", "size"], "additionalProperties": false }, "chat": { "type": "object", "properties": { "enabled": { "type": "boolean" } }, "required": ["enabled"], "additionalProperties": false }, "deployment": { "nullable": true, "type": "object", "properties": { "status": { "type": "string", "enum": ["deploying", "live", "deleting", "failed", "deleted"] }, "url": { "type": "string", "format": "uri" }, "revisionId": { "type": "string" }, "error": { "nullable": true, "type": "string" } }, "required": ["status", "url", "revisionId", "error"], "additionalProperties": false }, "draft": { "type": "object", "properties": { "revisionId": { "type": "string" }, "sequence": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 } }, "required": ["revisionId", "sequence"], "additionalProperties": false }, "createdAt": { "type": "string" }, "updatedAt": { "type": "string" } }, "required": ["id", "workspaceId", "name", "description", "deployment", "draft", "createdAt", "updatedAt"], "additionalProperties": false } },
|
|
108
126
|
"writeSyncsList": { "operationId": "writeSyncsList", "method": "GET", "path": "/v1/write-syncs", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "definition": { "nullable": true, "type": "object", "properties": { "source": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1, "maxLength": 512 }, "object": { "type": "string", "minLength": 1, "maxLength": 512 }, "scope": { "type": "string" } }, "required": ["resourceId", "object", "scope"], "additionalProperties": false }, "destination": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1, "maxLength": 512 }, "object": { "type": "string", "minLength": 1, "maxLength": 512 }, "scope": { "type": "string" } }, "required": ["resourceId", "object", "scope"], "additionalProperties": false }, "input": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["source"] }, "table": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": ["type", "table"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["operation"] }, "operationId": { "type": "string", "minLength": 1, "maxLength": 512 }, "revisionId": { "type": "string", "minLength": 1, "maxLength": 512 }, "table": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": ["type", "operationId", "revisionId", "table"], "additionalProperties": false }] }, "keyColumn": { "type": "string", "minLength": 1, "maxLength": 512 }, "fields": { "type": "object", "additionalProperties": { "type": "string", "minLength": 1, "maxLength": 512 } } }, "required": ["source", "destination", "input", "keyColumn", "fields"], "additionalProperties": false }, "version": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "isEnabled": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["id", "name", "definition", "version", "isEnabled", "createdAt", "updatedAt"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
109
127
|
"writeSyncsCreate": { "operationId": "writeSyncsCreate", "method": "POST", "path": "/v1/write-syncs", "scope": "workspace", "bodySchema": { "type": "object", "properties": { "definition": { "type": "object", "properties": { "source": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1, "maxLength": 512 }, "object": { "type": "string", "minLength": 1, "maxLength": 512 }, "scope": { "type": "string" } }, "required": ["resourceId", "object", "scope"], "additionalProperties": false }, "destination": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1, "maxLength": 512 }, "object": { "type": "string", "minLength": 1, "maxLength": 512 }, "scope": { "type": "string" } }, "required": ["resourceId", "object", "scope"], "additionalProperties": false }, "input": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["source"] }, "table": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": ["type", "table"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["operation"] }, "operationId": { "type": "string", "minLength": 1, "maxLength": 512 }, "revisionId": { "type": "string", "minLength": 1, "maxLength": 512 }, "table": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": ["type", "operationId", "revisionId", "table"], "additionalProperties": false }] }, "keyColumn": { "type": "string", "minLength": 1, "maxLength": 512 }, "fields": { "type": "object", "additionalProperties": { "type": "string", "minLength": 1, "maxLength": 512 } } }, "required": ["source", "destination", "input", "keyColumn", "fields"], "additionalProperties": false } }, "required": ["definition"], "additionalProperties": false }, "querySchema": null, "responseSchema": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "definition": { "nullable": true, "type": "object", "properties": { "source": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1, "maxLength": 512 }, "object": { "type": "string", "minLength": 1, "maxLength": 512 }, "scope": { "type": "string" } }, "required": ["resourceId", "object", "scope"], "additionalProperties": false }, "destination": { "type": "object", "properties": { "resourceId": { "type": "string", "minLength": 1, "maxLength": 512 }, "object": { "type": "string", "minLength": 1, "maxLength": 512 }, "scope": { "type": "string" } }, "required": ["resourceId", "object", "scope"], "additionalProperties": false }, "input": { "oneOf": [{ "type": "object", "properties": { "type": { "type": "string", "enum": ["source"] }, "table": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": ["type", "table"], "additionalProperties": false }, { "type": "object", "properties": { "type": { "type": "string", "enum": ["operation"] }, "operationId": { "type": "string", "minLength": 1, "maxLength": 512 }, "revisionId": { "type": "string", "minLength": 1, "maxLength": 512 }, "table": { "type": "string", "minLength": 1, "maxLength": 512 } }, "required": ["type", "operationId", "revisionId", "table"], "additionalProperties": false }] }, "keyColumn": { "type": "string", "minLength": 1, "maxLength": 512 }, "fields": { "type": "object", "additionalProperties": { "type": "string", "minLength": 1, "maxLength": 512 } } }, "required": ["source", "destination", "input", "keyColumn", "fields"], "additionalProperties": false }, "version": { "type": "integer", "minimum": -9007199254740991, "maximum": 9007199254740991 }, "isEnabled": { "type": "boolean" }, "createdAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "updatedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["id", "name", "definition", "version", "isEnabled", "createdAt", "updatedAt"], "additionalProperties": false } },
|
|
110
128
|
"writeSyncsDestinations": { "operationId": "writeSyncsDestinations", "method": "GET", "path": "/v1/write-syncs/destinations", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "name": { "type": "string" }, "provider": { "type": "string" }, "objects": { "type": "array", "items": { "type": "object", "properties": { "object": { "type": "string" }, "scope": { "type": "string" }, "label": { "type": "string" }, "fields": { "type": "array", "items": { "type": "object", "properties": { "name": { "type": "string" }, "label": { "type": "string" }, "type": { "type": "string", "enum": ["string", "array"] } }, "required": ["name", "label", "type"], "additionalProperties": false } } }, "required": ["object", "scope", "label", "fields"], "additionalProperties": false } } }, "required": ["id", "name", "provider", "objects"], "additionalProperties": false } } }, "required": ["items"], "additionalProperties": false } },
|
|
@@ -117,6 +135,55 @@ export const publicApiRoutes = {
|
|
|
117
135
|
"writeSyncsGetRun": { "operationId": "writeSyncsGetRun", "method": "GET", "path": "/v1/write-syncs/{writeSyncId}/runs/{runId}", "scope": "workspace", "bodySchema": null, "querySchema": { "type": "object", "properties": { "page": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 } }, "required": [], "additionalProperties": false }, "responseSchema": { "type": "object", "properties": { "id": { "anyOf": [{ "type": "string", "pattern": "^wsrn_[a-z0-9]{24}$" }, { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }] }, "previewComplete": { "type": "boolean" }, "previewError": { "type": "string" }, "automatic": { "type": "object", "properties": { "approvedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" } }, "required": ["approvedAt"], "additionalProperties": false }, "execution": { "type": "object", "properties": { "requestedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "completedAt": { "type": "string", "format": "date-time", "pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$" }, "error": { "type": "string" } }, "required": ["requestedAt"], "additionalProperties": false }, "writeSyncId": { "type": "string" }, "definitionVersion": { "type": "integer", "exclusiveMinimum": 0, "maximum": 9007199254740991 }, "definitionRevisionId": { "type": "string" }, "sourceOperation": { "type": "object", "properties": { "runId": { "type": "string" }, "revisionId": { "type": "string" } }, "required": ["runId", "revisionId"], "additionalProperties": false }, "recordCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "page": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "pageCount": { "type": "integer", "minimum": 0, "maximum": 9007199254740991 }, "records": { "type": "array", "items": { "type": "object", "properties": { "key": { "type": "string" }, "values": { "type": "object", "additionalProperties": {} }, "action": { "type": "string", "enum": ["create", "unchanged", "blocked"] }, "status": { "type": "string", "enum": ["pending", "sending", "applied", "rejected", "unknown", "skipped"] }, "reason": { "type": "string" }, "destinationId": { "type": "string" } }, "required": ["key", "values"], "additionalProperties": false } } }, "required": ["id", "previewComplete", "writeSyncId", "definitionVersion", "recordCount", "page", "pageCount", "records"], "additionalProperties": false } },
|
|
118
136
|
"writeSyncsExecute": { "operationId": "writeSyncsExecute", "method": "POST", "path": "/v1/write-syncs/{writeSyncId}/runs/{runId}/execute", "scope": "workspace", "bodySchema": null, "querySchema": null, "responseSchema": { "type": "object", "properties": { "runId": { "anyOf": [{ "type": "string", "pattern": "^wsrn_[a-z0-9]{24}$" }, { "type": "string", "format": "uuid", "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$" }] }, "queued": { "type": "boolean" } }, "required": ["runId", "queued"], "additionalProperties": false } },
|
|
119
137
|
};
|
|
138
|
+
export const authorizationRequestSchema = {
|
|
139
|
+
type: 'object',
|
|
140
|
+
properties: {
|
|
141
|
+
organizationId: { type: 'string', minLength: 1, maxLength: 128 },
|
|
142
|
+
workspaceId: { type: 'string', minLength: 1, maxLength: 128 },
|
|
143
|
+
permissions: {
|
|
144
|
+
minItems: 1,
|
|
145
|
+
maxItems: 50,
|
|
146
|
+
type: 'array',
|
|
147
|
+
items: {
|
|
148
|
+
type: 'object',
|
|
149
|
+
properties: {
|
|
150
|
+
resourceId: { type: 'string', minLength: 1, maxLength: 128 },
|
|
151
|
+
resourceType: { type: 'string', minLength: 1, maxLength: 128 },
|
|
152
|
+
level: { type: 'string', enum: ['read', 'write', 'admin'] },
|
|
153
|
+
operations: {
|
|
154
|
+
minItems: 1,
|
|
155
|
+
maxItems: 8,
|
|
156
|
+
type: 'array',
|
|
157
|
+
items: {
|
|
158
|
+
type: 'string',
|
|
159
|
+
enum: [
|
|
160
|
+
'application.read_metadata',
|
|
161
|
+
'application.update_metadata',
|
|
162
|
+
'application.read_implementation',
|
|
163
|
+
'application.update_draft',
|
|
164
|
+
'application.publish',
|
|
165
|
+
'application.manage_access',
|
|
166
|
+
'application.manage_hosting',
|
|
167
|
+
'application.delete',
|
|
168
|
+
'business_action.read_metadata',
|
|
169
|
+
'business_action.invoke',
|
|
170
|
+
'business_action.read_implementation',
|
|
171
|
+
'business_action.update_draft',
|
|
172
|
+
'business_action.publish',
|
|
173
|
+
'business_action.manage_access',
|
|
174
|
+
'business_action.delegate_access',
|
|
175
|
+
'business_action.delete',
|
|
176
|
+
],
|
|
177
|
+
},
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
required: ['resourceId', 'resourceType', 'level'],
|
|
181
|
+
additionalProperties: false,
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
},
|
|
185
|
+
additionalProperties: false,
|
|
186
|
+
};
|
|
120
187
|
export const Providers = {
|
|
121
188
|
ACUMATICA: 'acumatica',
|
|
122
189
|
AMAZON_ADS: 'amazon_ads',
|
|
@@ -138,6 +205,7 @@ export const Providers = {
|
|
|
138
205
|
META_ADS: 'meta_ads',
|
|
139
206
|
MICROSOFT_ADVERTISING: 'microsoft_advertising',
|
|
140
207
|
MONDAY: 'monday',
|
|
208
|
+
POSTGRES: 'postgres',
|
|
141
209
|
PROCORE: 'procore',
|
|
142
210
|
PYLON: 'pylon',
|
|
143
211
|
QUICKBOOKS: 'quickbooks',
|