From 63efa89c3d9bb8a288fcfa19e3e21cda5abf20c2 Mon Sep 17 00:00:00 2001 From: Tom Frenken Date: Fri, 2 Aug 2024 12:26:52 +0200 Subject: [PATCH 01/15] update spec files --- packages/ai-core/package.json | 3 +- packages/ai-core/spec/AI_CORE_API.yaml | 11214 ++++++++-------- packages/ai-core/src/ai-core.test.ts | 5 - packages/ai-core/src/application-api.ts | 38 +- packages/ai-core/src/artifact-api.test.ts | 18 +- packages/ai-core/src/artifact-api.ts | 24 +- .../ai-core/src/configuration-api.test.ts | 23 +- packages/ai-core/src/configuration-api.ts | 28 +- packages/ai-core/src/deployment-api.test.ts | 36 +- packages/ai-core/src/deployment-api.ts | 68 +- .../ai-core/src/docker-registry-secret-api.ts | 31 +- packages/ai-core/src/executable-api.ts | 6 +- packages/ai-core/src/execution-api.test.ts | 16 +- packages/ai-core/src/execution-api.ts | 59 +- .../ai-core/src/execution-schedule-api.ts | 30 +- packages/ai-core/src/file-api.ts | 4 +- packages/ai-core/src/index.ts | 43 +- packages/ai-core/src/kpi-api.ts | 6 +- packages/ai-core/src/meta-api.ts | 4 +- packages/ai-core/src/metrics-api.ts | 35 +- packages/ai-core/src/model-api.ts | 26 + .../ai-core/src/object-store-secret-api.ts | 30 +- packages/ai-core/src/repository-api.ts | 30 +- packages/ai-core/src/resource-api.ts | 14 +- packages/ai-core/src/resource-group-api.ts | 26 +- packages/ai-core/src/resource-quota-api.ts | 18 +- packages/ai-core/src/scenario-api.test.ts | 6 +- packages/ai-core/src/scenario-api.ts | 8 +- .../ai-api-capabilities-bulk-updates.ts | 13 - .../src/schema/ai-api-capabilities-logs.ts | 19 - .../ai-core/src/schema/ai-api-capabilities.ts | 40 - .../src/schema/ai-api-error-with-id.ts | 14 + .../schema/{api-error.ts => ai-api-error.ts} | 4 +- .../src/schema/ai-api-limits-deployments.ts | 16 - .../src/schema/ai-api-limits-executions.ts | 16 - .../ai-api-limits-time-to-live-deployments.ts | 19 - packages/ai-core/src/schema/ai-api-limits.ts | 16 - packages/ai-core/src/schema/ai-api.ts | 15 - .../ai-artifact-argument-binding-list.ts | 11 + .../schema/ai-artifact-argument-binding.ts | 18 + .../ai-core/src/schema/ai-artifact-array.ts | 10 + .../ai-artifact-creation-response-message.ts | 11 + .../schema/ai-artifact-creation-response.ts | 16 + ...cription.ts => ai-artifact-description.ts} | 2 +- packages/ai-core/src/schema/ai-artifact-id.ts | 12 + .../ai-core/src/schema/ai-artifact-list.ts | 16 + ...l-language-term.ts => ai-artifact-name.ts} | 5 +- .../src/schema/ai-artifact-post-data.ts | 25 + .../{artifact-url.ts => ai-artifact-url.ts} | 2 +- packages/ai-core/src/schema/ai-artifact.ts | 42 + ...ckend-details.ts => ai-backend-details.ts} | 2 +- .../src/schema/ai-configuration-base-data.ts | 20 + ...configuration-creation-response-message.ts | 11 + .../ai-configuration-creation-response.ts | 14 + .../ai-core/src/schema/ai-configuration-id.ts | 12 + .../src/schema/ai-configuration-list.ts | 16 + .../src/schema/ai-configuration-name.ts | 12 + .../ai-core/src/schema/ai-configuration.ts | 28 + .../schema/ai-creation-response-message.ts | 11 + .../src/schema/{cron.ts => ai-cron.ts} | 2 +- ...i-deployment-bulk-modification-request.ts} | 6 +- ...-deployment-bulk-modification-response.ts} | 6 +- .../schema/ai-deployment-creation-request.ts | 14 + ...ai-deployment-creation-response-message.ts | 11 + .../schema/ai-deployment-creation-response.ts | 20 + ...ai-deployment-deletion-response-message.ts | 11 + .../schema/ai-deployment-deletion-response.ts | 14 + ...nt-details.ts => ai-deployment-details.ts} | 10 +- .../ai-core/src/schema/ai-deployment-id.ts | 12 + .../ai-core/src/schema/ai-deployment-list.ts | 16 + ...i-deployment-modification-request-list.ts} | 8 +- ...t-modification-request-with-identifier.ts} | 8 +- ... => ai-deployment-modification-request.ts} | 10 +- ...i-deployment-modification-response-list.ts | 13 + ...eployment-modification-response-message.ts | 11 + .../ai-deployment-modification-response.ts | 14 + .../ai-deployment-response-with-details.ts | 69 + ...ils.ts => ai-deployment-status-details.ts} | 2 +- ...ist.ts => ai-deployment-status-message.ts} | 5 +- .../src/schema/ai-deployment-status.ts | 18 + .../src/schema/ai-deployment-target-status.ts | 11 + ...-live.ts => ai-deployment-time-to-live.ts} | 2 +- ...deployment-url.ts => ai-deployment-url.ts} | 2 +- packages/ai-core/src/schema/ai-deployment.ts | 67 + ...st.ts => ai-enactment-creation-request.ts} | 6 +- ...list.ts => ai-executable-artifact-list.ts} | 4 +- ...-artifact.ts => ai-executable-artifact.ts} | 8 +- ...ion-schedule-id.ts => ai-executable-id.ts} | 8 +- .../ai-core/src/schema/ai-executable-list.ts | 16 + ...ist.ts => ai-executable-parameter-list.ts} | 4 +- ...arameter.ts => ai-executable-parameter.ts} | 6 +- packages/ai-core/src/schema/ai-executable.ts | 46 + ...ai-execution-bulk-modification-request.ts} | 6 +- ...i-execution-bulk-modification-response.ts} | 6 +- ...ai-execution-creation-response-message.ts} | 5 +- .../schema/ai-execution-creation-response.ts | 16 + .../ai-execution-deletion-response-message.ts | 11 + .../schema/ai-execution-deletion-response.ts | 14 + .../ai-core/src/schema/ai-execution-id.ts | 12 + .../ai-core/src/schema/ai-execution-list.ts | 16 + ...ai-execution-modification-request-list.ts} | 8 +- ...n-modification-request-with-identifier.ts} | 8 +- ...s => ai-execution-modification-request.ts} | 4 +- ...ai-execution-modification-response-list.ts | 13 + ...execution-modification-response-message.ts | 11 + .../ai-execution-modification-response.ts | 14 + .../ai-execution-response-with-details.ts | 58 + ...=> ai-execution-schedule-creation-data.ts} | 12 +- ...tion-schedule-creation-response-message.ts | 11 + ...ai-execution-schedule-creation-response.ts | 14 + ...tion-schedule-deletion-response-message.ts | 11 + ...ai-execution-schedule-deletion-response.ts | 14 + .../src/schema/ai-execution-schedule-id.ts | 12 + .../src/schema/ai-execution-schedule-list.ts | 16 + ...execution-schedule-modification-request.ts | 26 + ...-schedule-modification-response-message.ts | 11 + ...xecution-schedule-modification-response.ts | 14 + ...tus.ts => ai-execution-schedule-status.ts} | 2 +- .../src/schema/ai-execution-schedule.ts | 43 + ...ails.ts => ai-execution-status-details.ts} | 2 +- .../src/schema/ai-execution-status-message.ts | 11 + .../{status.ts => ai-execution-status.ts} | 6 +- packages/ai-core/src/schema/ai-execution.ts | 56 + .../ai-core/src/schema/{id.ts => ai-id.ts} | 2 +- .../schema/{label-key.ts => ai-label-key.ts} | 4 +- .../{label-list.ts => ai-label-list.ts} | 4 +- .../{label-value.ts => ai-label-value.ts} | 4 +- packages/ai-core/src/schema/ai-label.ts | 14 + ...error-details.ts => ai-log-common-data.ts} | 15 +- ...n-data.ts => ai-log-common-result-item.ts} | 13 +- .../src/schema/ai-log-common-result.ts | 10 + .../ai-core/src/schema/ai-model-base-data.ts | 22 + packages/ai-core/src/schema/ai-model-list.ts | 16 + .../src/schema/ai-model-version-list.ts | 10 + ...table-base-data.ts => ai-model-version.ts} | 12 +- .../ai-parameter-argument-binding-list.ts | 11 + ...ng.ts => ai-parameter-argument-binding.ts} | 2 +- ...ces-details.ts => ai-resources-details.ts} | 6 +- ...aling-details.ts => ai-scaling-details.ts} | 6 +- packages/ai-core/src/schema/ai-scenario-id.ts | 12 + ...-label-key.ts => ai-scenario-label-key.ts} | 4 +- ...up-labels.ts => ai-scenario-label-list.ts} | 4 +- .../ai-core/src/schema/ai-scenario-label.ts | 14 + ...{resource-count.ts => ai-scenario-list.ts} | 9 +- packages/ai-core/src/schema/ai-scenario.ts | 35 + packages/ai-core/src/schema/ai-url.ts | 11 + ...scription.ts => ai-version-description.ts} | 2 +- .../{version-id.ts => ai-version-id.ts} | 2 +- .../{resource-list.ts => ai-version-list.ts} | 8 +- packages/ai-core/src/schema/ai-version.ts | 26 + .../ai-core/src/schema/api-error-with-id.ts | 14 - ...d-application-creation-response-message.ts | 11 - .../argo-cd-application-creation-response.ts | 13 - ...d-application-deletion-response-message.ts | 11 - .../argo-cd-application-deletion-response.ts | 13 - ...plication-modification-response-message.ts | 11 - ...go-cd-application-modification-response.ts | 13 - ...cd-application-refresh-response-message.ts | 11 - .../argo-cd-application-refresh-response.ts | 13 - .../argo-cd-application-status-source.ts | 23 - ...pplication-status-sync-resources-status.ts | 27 - .../src/schema/argo-cd-application-status.ts | 46 - ...cd-repository-creation-response-message.ts | 11 - .../argo-cd-repository-creation-response.ts | 13 - ...cd-repository-deletion-response-message.ts | 11 - .../argo-cd-repository-deletion-response.ts | 13 - ...epository-modification-response-message.ts | 11 - ...rgo-cd-repository-modification-response.ts | 13 - .../src/schema/array-of-column-names.ts | 10 - .../schema/artifact-argument-binding-list.ts | 11 - packages/ai-core/src/schema/artifact-array.ts | 10 - .../ai-core/src/schema/artifact-base-data.ts | 21 - .../artifact-creation-response-message.ts | 10 - .../src/schema/artifact-creation-response.ts | 15 - .../src/schema/artifact-detail-data.ts | 18 - packages/ai-core/src/schema/artifact-id.ts | 10 - packages/ai-core/src/schema/artifact-name.ts | 10 - .../ai-core/src/schema/artifact-post-data.ts | 13 - packages/ai-core/src/schema/artifact.ts | 18 - .../bcknd-all-argo-cd-application-data.ts | 16 + ...=> bcknd-argo-cd-application-base-data.ts} | 4 +- ...-application-creation-response-message.ts} | 5 +- ...d-argo-cd-application-creation-response.ts | 14 + ...knd-argo-cd-application-data-repo-name.ts} | 4 +- .../schema/bcknd-argo-cd-application-data.ts | 30 + ...d-application-deletion-response-message.ts | 11 + ...d-argo-cd-application-deletion-response.ts | 14 + ...plication-modification-response-message.ts | 11 + ...go-cd-application-modification-response.ts | 14 + ...cd-application-refresh-response-message.ts | 11 + ...nd-argo-cd-application-refresh-response.ts | 14 + .../bcknd-argo-cd-application-status.ts | 95 + ...cd-repository-creation-response-message.ts | 11 + ...nd-argo-cd-repository-creation-response.ts | 14 + ...> bcknd-argo-cd-repository-credentials.ts} | 4 +- .../bcknd-argo-cd-repository-data-response.ts | 16 + ...ta.ts => bcknd-argo-cd-repository-data.ts} | 4 +- ...cd-repository-deletion-response-message.ts | 11 + ...nd-argo-cd-repository-deletion-response.ts | 14 + ...ts => bcknd-argo-cd-repository-details.ts} | 4 +- ...epository-modification-response-message.ts | 11 + ...rgo-cd-repository-modification-response.ts | 14 + .../bcknd-common-resource-quota-response.ts | 21 + ....ts => bcknd-creation-response-message.ts} | 5 +- ...nse-quota.ts => bcknd-deployment-quota.ts} | 7 +- .../src/schema/bcknd-deployment-usage.ts | 13 + ...-response-2.ts => bcknd-error-response.ts} | 8 +- packages/ai-core/src/schema/bcknd-error.ts | 32 + packages/ai-core/src/schema/bcknd-event.ts | 26 + ...cknd-executable-resource-quota-response.ts | 27 + .../src/schema/bcknd-extended-service.ts | 36 + .../bcknd-generic-secret-data-response.ts | 14 + ...t-data.ts => bcknd-generic-secret-data.ts} | 2 +- ...ils.ts => bcknd-generic-secret-details.ts} | 4 +- .../schema/bcknd-generic-secret-patch-body.ts | 12 + ...y.ts => bcknd-generic-secret-post-body.ts} | 8 +- packages/ai-core/src/schema/bcknd-id.ts | 12 + ...cknd-internal-resource-group-annotation.ts | 21 + ...knd-internal-resource-group-annotations.ts | 11 + .../bcknd-internal-resource-group-label.ts | 21 + .../bcknd-internal-resource-group-labels.ts | 11 + .../schema/bcknd-internal-resource-group.ts | 39 + ...ed-scenario.ts => bcknd-key-value-pair.ts} | 7 +- ...=> bcknd-list-generic-secrets-response.ts} | 10 +- .../schema/{message.ts => bcknd-message.ts} | 2 +- .../src/schema/{name.ts => bcknd-name.ts} | 2 +- .../src/schema/bcknd-nested-usage-item.ts | 13 + ...s => bcknd-resource-get-resource-plans.ts} | 4 +- .../src/schema/bcknd-resource-get-response.ts | 12 + ...p-base.ts => bcknd-resource-group-base.ts} | 4 +- ...esource-group-deletion-response-message.ts | 11 + .../bcknd-resource-group-deletion-response.ts | 14 + ...label.ts => bcknd-resource-group-label.ts} | 4 +- .../src/schema/bcknd-resource-group-labels.ts | 10 + .../src/schema/bcknd-resource-group-list.ts | 16 + .../bcknd-resource-group-patch-request.ts | 12 + .../src/schema/bcknd-resource-group.ts | 37 + ... => bcknd-resource-groups-post-request.ts} | 8 +- .../src/schema/bcknd-resource-patch-body.ts | 12 + ...nodes.ts => bcknd-resource-patch-nodes.ts} | 4 +- .../bcknd-resource-patch-resource-plans.ts | 10 + ...se.ts => bcknd-resource-patch-response.ts} | 4 +- ...cret.ts => bcknd-service-broker-secret.ts} | 4 +- .../src/schema/bcknd-service-capabilities.ts | 39 + .../ai-core/src/schema/bcknd-service-list.ts | 16 + ...ce-service-catalog-item-extend-catalog.ts} | 8 +- ...service-catalog-item-extend-credentials.ts | 16 + .../bcknd-service-service-catalog-item.ts | 14 + .../schema/bcknd-service-service-catalog.ts | 10 + ...knd-service-service-plan-item-metadata.ts} | 4 +- ....ts => bcknd-service-service-plan-item.ts} | 8 +- .../{service-base.ts => bcknd-service.ts} | 12 +- packages/ai-core/src/schema/bcknd-tenant.ts | 27 + packages/ai-core/src/schema/bcknd-url.ts | 11 + .../schema/bcknd-usage-resource-plan-item.ts | 14 + ...=> bcknddocker-registry-name-component.ts} | 2 +- ...gistry-secret-creation-response-message.ts | 11 + ...ocker-registry-secret-creation-response.ts | 13 + ...gistry-secret-deletion-response-message.ts | 11 + ...ocker-registry-secret-deletion-response.ts | 14 + ...ry-secret-modification-response-message.ts | 11 + ...r-registry-secret-modification-response.ts | 14 + ...ddocker-registry-secret-status-response.ts | 16 + ... => bcknddocker-registry-secret-status.ts} | 2 +- ...try-secret-with-sensitive-data-request.ts} | 9 +- ...-store-secret-creation-response-message.ts | 11 + ...ndobject-store-secret-creation-response.ts | 13 + ...-store-secret-deletion-response-message.ts | 11 + ...ndobject-store-secret-deletion-response.ts | 14 + ...re-secret-modification-response-message.ts | 11 + ...ject-store-secret-modification-response.ts | 14 + ...ckndobject-store-secret-status-response.ts | 16 + .../schema/bckndobject-store-secret-status.ts | 96 + ...h-sensitive-data-request-for-post-call.ts} | 2 +- ...ore-secret-with-sensitive-data-request.ts} | 2 +- packages/ai-core/src/schema/body-1.ts | 13 - packages/ai-core/src/schema/body.ts | 11 - packages/ai-core/src/schema/capabilities.ts | 22 - .../schema/common-resource-quota-response.ts | 14 - .../src/schema/configuration-base-data.ts | 20 - ...configuration-creation-response-message.ts | 11 - .../schema/configuration-creation-response.ts | 13 - .../src/schema/configuration-detail-data.ts | 12 - .../ai-core/src/schema/configuration-id.ts | 10 - .../ai-core/src/schema/configuration-list.ts | 10 - .../ai-core/src/schema/configuration-name.ts | 10 - packages/ai-core/src/schema/configuration.ts | 16 - .../ai-core/src/schema/creation-response-2.ts | 14 - .../src/schema/creation-response-message.ts | 10 - .../ai-core/src/schema/creation-response.ts | 14 - .../src/schema/custom-info-object-list.ts | 10 - .../src/schema/{error.ts => d-set-error.ts} | 17 +- ...nse.ts => d-set-file-creation-response.ts} | 6 +- .../src/schema/{url.ts => d-set-url.ts} | 4 +- .../deployment-creation-response-message.ts | 10 - .../schema/deployment-creation-response.ts | 19 - .../deployment-deletion-response-message.ts | 10 - .../schema/deployment-deletion-response.ts | 13 - .../src/schema/deployment-detail-data.ts | 37 - .../schema/deployment-detail-properties.ts | 12 - packages/ai-core/src/schema/deployment-id.ts | 10 - .../ai-core/src/schema/deployment-list.ts | 10 - .../deployment-modification-response-list.ts | 13 - ...eployment-modification-response-message.ts | 11 - .../deployment-modification-response.ts | 13 - .../deployment-response-with-details.ts | 12 - .../src/schema/deployment-status-message.ts | 10 - .../ai-core/src/schema/deployment-status.ts | 10 - .../src/schema/deployment-target-status.ts | 10 - packages/ai-core/src/schema/deployment.ts | 16 - ...gistry-secret-creation-response-message.ts | 11 - ...ocker-registry-secret-creation-response.ts | 13 - ...gistry-secret-deletion-response-message.ts | 11 - ...ocker-registry-secret-deletion-response.ts | 13 - ...ry-secret-modification-response-message.ts | 11 - ...r-registry-secret-modification-response.ts | 13 - .../docker-registry-secret-status-response.ts | 10 - packages/ai-core/src/schema/error-response.ts | 12 - .../src/schema/executable-detail-data.ts | 25 - packages/ai-core/src/schema/executable-id.ts | 10 - .../ai-core/src/schema/executable-list.ts | 10 - ...xecutable-resource-quota-response-quota.ts | 21 - ...xecutable-resource-quota-response-usage.ts | 13 - .../executable-resource-quota-response.ts | 14 - packages/ai-core/src/schema/executable.ts | 17 - .../execution-creation-response-message.ts | 10 - .../src/schema/execution-creation-response.ts | 15 - packages/ai-core/src/schema/execution-data.ts | 31 - .../execution-deletion-response-message.ts | 10 - .../src/schema/execution-deletion-response.ts | 13 - packages/ai-core/src/schema/execution-id.ts | 10 - packages/ai-core/src/schema/execution-list.ts | 10 - .../execution-modification-response-list.ts | 13 - ...execution-modification-response-message.ts | 11 - .../schema/execution-modification-response.ts | 13 - .../schema/execution-response-with-details.ts | 13 - .../execution-schedule-creation-data.ts | 21 - ...tion-schedule-creation-response-message.ts | 11 - .../execution-schedule-creation-response.ts | 13 - .../src/schema/execution-schedule-data.ts | 15 - ...tion-schedule-deletion-response-message.ts | 11 - .../execution-schedule-deletion-response.ts | 13 - .../src/schema/execution-schedule-list.ts | 10 - ...execution-schedule-modification-request.ts | 15 - ...-schedule-modification-response-message.ts | 11 - ...xecution-schedule-modification-response.ts | 13 - .../ai-core/src/schema/execution-schedule.ts | 14 - .../src/schema/execution-status-message.ts | 10 - .../ai-core/src/schema/execution-status.ts | 10 - packages/ai-core/src/schema/execution.ts | 16 - .../ai-core/src/schema/extended-service.ts | 10 - packages/ai-core/src/schema/generic-name.ts | 10 - .../schema/generic-secret-data-response.ts | 14 - .../src/schema/generic-secret-patch-body.ts | 12 - .../src/schema/get-metric-resource-list.ts | 10 - .../ai-core/src/schema/get-metric-resource.ts | 13 - packages/ai-core/src/schema/get-metric.ts | 13 - packages/ai-core/src/schema/index.ts | 597 +- .../ai-core/src/schema/inline-response-400.ts | 12 - .../src/schema/inline-response-4001.ts | 12 - .../src/schema/inline-response-4002.ts | 12 - .../src/schema/kpi-aggregation-attribute.ts | 10 + packages/ai-core/src/schema/kpi-api-error.ts | 31 + .../src/schema/kpi-array-of-column-names.ts | 10 + .../{column-name.ts => kpi-column-name.ts} | 2 +- ...nt-aggregate.ts => kpi-count-aggregate.ts} | 4 +- .../ai-core/src/schema/kpi-result-row-item.ts | 11 + .../ai-core/src/schema/kpi-result-row-list.ts | 10 + packages/ai-core/src/schema/kpi-result-row.ts | 10 + packages/ai-core/src/schema/kpi-result-set.ts | 14 + packages/ai-core/src/schema/label.ts | 14 - packages/ai-core/src/schema/labeled.ts | 12 - .../ai-core/src/schema/log-common-data.ts | 12 - .../ai-core/src/schema/log-common-result.ts | 10 - packages/ai-core/src/schema/meta-ai-api.ts | 83 + packages/ai-core/src/schema/meta-api-error.ts | 31 + .../ai-core/src/schema/meta-api-version.ts | 26 + .../ai-core/src/schema/meta-capabilities.ts | 22 + .../{extensions.ts => meta-extensions.ts} | 20 +- .../schema/{version-2.ts => meta-version.ts} | 4 +- .../ai-core/src/schema/metric-resource.ts | 18 - packages/ai-core/src/schema/name-1.ts | 10 - ...-store-secret-creation-response-message.ts | 11 - .../object-store-secret-creation-response.ts | 13 - ...-store-secret-deletion-response-message.ts | 11 - .../object-store-secret-deletion-response.ts | 13 - ...re-secret-modification-response-message.ts | 11 - ...ject-store-secret-modification-response.ts | 13 - .../object-store-secret-status-metadata.ts | 81 - .../object-store-secret-status-response.ts | 10 - .../src/schema/object-store-secret-status.ts | 17 - .../schema/parameter-argument-binding-list.ts | 11 - .../src/schema/resource-get-response.ts | 12 - ...esource-group-deletion-response-message.ts | 10 - .../resource-group-deletion-response.ts | 13 - .../ai-core/src/schema/resource-group-list.ts | 10 - .../schema/resource-group-patch-request.ts | 12 - packages/ai-core/src/schema/resource-group.ts | 26 - .../ai-core/src/schema/resource-patch-body.ts | 12 - .../schema/resource-patch-resource-plans.ts | 10 - .../ai-core/src/schema/result-row-item.ts | 11 - .../ai-core/src/schema/result-row-list.ts | 10 - packages/ai-core/src/schema/result-row.ts | 10 - packages/ai-core/src/schema/result-set.ts | 14 - .../schema/{message-1.ts => rt-amessage.ts} | 2 +- .../{timestamp-1.ts => rt-atimestamp.ts} | 4 +- .../ai-core/src/schema/rta-artifact-array.ts | 10 + .../src/schema/rta-artifact-label-list.ts | 10 + .../ai-core/src/schema/rta-artifact-label.ts | 21 + .../ai-core/src/schema/rta-artifact-name.ts | 11 + .../src/schema/rta-artifact-signature.ts | 11 + .../ai-core/src/schema/rta-artifact-url.ts | 16 + packages/ai-core/src/schema/rta-artifact.ts | 32 + ...reation-data.ts => rta-backend-details.ts} | 9 +- .../schema/rta-creation-response-message.ts | 11 + ...loyment-cascade-update-response-message.ts | 11 + ...ta-deployment-creation-response-message.ts | 11 + ...a-deployment-deletion-response-message.ts} | 5 +- .../src/schema/rta-deployment-details.ts | 13 + .../ai-core/src/schema/rta-deployment-id.ts | 12 + ...eployment-modification-response-message.ts | 11 + .../schema/rta-deployment-status-details.ts | 10 + .../ai-core/src/schema/rta-deployment-url.ts | 11 + packages/ai-core/src/schema/rta-deployment.ts | 53 + ...esponse-usage.ts => rta-error-response.ts} | 8 +- .../src/schema/{error-2.ts => rta-error.ts} | 4 +- ....ts => rta-executable-argument-binding.ts} | 6 +- .../src/schema/rta-executable-artifact.ts | 25 + .../ai-core/src/schema/rta-executable-id.ts | 12 + .../rta-executable-input-artifact-list.ts | 10 + .../rta-executable-output-artifact-list.ts | 10 + .../schema/rta-executable-parameter-list.ts | 10 + .../src/schema/rta-executable-parameter.ts | 28 + packages/ai-core/src/schema/rta-executable.ts | 44 + ...rta-execution-creation-response-message.ts | 11 + ...rta-execution-deletion-response-message.ts | 11 + .../ai-core/src/schema/rta-execution-id.ts | 12 + ...execution-modification-response-message.ts | 11 + .../schema/rta-execution-status-details.ts | 10 + packages/ai-core/src/schema/rta-execution.ts | 61 + packages/ai-core/src/schema/rta-id.ts | 12 + .../rta-input-artifact-argument-binding.ts | 16 + ...enario-label-list.ts => rta-label-list.ts} | 4 +- packages/ai-core/src/schema/rta-label.ts | 20 + .../schema/rta-latest-running-target-id.ts | 12 + ...tion-request.ts => rta-log-common-data.ts} | 8 +- ...response.ts => rta-log-common-response.ts} | 6 +- ...-item.ts => rta-log-common-result-item.ts} | 10 +- .../src/schema/rta-log-common-result.ts | 10 + .../ai-core/src/schema/rta-model-base-data.ts | 22 + .../src/schema/rta-model-version-list.ts | 10 + .../ai-core/src/schema/rta-model-version.ts | 19 + .../rta-output-artifact-argument-binding.ts | 14 + .../ai-core/src/schema/rta-scenario-id.ts | 12 + packages/ai-core/src/schema/rta-scenario.ts | 34 + packages/ai-core/src/schema/rta-target-id.ts | 12 + packages/ai-core/src/schema/rta-ttl.ts | 12 + .../ai-core/src/schema/scenario-base-data.ts | 22 - .../src/schema/scenario-detail-data.ts | 12 - packages/ai-core/src/schema/scenario-id.ts | 10 - packages/ai-core/src/schema/scenario-label.ts | 14 - packages/ai-core/src/schema/scenario-list.ts | 10 - packages/ai-core/src/schema/scenario.ts | 11 - packages/ai-core/src/schema/schedule.ts | 14 - .../src/schema/service-capabilities-basic.ts | 27 - .../src/schema/service-capabilities-logs.ts | 13 - .../src/schema/service-capabilities.ts | 14 - .../ai-core/src/schema/service-details.ts | 16 - packages/ai-core/src/schema/service-list.ts | 10 - ...-extend-credentials-shared-service-urls.ts | 12 - ...-catalog-item-extend-credentials-shared.ts | 12 - ...service-catalog-item-extend-credentials.ts | 12 - .../schema/service-service-catalog-item.ts | 14 - .../src/schema/service-service-catalog.ts | 10 - packages/ai-core/src/schema/service.ts | 10 - packages/ai-core/src/schema/spec.ts | 12 - .../src/schema/status-transition-time.ts | 26 - .../{api-error-2.ts => trck-api-error.ts} | 8 +- ...ata.ts => trck-custom-info-object-data.ts} | 2 +- .../schema/trck-custom-info-object-list.ts | 10 + ...o-object.ts => trck-custom-info-object.ts} | 10 +- ...nse.ts => trck-delete-metrics-response.ts} | 8 +- ...onse.ts => trck-details-error-response.ts} | 4 +- ...execution-id-2.ts => trck-execution-id.ts} | 4 +- ...generic-name-2.ts => trck-generic-name.ts} | 2 +- ...metric-list.ts => trck-get-metric-list.ts} | 4 +- .../schema/trck-get-metric-resource-list.ts | 16 + .../src/schema/trck-get-metric-resource.ts | 18 + .../ai-core/src/schema/trck-get-metric.ts | 23 + .../{label-list-2.ts => trck-label-list.ts} | 4 +- .../{label-name.ts => trck-label-name.ts} | 2 +- .../src/schema/{label-2.ts => trck-label.ts} | 6 +- ...get-metric-list.ts => trck-metric-list.ts} | 4 +- .../{metric-name.ts => trck-metric-name.ts} | 2 +- .../src/schema/trck-metric-resource.ts | 18 + .../{metric-value.ts => trck-metric-value.ts} | 2 +- .../src/schema/{metric.ts => trck-metric.ts} | 18 +- ...ution-id.ts => trck-mlapi-execution-id.ts} | 2 +- .../{string-array.ts => trck-string-array.ts} | 4 +- .../schema/{tag-list.ts => trck-tag-list.ts} | 4 +- .../src/schema/{tag.ts => trck-tag.ts} | 6 +- .../{timestamp.ts => trck-timestamp.ts} | 2 +- ...trckmetric-selector-permissible-values.ts} | 2 +- .../ai-core/src/schema/version-base-data.ts | 12 - .../ai-core/src/schema/version-detail-data.ts | 14 - packages/ai-core/src/schema/version-list.ts | 10 - packages/ai-core/src/schema/version.ts | 16 - packages/ai-core/src/secret-api.ts | 20 +- packages/ai-core/src/service-api.ts | 6 +- packages/gen-ai-hub/package.json | 3 +- scripts/update-imports.ts | 68 + 511 files changed, 10278 insertions(+), 8816 deletions(-) delete mode 100644 packages/ai-core/src/ai-core.test.ts create mode 100644 packages/ai-core/src/model-api.ts delete mode 100644 packages/ai-core/src/schema/ai-api-capabilities-bulk-updates.ts delete mode 100644 packages/ai-core/src/schema/ai-api-capabilities-logs.ts delete mode 100644 packages/ai-core/src/schema/ai-api-capabilities.ts create mode 100644 packages/ai-core/src/schema/ai-api-error-with-id.ts rename packages/ai-core/src/schema/{api-error.ts => ai-api-error.ts} (88%) delete mode 100644 packages/ai-core/src/schema/ai-api-limits-deployments.ts delete mode 100644 packages/ai-core/src/schema/ai-api-limits-executions.ts delete mode 100644 packages/ai-core/src/schema/ai-api-limits-time-to-live-deployments.ts delete mode 100644 packages/ai-core/src/schema/ai-api-limits.ts delete mode 100644 packages/ai-core/src/schema/ai-api.ts create mode 100644 packages/ai-core/src/schema/ai-artifact-argument-binding-list.ts create mode 100644 packages/ai-core/src/schema/ai-artifact-argument-binding.ts create mode 100644 packages/ai-core/src/schema/ai-artifact-array.ts create mode 100644 packages/ai-core/src/schema/ai-artifact-creation-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-artifact-creation-response.ts rename packages/ai-core/src/schema/{artifact-description.ts => ai-artifact-description.ts} (83%) create mode 100644 packages/ai-core/src/schema/ai-artifact-id.ts create mode 100644 packages/ai-core/src/schema/ai-artifact-list.ts rename packages/ai-core/src/schema/{generic-natural-language-term.ts => ai-artifact-name.ts} (68%) create mode 100644 packages/ai-core/src/schema/ai-artifact-post-data.ts rename packages/ai-core/src/schema/{artifact-url.ts => ai-artifact-url.ts} (89%) create mode 100644 packages/ai-core/src/schema/ai-artifact.ts rename packages/ai-core/src/schema/{backend-details.ts => ai-backend-details.ts} (80%) create mode 100644 packages/ai-core/src/schema/ai-configuration-base-data.ts create mode 100644 packages/ai-core/src/schema/ai-configuration-creation-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-configuration-creation-response.ts create mode 100644 packages/ai-core/src/schema/ai-configuration-id.ts create mode 100644 packages/ai-core/src/schema/ai-configuration-list.ts create mode 100644 packages/ai-core/src/schema/ai-configuration-name.ts create mode 100644 packages/ai-core/src/schema/ai-configuration.ts create mode 100644 packages/ai-core/src/schema/ai-creation-response-message.ts rename packages/ai-core/src/schema/{cron.ts => ai-cron.ts} (89%) rename packages/ai-core/src/schema/{deployment-bulk-modification-request.ts => ai-deployment-bulk-modification-request.ts} (56%) rename packages/ai-core/src/schema/{deployment-bulk-modification-response.ts => ai-deployment-bulk-modification-response.ts} (53%) create mode 100644 packages/ai-core/src/schema/ai-deployment-creation-request.ts create mode 100644 packages/ai-core/src/schema/ai-deployment-creation-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-deployment-creation-response.ts create mode 100644 packages/ai-core/src/schema/ai-deployment-deletion-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-deployment-deletion-response.ts rename packages/ai-core/src/schema/{deployment-details.ts => ai-deployment-details.ts} (62%) create mode 100644 packages/ai-core/src/schema/ai-deployment-id.ts create mode 100644 packages/ai-core/src/schema/ai-deployment-list.ts rename packages/ai-core/src/schema/{execution-modification-request-list.ts => ai-deployment-modification-request-list.ts} (58%) rename packages/ai-core/src/schema/{deployment-modification-request-with-identifier.ts => ai-deployment-modification-request-with-identifier.ts} (65%) rename packages/ai-core/src/schema/{deployment-modification-request.ts => ai-deployment-modification-request.ts} (52%) create mode 100644 packages/ai-core/src/schema/ai-deployment-modification-response-list.ts create mode 100644 packages/ai-core/src/schema/ai-deployment-modification-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-deployment-modification-response.ts create mode 100644 packages/ai-core/src/schema/ai-deployment-response-with-details.ts rename packages/ai-core/src/schema/{deployment-status-details.ts => ai-deployment-status-details.ts} (77%) rename packages/ai-core/src/schema/{artifact-list.ts => ai-deployment-status-message.ts} (63%) create mode 100644 packages/ai-core/src/schema/ai-deployment-status.ts create mode 100644 packages/ai-core/src/schema/ai-deployment-target-status.ts rename packages/ai-core/src/schema/{deployment-time-to-live.ts => ai-deployment-time-to-live.ts} (89%) rename packages/ai-core/src/schema/{deployment-url.ts => ai-deployment-url.ts} (85%) create mode 100644 packages/ai-core/src/schema/ai-deployment.ts rename packages/ai-core/src/schema/{enactment-creation-request.ts => ai-enactment-creation-request.ts} (63%) rename packages/ai-core/src/schema/{executable-artifact-list.ts => ai-executable-artifact-list.ts} (59%) rename packages/ai-core/src/schema/{executable-artifact.ts => ai-executable-artifact.ts} (71%) rename packages/ai-core/src/schema/{execution-schedule-id.ts => ai-executable-id.ts} (65%) create mode 100644 packages/ai-core/src/schema/ai-executable-list.ts rename packages/ai-core/src/schema/{executable-parameter-list.ts => ai-executable-parameter-list.ts} (58%) rename packages/ai-core/src/schema/{executable-parameter.ts => ai-executable-parameter.ts} (80%) create mode 100644 packages/ai-core/src/schema/ai-executable.ts rename packages/ai-core/src/schema/{execution-bulk-modification-request.ts => ai-execution-bulk-modification-request.ts} (55%) rename packages/ai-core/src/schema/{execution-bulk-modification-response.ts => ai-execution-bulk-modification-response.ts} (55%) rename packages/ai-core/src/schema/{aggregation-attribute.ts => ai-execution-creation-response-message.ts} (62%) create mode 100644 packages/ai-core/src/schema/ai-execution-creation-response.ts create mode 100644 packages/ai-core/src/schema/ai-execution-deletion-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-execution-deletion-response.ts create mode 100644 packages/ai-core/src/schema/ai-execution-id.ts create mode 100644 packages/ai-core/src/schema/ai-execution-list.ts rename packages/ai-core/src/schema/{deployment-modification-request-list.ts => ai-execution-modification-request-list.ts} (59%) rename packages/ai-core/src/schema/{execution-modification-request-with-identifier.ts => ai-execution-modification-request-with-identifier.ts} (69%) rename packages/ai-core/src/schema/{execution-modification-request.ts => ai-execution-modification-request.ts} (83%) create mode 100644 packages/ai-core/src/schema/ai-execution-modification-response-list.ts create mode 100644 packages/ai-core/src/schema/ai-execution-modification-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-execution-modification-response.ts create mode 100644 packages/ai-core/src/schema/ai-execution-response-with-details.ts rename packages/ai-core/src/schema/{schedule-start-end.ts => ai-execution-schedule-creation-data.ts} (63%) create mode 100644 packages/ai-core/src/schema/ai-execution-schedule-creation-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-execution-schedule-creation-response.ts create mode 100644 packages/ai-core/src/schema/ai-execution-schedule-deletion-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-execution-schedule-deletion-response.ts create mode 100644 packages/ai-core/src/schema/ai-execution-schedule-id.ts create mode 100644 packages/ai-core/src/schema/ai-execution-schedule-list.ts create mode 100644 packages/ai-core/src/schema/ai-execution-schedule-modification-request.ts create mode 100644 packages/ai-core/src/schema/ai-execution-schedule-modification-response-message.ts create mode 100644 packages/ai-core/src/schema/ai-execution-schedule-modification-response.ts rename packages/ai-core/src/schema/{execution-schedule-status.ts => ai-execution-schedule-status.ts} (77%) create mode 100644 packages/ai-core/src/schema/ai-execution-schedule.ts rename packages/ai-core/src/schema/{execution-status-details.ts => ai-execution-status-details.ts} (78%) create mode 100644 packages/ai-core/src/schema/ai-execution-status-message.ts rename packages/ai-core/src/schema/{status.ts => ai-execution-status.ts} (80%) create mode 100644 packages/ai-core/src/schema/ai-execution.ts rename packages/ai-core/src/schema/{id.ts => ai-id.ts} (90%) rename packages/ai-core/src/schema/{label-key.ts => ai-label-key.ts} (78%) rename packages/ai-core/src/schema/{label-list.ts => ai-label-list.ts} (72%) rename packages/ai-core/src/schema/{label-value.ts => ai-label-value.ts} (69%) create mode 100644 packages/ai-core/src/schema/ai-label.ts rename packages/ai-core/src/schema/{error-details.ts => ai-log-common-data.ts} (52%) rename packages/ai-core/src/schema/{modification-data.ts => ai-log-common-result-item.ts} (53%) create mode 100644 packages/ai-core/src/schema/ai-log-common-result.ts create mode 100644 packages/ai-core/src/schema/ai-model-base-data.ts create mode 100644 packages/ai-core/src/schema/ai-model-list.ts create mode 100644 packages/ai-core/src/schema/ai-model-version-list.ts rename packages/ai-core/src/schema/{executable-base-data.ts => ai-model-version.ts} (50%) create mode 100644 packages/ai-core/src/schema/ai-parameter-argument-binding-list.ts rename packages/ai-core/src/schema/{parameter-argument-binding.ts => ai-parameter-argument-binding.ts} (89%) rename packages/ai-core/src/schema/{resources-details.ts => ai-resources-details.ts} (72%) rename packages/ai-core/src/schema/{scaling-details.ts => ai-scaling-details.ts} (75%) create mode 100644 packages/ai-core/src/schema/ai-scenario-id.ts rename packages/ai-core/src/schema/{scenario-label-key.ts => ai-scenario-label-key.ts} (76%) rename packages/ai-core/src/schema/{resource-group-labels.ts => ai-scenario-label-list.ts} (62%) create mode 100644 packages/ai-core/src/schema/ai-scenario-label.ts rename packages/ai-core/src/schema/{resource-count.ts => ai-scenario-list.ts} (59%) create mode 100644 packages/ai-core/src/schema/ai-scenario.ts create mode 100644 packages/ai-core/src/schema/ai-url.ts rename packages/ai-core/src/schema/{version-description.ts => ai-version-description.ts} (85%) rename packages/ai-core/src/schema/{version-id.ts => ai-version-id.ts} (84%) rename packages/ai-core/src/schema/{resource-list.ts => ai-version-list.ts} (64%) create mode 100644 packages/ai-core/src/schema/ai-version.ts delete mode 100644 packages/ai-core/src/schema/api-error-with-id.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-creation-response.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-deletion-response-message.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-deletion-response.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-modification-response-message.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-modification-response.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-refresh-response-message.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-refresh-response.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-status-source.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-status-sync-resources-status.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-application-status.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-repository-creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-repository-creation-response.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-repository-deletion-response-message.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-repository-deletion-response.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-repository-modification-response-message.ts delete mode 100644 packages/ai-core/src/schema/argo-cd-repository-modification-response.ts delete mode 100644 packages/ai-core/src/schema/array-of-column-names.ts delete mode 100644 packages/ai-core/src/schema/artifact-argument-binding-list.ts delete mode 100644 packages/ai-core/src/schema/artifact-array.ts delete mode 100644 packages/ai-core/src/schema/artifact-base-data.ts delete mode 100644 packages/ai-core/src/schema/artifact-creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/artifact-creation-response.ts delete mode 100644 packages/ai-core/src/schema/artifact-detail-data.ts delete mode 100644 packages/ai-core/src/schema/artifact-id.ts delete mode 100644 packages/ai-core/src/schema/artifact-name.ts delete mode 100644 packages/ai-core/src/schema/artifact-post-data.ts delete mode 100644 packages/ai-core/src/schema/artifact.ts create mode 100644 packages/ai-core/src/schema/bcknd-all-argo-cd-application-data.ts rename packages/ai-core/src/schema/{argo-cd-application-base-data.ts => bcknd-argo-cd-application-base-data.ts} (78%) rename packages/ai-core/src/schema/{argo-cd-repository-data-response.ts => bcknd-argo-cd-application-creation-response-message.ts} (57%) create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-application-creation-response.ts rename packages/ai-core/src/schema/{argo-cd-application-data-repo-name.ts => bcknd-argo-cd-application-data-repo-name.ts} (82%) create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-application-data.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-application-deletion-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-application-deletion-response.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-application-modification-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-application-modification-response.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-application-refresh-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-application-refresh-response.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-application-status.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-repository-creation-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-repository-creation-response.ts rename packages/ai-core/src/schema/{argo-cd-repository-credentials.ts => bcknd-argo-cd-repository-credentials.ts} (75%) create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-repository-data-response.ts rename packages/ai-core/src/schema/{argo-cd-repository-data.ts => bcknd-argo-cd-repository-data.ts} (84%) create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-repository-deletion-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-repository-deletion-response.ts rename packages/ai-core/src/schema/{argo-cd-repository-details.ts => bcknd-argo-cd-repository-details.ts} (81%) create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-repository-modification-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknd-argo-cd-repository-modification-response.ts create mode 100644 packages/ai-core/src/schema/bcknd-common-resource-quota-response.ts rename packages/ai-core/src/schema/{all-argo-cd-application-data.ts => bcknd-creation-response-message.ts} (67%) rename packages/ai-core/src/schema/{common-resource-quota-response-quota.ts => bcknd-deployment-quota.ts} (68%) create mode 100644 packages/ai-core/src/schema/bcknd-deployment-usage.ts rename packages/ai-core/src/schema/{error-response-2.ts => bcknd-error-response.ts} (54%) create mode 100644 packages/ai-core/src/schema/bcknd-error.ts create mode 100644 packages/ai-core/src/schema/bcknd-event.ts create mode 100644 packages/ai-core/src/schema/bcknd-executable-resource-quota-response.ts create mode 100644 packages/ai-core/src/schema/bcknd-extended-service.ts create mode 100644 packages/ai-core/src/schema/bcknd-generic-secret-data-response.ts rename packages/ai-core/src/schema/{generic-secret-data.ts => bcknd-generic-secret-data.ts} (76%) rename packages/ai-core/src/schema/{generic-secret-details.ts => bcknd-generic-secret-details.ts} (75%) create mode 100644 packages/ai-core/src/schema/bcknd-generic-secret-patch-body.ts rename packages/ai-core/src/schema/{generic-secret-post-body.ts => bcknd-generic-secret-post-body.ts} (60%) create mode 100644 packages/ai-core/src/schema/bcknd-id.ts create mode 100644 packages/ai-core/src/schema/bcknd-internal-resource-group-annotation.ts create mode 100644 packages/ai-core/src/schema/bcknd-internal-resource-group-annotations.ts create mode 100644 packages/ai-core/src/schema/bcknd-internal-resource-group-label.ts create mode 100644 packages/ai-core/src/schema/bcknd-internal-resource-group-labels.ts create mode 100644 packages/ai-core/src/schema/bcknd-internal-resource-group.ts rename packages/ai-core/src/schema/{expanded-scenario.ts => bcknd-key-value-pair.ts} (62%) rename packages/ai-core/src/schema/{list-generic-secrets-response.ts => bcknd-list-generic-secrets-response.ts} (50%) rename packages/ai-core/src/schema/{message.ts => bcknd-message.ts} (83%) rename packages/ai-core/src/schema/{name.ts => bcknd-name.ts} (84%) create mode 100644 packages/ai-core/src/schema/bcknd-nested-usage-item.ts rename packages/ai-core/src/schema/{resource-get-resource-plans.ts => bcknd-resource-get-resource-plans.ts} (69%) create mode 100644 packages/ai-core/src/schema/bcknd-resource-get-response.ts rename packages/ai-core/src/schema/{resource-group-base.ts => bcknd-resource-group-base.ts} (78%) create mode 100644 packages/ai-core/src/schema/bcknd-resource-group-deletion-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknd-resource-group-deletion-response.ts rename packages/ai-core/src/schema/{resource-group-label.ts => bcknd-resource-group-label.ts} (80%) create mode 100644 packages/ai-core/src/schema/bcknd-resource-group-labels.ts create mode 100644 packages/ai-core/src/schema/bcknd-resource-group-list.ts create mode 100644 packages/ai-core/src/schema/bcknd-resource-group-patch-request.ts create mode 100644 packages/ai-core/src/schema/bcknd-resource-group.ts rename packages/ai-core/src/schema/{resource-groups-post-request.ts => bcknd-resource-groups-post-request.ts} (61%) create mode 100644 packages/ai-core/src/schema/bcknd-resource-patch-body.ts rename packages/ai-core/src/schema/{resource-patch-nodes.ts => bcknd-resource-patch-nodes.ts} (70%) create mode 100644 packages/ai-core/src/schema/bcknd-resource-patch-resource-plans.ts rename packages/ai-core/src/schema/{resource-patch-response.ts => bcknd-resource-patch-response.ts} (67%) rename packages/ai-core/src/schema/{service-broker-secret.ts => bcknd-service-broker-secret.ts} (80%) create mode 100644 packages/ai-core/src/schema/bcknd-service-capabilities.ts create mode 100644 packages/ai-core/src/schema/bcknd-service-list.ts rename packages/ai-core/src/schema/{service-service-catalog-item-extend-catalog.ts => bcknd-service-service-catalog-item-extend-catalog.ts} (61%) create mode 100644 packages/ai-core/src/schema/bcknd-service-service-catalog-item-extend-credentials.ts create mode 100644 packages/ai-core/src/schema/bcknd-service-service-catalog-item.ts create mode 100644 packages/ai-core/src/schema/bcknd-service-service-catalog.ts rename packages/ai-core/src/schema/{service-service-plan-item-metadata.ts => bcknd-service-service-plan-item-metadata.ts} (72%) rename packages/ai-core/src/schema/{service-service-plan-item.ts => bcknd-service-service-plan-item.ts} (62%) rename packages/ai-core/src/schema/{service-base.ts => bcknd-service.ts} (58%) create mode 100644 packages/ai-core/src/schema/bcknd-tenant.ts create mode 100644 packages/ai-core/src/schema/bcknd-url.ts create mode 100644 packages/ai-core/src/schema/bcknd-usage-resource-plan-item.ts rename packages/ai-core/src/schema/{docker-registry-name-component.ts => bcknddocker-registry-name-component.ts} (85%) create mode 100644 packages/ai-core/src/schema/bcknddocker-registry-secret-creation-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknddocker-registry-secret-creation-response.ts create mode 100644 packages/ai-core/src/schema/bcknddocker-registry-secret-deletion-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknddocker-registry-secret-deletion-response.ts create mode 100644 packages/ai-core/src/schema/bcknddocker-registry-secret-modification-response-message.ts create mode 100644 packages/ai-core/src/schema/bcknddocker-registry-secret-modification-response.ts create mode 100644 packages/ai-core/src/schema/bcknddocker-registry-secret-status-response.ts rename packages/ai-core/src/schema/{docker-registry-secret-status.ts => bcknddocker-registry-secret-status.ts} (89%) rename packages/ai-core/src/schema/{docker-registry-secret-with-sensitive-data-request.ts => bcknddocker-registry-secret-with-sensitive-data-request.ts} (66%) create mode 100644 packages/ai-core/src/schema/bckndobject-store-secret-creation-response-message.ts create mode 100644 packages/ai-core/src/schema/bckndobject-store-secret-creation-response.ts create mode 100644 packages/ai-core/src/schema/bckndobject-store-secret-deletion-response-message.ts create mode 100644 packages/ai-core/src/schema/bckndobject-store-secret-deletion-response.ts create mode 100644 packages/ai-core/src/schema/bckndobject-store-secret-modification-response-message.ts create mode 100644 packages/ai-core/src/schema/bckndobject-store-secret-modification-response.ts create mode 100644 packages/ai-core/src/schema/bckndobject-store-secret-status-response.ts create mode 100644 packages/ai-core/src/schema/bckndobject-store-secret-status.ts rename packages/ai-core/src/schema/{object-store-secret-with-sensitive-data-request-for-post-call.ts => bckndobject-store-secret-with-sensitive-data-request-for-post-call.ts} (95%) rename packages/ai-core/src/schema/{object-store-secret-with-sensitive-data-request.ts => bckndobject-store-secret-with-sensitive-data-request.ts} (95%) delete mode 100644 packages/ai-core/src/schema/body-1.ts delete mode 100644 packages/ai-core/src/schema/body.ts delete mode 100644 packages/ai-core/src/schema/capabilities.ts delete mode 100644 packages/ai-core/src/schema/common-resource-quota-response.ts delete mode 100644 packages/ai-core/src/schema/configuration-base-data.ts delete mode 100644 packages/ai-core/src/schema/configuration-creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/configuration-creation-response.ts delete mode 100644 packages/ai-core/src/schema/configuration-detail-data.ts delete mode 100644 packages/ai-core/src/schema/configuration-id.ts delete mode 100644 packages/ai-core/src/schema/configuration-list.ts delete mode 100644 packages/ai-core/src/schema/configuration-name.ts delete mode 100644 packages/ai-core/src/schema/configuration.ts delete mode 100644 packages/ai-core/src/schema/creation-response-2.ts delete mode 100644 packages/ai-core/src/schema/creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/creation-response.ts delete mode 100644 packages/ai-core/src/schema/custom-info-object-list.ts rename packages/ai-core/src/schema/{error.ts => d-set-error.ts} (64%) rename packages/ai-core/src/schema/{file-creation-response.ts => d-set-file-creation-response.ts} (77%) rename packages/ai-core/src/schema/{url.ts => d-set-url.ts} (77%) delete mode 100644 packages/ai-core/src/schema/deployment-creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/deployment-creation-response.ts delete mode 100644 packages/ai-core/src/schema/deployment-deletion-response-message.ts delete mode 100644 packages/ai-core/src/schema/deployment-deletion-response.ts delete mode 100644 packages/ai-core/src/schema/deployment-detail-data.ts delete mode 100644 packages/ai-core/src/schema/deployment-detail-properties.ts delete mode 100644 packages/ai-core/src/schema/deployment-id.ts delete mode 100644 packages/ai-core/src/schema/deployment-list.ts delete mode 100644 packages/ai-core/src/schema/deployment-modification-response-list.ts delete mode 100644 packages/ai-core/src/schema/deployment-modification-response-message.ts delete mode 100644 packages/ai-core/src/schema/deployment-modification-response.ts delete mode 100644 packages/ai-core/src/schema/deployment-response-with-details.ts delete mode 100644 packages/ai-core/src/schema/deployment-status-message.ts delete mode 100644 packages/ai-core/src/schema/deployment-status.ts delete mode 100644 packages/ai-core/src/schema/deployment-target-status.ts delete mode 100644 packages/ai-core/src/schema/deployment.ts delete mode 100644 packages/ai-core/src/schema/docker-registry-secret-creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/docker-registry-secret-creation-response.ts delete mode 100644 packages/ai-core/src/schema/docker-registry-secret-deletion-response-message.ts delete mode 100644 packages/ai-core/src/schema/docker-registry-secret-deletion-response.ts delete mode 100644 packages/ai-core/src/schema/docker-registry-secret-modification-response-message.ts delete mode 100644 packages/ai-core/src/schema/docker-registry-secret-modification-response.ts delete mode 100644 packages/ai-core/src/schema/docker-registry-secret-status-response.ts delete mode 100644 packages/ai-core/src/schema/error-response.ts delete mode 100644 packages/ai-core/src/schema/executable-detail-data.ts delete mode 100644 packages/ai-core/src/schema/executable-id.ts delete mode 100644 packages/ai-core/src/schema/executable-list.ts delete mode 100644 packages/ai-core/src/schema/executable-resource-quota-response-quota.ts delete mode 100644 packages/ai-core/src/schema/executable-resource-quota-response-usage.ts delete mode 100644 packages/ai-core/src/schema/executable-resource-quota-response.ts delete mode 100644 packages/ai-core/src/schema/executable.ts delete mode 100644 packages/ai-core/src/schema/execution-creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/execution-creation-response.ts delete mode 100644 packages/ai-core/src/schema/execution-data.ts delete mode 100644 packages/ai-core/src/schema/execution-deletion-response-message.ts delete mode 100644 packages/ai-core/src/schema/execution-deletion-response.ts delete mode 100644 packages/ai-core/src/schema/execution-id.ts delete mode 100644 packages/ai-core/src/schema/execution-list.ts delete mode 100644 packages/ai-core/src/schema/execution-modification-response-list.ts delete mode 100644 packages/ai-core/src/schema/execution-modification-response-message.ts delete mode 100644 packages/ai-core/src/schema/execution-modification-response.ts delete mode 100644 packages/ai-core/src/schema/execution-response-with-details.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-creation-data.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-creation-response.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-data.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-deletion-response-message.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-deletion-response.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-list.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-modification-request.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-modification-response-message.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule-modification-response.ts delete mode 100644 packages/ai-core/src/schema/execution-schedule.ts delete mode 100644 packages/ai-core/src/schema/execution-status-message.ts delete mode 100644 packages/ai-core/src/schema/execution-status.ts delete mode 100644 packages/ai-core/src/schema/execution.ts delete mode 100644 packages/ai-core/src/schema/extended-service.ts delete mode 100644 packages/ai-core/src/schema/generic-name.ts delete mode 100644 packages/ai-core/src/schema/generic-secret-data-response.ts delete mode 100644 packages/ai-core/src/schema/generic-secret-patch-body.ts delete mode 100644 packages/ai-core/src/schema/get-metric-resource-list.ts delete mode 100644 packages/ai-core/src/schema/get-metric-resource.ts delete mode 100644 packages/ai-core/src/schema/get-metric.ts delete mode 100644 packages/ai-core/src/schema/inline-response-400.ts delete mode 100644 packages/ai-core/src/schema/inline-response-4001.ts delete mode 100644 packages/ai-core/src/schema/inline-response-4002.ts create mode 100644 packages/ai-core/src/schema/kpi-aggregation-attribute.ts create mode 100644 packages/ai-core/src/schema/kpi-api-error.ts create mode 100644 packages/ai-core/src/schema/kpi-array-of-column-names.ts rename packages/ai-core/src/schema/{column-name.ts => kpi-column-name.ts} (91%) rename packages/ai-core/src/schema/{count-aggregate.ts => kpi-count-aggregate.ts} (67%) create mode 100644 packages/ai-core/src/schema/kpi-result-row-item.ts create mode 100644 packages/ai-core/src/schema/kpi-result-row-list.ts create mode 100644 packages/ai-core/src/schema/kpi-result-row.ts create mode 100644 packages/ai-core/src/schema/kpi-result-set.ts delete mode 100644 packages/ai-core/src/schema/label.ts delete mode 100644 packages/ai-core/src/schema/labeled.ts delete mode 100644 packages/ai-core/src/schema/log-common-data.ts delete mode 100644 packages/ai-core/src/schema/log-common-result.ts create mode 100644 packages/ai-core/src/schema/meta-ai-api.ts create mode 100644 packages/ai-core/src/schema/meta-api-error.ts create mode 100644 packages/ai-core/src/schema/meta-api-version.ts create mode 100644 packages/ai-core/src/schema/meta-capabilities.ts rename packages/ai-core/src/schema/{extensions.ts => meta-extensions.ts} (78%) rename packages/ai-core/src/schema/{version-2.ts => meta-version.ts} (83%) delete mode 100644 packages/ai-core/src/schema/metric-resource.ts delete mode 100644 packages/ai-core/src/schema/name-1.ts delete mode 100644 packages/ai-core/src/schema/object-store-secret-creation-response-message.ts delete mode 100644 packages/ai-core/src/schema/object-store-secret-creation-response.ts delete mode 100644 packages/ai-core/src/schema/object-store-secret-deletion-response-message.ts delete mode 100644 packages/ai-core/src/schema/object-store-secret-deletion-response.ts delete mode 100644 packages/ai-core/src/schema/object-store-secret-modification-response-message.ts delete mode 100644 packages/ai-core/src/schema/object-store-secret-modification-response.ts delete mode 100644 packages/ai-core/src/schema/object-store-secret-status-metadata.ts delete mode 100644 packages/ai-core/src/schema/object-store-secret-status-response.ts delete mode 100644 packages/ai-core/src/schema/object-store-secret-status.ts delete mode 100644 packages/ai-core/src/schema/parameter-argument-binding-list.ts delete mode 100644 packages/ai-core/src/schema/resource-get-response.ts delete mode 100644 packages/ai-core/src/schema/resource-group-deletion-response-message.ts delete mode 100644 packages/ai-core/src/schema/resource-group-deletion-response.ts delete mode 100644 packages/ai-core/src/schema/resource-group-list.ts delete mode 100644 packages/ai-core/src/schema/resource-group-patch-request.ts delete mode 100644 packages/ai-core/src/schema/resource-group.ts delete mode 100644 packages/ai-core/src/schema/resource-patch-body.ts delete mode 100644 packages/ai-core/src/schema/resource-patch-resource-plans.ts delete mode 100644 packages/ai-core/src/schema/result-row-item.ts delete mode 100644 packages/ai-core/src/schema/result-row-list.ts delete mode 100644 packages/ai-core/src/schema/result-row.ts delete mode 100644 packages/ai-core/src/schema/result-set.ts rename packages/ai-core/src/schema/{message-1.ts => rt-amessage.ts} (85%) rename packages/ai-core/src/schema/{timestamp-1.ts => rt-atimestamp.ts} (73%) create mode 100644 packages/ai-core/src/schema/rta-artifact-array.ts create mode 100644 packages/ai-core/src/schema/rta-artifact-label-list.ts create mode 100644 packages/ai-core/src/schema/rta-artifact-label.ts create mode 100644 packages/ai-core/src/schema/rta-artifact-name.ts create mode 100644 packages/ai-core/src/schema/rta-artifact-signature.ts create mode 100644 packages/ai-core/src/schema/rta-artifact-url.ts create mode 100644 packages/ai-core/src/schema/rta-artifact.ts rename packages/ai-core/src/schema/{creation-data.ts => rta-backend-details.ts} (55%) create mode 100644 packages/ai-core/src/schema/rta-creation-response-message.ts create mode 100644 packages/ai-core/src/schema/rta-deployment-cascade-update-response-message.ts create mode 100644 packages/ai-core/src/schema/rta-deployment-creation-response-message.ts rename packages/ai-core/src/schema/{argo-cd-application-data.ts => rta-deployment-deletion-response-message.ts} (60%) create mode 100644 packages/ai-core/src/schema/rta-deployment-details.ts create mode 100644 packages/ai-core/src/schema/rta-deployment-id.ts create mode 100644 packages/ai-core/src/schema/rta-deployment-modification-response-message.ts create mode 100644 packages/ai-core/src/schema/rta-deployment-status-details.ts create mode 100644 packages/ai-core/src/schema/rta-deployment-url.ts create mode 100644 packages/ai-core/src/schema/rta-deployment.ts rename packages/ai-core/src/schema/{common-resource-quota-response-usage.ts => rta-error-response.ts} (56%) rename packages/ai-core/src/schema/{error-2.ts => rta-error.ts} (89%) rename packages/ai-core/src/schema/{artifact-argument-binding.ts => rta-executable-argument-binding.ts} (71%) create mode 100644 packages/ai-core/src/schema/rta-executable-artifact.ts create mode 100644 packages/ai-core/src/schema/rta-executable-id.ts create mode 100644 packages/ai-core/src/schema/rta-executable-input-artifact-list.ts create mode 100644 packages/ai-core/src/schema/rta-executable-output-artifact-list.ts create mode 100644 packages/ai-core/src/schema/rta-executable-parameter-list.ts create mode 100644 packages/ai-core/src/schema/rta-executable-parameter.ts create mode 100644 packages/ai-core/src/schema/rta-executable.ts create mode 100644 packages/ai-core/src/schema/rta-execution-creation-response-message.ts create mode 100644 packages/ai-core/src/schema/rta-execution-deletion-response-message.ts create mode 100644 packages/ai-core/src/schema/rta-execution-id.ts create mode 100644 packages/ai-core/src/schema/rta-execution-modification-response-message.ts create mode 100644 packages/ai-core/src/schema/rta-execution-status-details.ts create mode 100644 packages/ai-core/src/schema/rta-execution.ts create mode 100644 packages/ai-core/src/schema/rta-id.ts create mode 100644 packages/ai-core/src/schema/rta-input-artifact-argument-binding.ts rename packages/ai-core/src/schema/{scenario-label-list.ts => rta-label-list.ts} (66%) create mode 100644 packages/ai-core/src/schema/rta-label.ts create mode 100644 packages/ai-core/src/schema/rta-latest-running-target-id.ts rename packages/ai-core/src/schema/{deployment-creation-request.ts => rta-log-common-data.ts} (51%) rename packages/ai-core/src/schema/{log-common-response.ts => rta-log-common-response.ts} (64%) rename packages/ai-core/src/schema/{log-common-result-item.ts => rta-log-common-result-item.ts} (53%) create mode 100644 packages/ai-core/src/schema/rta-log-common-result.ts create mode 100644 packages/ai-core/src/schema/rta-model-base-data.ts create mode 100644 packages/ai-core/src/schema/rta-model-version-list.ts create mode 100644 packages/ai-core/src/schema/rta-model-version.ts create mode 100644 packages/ai-core/src/schema/rta-output-artifact-argument-binding.ts create mode 100644 packages/ai-core/src/schema/rta-scenario-id.ts create mode 100644 packages/ai-core/src/schema/rta-scenario.ts create mode 100644 packages/ai-core/src/schema/rta-target-id.ts create mode 100644 packages/ai-core/src/schema/rta-ttl.ts delete mode 100644 packages/ai-core/src/schema/scenario-base-data.ts delete mode 100644 packages/ai-core/src/schema/scenario-detail-data.ts delete mode 100644 packages/ai-core/src/schema/scenario-id.ts delete mode 100644 packages/ai-core/src/schema/scenario-label.ts delete mode 100644 packages/ai-core/src/schema/scenario-list.ts delete mode 100644 packages/ai-core/src/schema/scenario.ts delete mode 100644 packages/ai-core/src/schema/schedule.ts delete mode 100644 packages/ai-core/src/schema/service-capabilities-basic.ts delete mode 100644 packages/ai-core/src/schema/service-capabilities-logs.ts delete mode 100644 packages/ai-core/src/schema/service-capabilities.ts delete mode 100644 packages/ai-core/src/schema/service-details.ts delete mode 100644 packages/ai-core/src/schema/service-list.ts delete mode 100644 packages/ai-core/src/schema/service-service-catalog-item-extend-credentials-shared-service-urls.ts delete mode 100644 packages/ai-core/src/schema/service-service-catalog-item-extend-credentials-shared.ts delete mode 100644 packages/ai-core/src/schema/service-service-catalog-item-extend-credentials.ts delete mode 100644 packages/ai-core/src/schema/service-service-catalog-item.ts delete mode 100644 packages/ai-core/src/schema/service-service-catalog.ts delete mode 100644 packages/ai-core/src/schema/service.ts delete mode 100644 packages/ai-core/src/schema/spec.ts delete mode 100644 packages/ai-core/src/schema/status-transition-time.ts rename packages/ai-core/src/schema/{api-error-2.ts => trck-api-error.ts} (70%) rename packages/ai-core/src/schema/{custom-info-object-data.ts => trck-custom-info-object-data.ts} (90%) create mode 100644 packages/ai-core/src/schema/trck-custom-info-object-list.ts rename packages/ai-core/src/schema/{custom-info-object.ts => trck-custom-info-object.ts} (72%) rename packages/ai-core/src/schema/{delete-metrics-response.ts => trck-delete-metrics-response.ts} (60%) rename packages/ai-core/src/schema/{details-error-response.ts => trck-details-error-response.ts} (77%) rename packages/ai-core/src/schema/{execution-id-2.ts => trck-execution-id.ts} (67%) rename packages/ai-core/src/schema/{generic-name-2.ts => trck-generic-name.ts} (89%) rename packages/ai-core/src/schema/{metric-list.ts => trck-get-metric-list.ts} (65%) create mode 100644 packages/ai-core/src/schema/trck-get-metric-resource-list.ts create mode 100644 packages/ai-core/src/schema/trck-get-metric-resource.ts create mode 100644 packages/ai-core/src/schema/trck-get-metric.ts rename packages/ai-core/src/schema/{label-list-2.ts => trck-label-list.ts} (83%) rename packages/ai-core/src/schema/{label-name.ts => trck-label-name.ts} (91%) rename packages/ai-core/src/schema/{label-2.ts => trck-label.ts} (81%) rename packages/ai-core/src/schema/{get-metric-list.ts => trck-metric-list.ts} (67%) rename packages/ai-core/src/schema/{metric-name.ts => trck-metric-name.ts} (87%) create mode 100644 packages/ai-core/src/schema/trck-metric-resource.ts rename packages/ai-core/src/schema/{metric-value.ts => trck-metric-value.ts} (85%) rename packages/ai-core/src/schema/{metric.ts => trck-metric.ts} (58%) rename packages/ai-core/src/schema/{mlapi-execution-id.ts => trck-mlapi-execution-id.ts} (86%) rename packages/ai-core/src/schema/{string-array.ts => trck-string-array.ts} (70%) rename packages/ai-core/src/schema/{tag-list.ts => trck-tag-list.ts} (77%) rename packages/ai-core/src/schema/{tag.ts => trck-tag.ts} (80%) rename packages/ai-core/src/schema/{timestamp.ts => trck-timestamp.ts} (87%) rename packages/ai-core/src/schema/{metric-selector-permissible-values.ts => trckmetric-selector-permissible-values.ts} (87%) delete mode 100644 packages/ai-core/src/schema/version-base-data.ts delete mode 100644 packages/ai-core/src/schema/version-detail-data.ts delete mode 100644 packages/ai-core/src/schema/version-list.ts delete mode 100644 packages/ai-core/src/schema/version.ts create mode 100644 scripts/update-imports.ts diff --git a/packages/ai-core/package.json b/packages/ai-core/package.json index 8a66fdfb..fd64ecc5 100644 --- a/packages/ai-core/package.json +++ b/packages/ai-core/package.json @@ -20,7 +20,8 @@ "compile": "tsc", "test": "jest", "lint": "eslint . && prettier . --config ../../.prettierrc --ignore-path ../../.prettierignore -c", - "lint:fix": "eslint . --fix && prettier . --config ../../.prettierrc --ignore-path ../../.prettierignore -w --log-level error" + "lint:fix": "eslint . --fix && prettier . --config ../../.prettierrc --ignore-path ../../.prettierignore -w --log-level error", + "fix-generated-paths": "ts-node ../../scripts/fix-generated-paths.ts src" }, "dependencies": { "@sap-cloud-sdk/openapi": "^3.16.0" diff --git a/packages/ai-core/spec/AI_CORE_API.yaml b/packages/ai-core/spec/AI_CORE_API.yaml index 59f9acf6..893b0f86 100644 --- a/packages/ai-core/spec/AI_CORE_API.yaml +++ b/packages/ai-core/spec/AI_CORE_API.yaml @@ -1,24 +1,33 @@ openapi: 3.0.0 info: title: AI Core - description: | - Provides tools to manage your scenarios and workflows in SAP AI Core. Execute pipelines as a batch job, for example to pre-process or train your models, or perform batch inference. Serve inference requests of trained models. Deploy а trained machine learning model as a web service to serve inference requests with high performance. Register your own Docker registry, synchronize your AI content from your own git repository, and register your own object store for training data and trained models. - version: 2.29.0 -externalDocs: - description: Documentation for SAP AI Core - url: https://help.sap.com/docs/AI_CORE?version=CLOUD + description: + "Provides tools to manage your scenarios and workflows in SAP AI Core.\ + \ Execute pipelines as a batch job, for example to pre-process or train your models,\ + \ or perform batch inference. Serve inference requests of trained models. Deploy\ + \ а trained machine learning model as a web service to serve inference requests\ + \ with high performance. Register your own Docker registry, synchronize your\ + \ AI content from your own git repository, and register your own object store\ + \ for training data and trained models.\n" + version: 2.32.1 +x-sap-shortText: + Create and manage AI scenarios, trainings, deployments, and artifacts + in SAP AI Core. servers: - url: https://api.ai.{region}.aws.ml.hana.ondemand.com/v2 description: Production endpoint for SAP AI Core variables: region: - default: prod.eu-central-1 enum: - prod.eu-central-1 - prodeuonly.eu-central-1 - prod.us-east-1 - prod.ap-northeast-1 - prod.ap-southeast-2 + default: prod.eu-central-1 +externalDocs: + description: Documentation for SAP AI Core + url: https://help.sap.com/docs/AI_CORE?version=CLOUD security: - Oauth2: [] tags: @@ -50,137 +59,22 @@ tags: description: Access to executionSchedules paths: /lm/artifacts: - get: - tags: - - Artifact - summary: Get list of artifacts - description: | - Retrieve a list of artifacts that matches the specified filter criteria. - Filter criteria include scenario ID, execution ID, an artifact name, artifact kind, or artifact labels. - Use top/skip parameters to paginate the result list. - Search by substring of artifact name or description, if required. - operationId: artifact.query - parameters: - - name: scenarioId - in: query - description: Scenario identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: executionId - in: query - description: Execution identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: name - in: query - description: Artifact name - required: false - schema: - $ref: '#/components/schemas/name' - example: inception - - name: kind - in: query - description: Kind of the artifact - required: false - schema: - type: string - enum: - - model - - dataset - - resultset - - other - example: model - - name: artifactLabelSelector - in: query - description: | - Filter artifact by labels. Pass in expressions in the form of "key=value" or "key!=value" separated by commas and the result will be filtered to only those resources that have labels that match all provided expressions (i.e. logical AND). The maximum number of labels permitted for filtering is 10 - required: false - style: form - explode: false - schema: - maxItems: 10 - minItems: 1 - type: array - items: - maxLength: 5000 - pattern: ^ext\.ai\.sap\.com\/[\w\.-]+!?=[^ =,]+$ - type: string - example: ext.ai.sap.com/key1=value1,ext.ai.sap.com/key2!=value2 - - name: $top - in: query - description: Number of results to display - required: false - schema: - maximum: 100000 - type: integer - default: 10000 - example: 10 - x-visible: false - - name: $skip - in: query - description: Number of results to be skipped from the ordered list of results - required: false - schema: - type: integer - example: 10 - x-visible: false - - name: $search - in: query - description: Generic search term to be looked for in various attributes - required: false - schema: - pattern: ^[^~]{1,80}$ - type: string - example: onfigur - - name: searchCaseInsensitive - in: query - description: indicates whether the search should be case insensitive - required: false - schema: - type: boolean - default: false - example: true - - name: $expand - in: query - description: expand detailed information on scenario - required: false - schema: - type: string - enum: - - scenario - example: scenario - x-visible: false - responses: - '200': - description: A list of artifacts - content: - application/json: - schema: - $ref: '#/components/schemas/ArtifactList' - '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' post: tags: - Artifact summary: Register artifact - description: Register an artifact for use in a configuration, for example a model or a dataset. + description: + Register an artifact for use in a configuration, for example a + model or a dataset. operationId: artifact.create requestBody: + required: true content: application/json: schema: - $ref: '#/components/schemas/ArtifactPostData' - required: true + $ref: '#/components/schemas/AiArtifactPostData' responses: '201': description: The artifact has been registered successfully @@ -188,30 +82,62 @@ paths: Location: description: URL of the registered artifact schema: - $ref: '#/components/schemas/Url' + $ref: '#/components/schemas/AiUrl' Content-Location: - description: URL of the registered artifact. This header is deprecated. Location header shall be used instead. + description: + URL of the registered artifact. This header is deprecated. + Location header shall be used instead. deprecated: true schema: - $ref: '#/components/schemas/Url' + $ref: '#/components/schemas/AiUrl' content: application/json: schema: - $ref: '#/components/schemas/ArtifactCreationResponse' + $ref: '#/components/schemas/AiArtifactCreationResponse' '400': - description: The specification of the resource was incorrect + $ref: '#/components/responses/AiBadRequest' + get: + tags: + - Artifact + summary: Get list of artifacts + description: + 'Retrieve a list of artifacts that matches the specified filter + criteria. + + Filter criteria include scenario ID, execution ID, an artifact name, artifact + kind, or artifact labels. + + Use top/skip parameters to paginate the result list. + + Search by substring of artifact name or description, if required. + + ' + operationId: artifact.query + parameters: + - $ref: '#/components/parameters/AiqueryScenarioId' + - $ref: '#/components/parameters/AiqueryExecutionId' + - $ref: '#/components/parameters/AiqueryArtifactName' + - $ref: '#/components/parameters/AiqueryArtifactKind' + - $ref: '#/components/parameters/AiartifactLabelSelector' + - $ref: '#/components/parameters/Aitop' + - $ref: '#/components/parameters/Aiskip' + - $ref: '#/components/parameters/AiquerySearch' + - $ref: '#/components/parameters/AiquerySearchCaseInsensitive' + - $ref: '#/components/parameters/AiqueryArtifactExpand' + responses: + '200': + description: A list of artifacts content: application/json: schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string + $ref: '#/components/schemas/AiArtifactList' + '400': + $ref: '#/components/responses/AiBadRequest' /lm/artifacts/{artifactId}: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiartifactId' + - $ref: '#/components/parameters/AiqueryArtifactExpand' get: tags: - Artifact @@ -224,144 +150,62 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Artifact' + $ref: '#/components/schemas/AiArtifact' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: artifactId - in: path - description: Artifact identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: $expand - in: query - description: expand detailed information on scenario - required: false - schema: - type: string - enum: - - scenario - example: scenario - x-visible: false + $ref: '#/components/responses/AiNotFound' /lm/configurations: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Configuration summary: Get list of configurations - description: | - Retrieve a list of configurations. Filter results by scenario ID or a list of executable IDs. - Search for configurations containing the search string as substring in the configuration name. + description: + 'Retrieve a list of configurations. Filter results by scenario + ID or a list of executable IDs. + + Search for configurations containing the search string as substring in the + configuration name. + + ' operationId: configuration.query parameters: - - name: scenarioId - in: query - description: Scenario identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: $top - in: query - description: Number of results to display - required: false - schema: - maximum: 100000 - type: integer - default: 10000 - example: 10 - x-visible: false - - name: $skip - in: query - description: Number of results to be skipped from the ordered list of results - required: false - schema: - type: integer - example: 10 - x-visible: false - - name: executableIds - in: query - description: Limit query to only these executable IDs - style: form - explode: false - schema: - maxItems: 1000 - type: array - items: - pattern: ^[\w.-]{4,64}$ - type: string - - name: $search - in: query - description: Generic search term to be looked for in various attributes - required: false - schema: - pattern: ^[^~]{1,80}$ - type: string - example: onfigur - - name: searchCaseInsensitive - in: query - description: indicates whether the search should be case insensitive - required: false - schema: - type: boolean - default: false - example: true - - name: $expand - in: query - description: expand detailed information on scenario - required: false - schema: - type: string - enum: - - scenario - example: scenario - x-visible: false + - $ref: '#/components/parameters/AiqueryScenarioId' + - $ref: '#/components/parameters/Aitop' + - $ref: '#/components/parameters/Aiskip' + - $ref: '#/components/parameters/AiexecutableIdsList' + - $ref: '#/components/parameters/AiquerySearch' + - $ref: '#/components/parameters/AiquerySearchCaseInsensitive' + - $ref: '#/components/parameters/AiqueryConfigurationExpand' responses: '200': description: A list of configurations content: application/json: schema: - $ref: '#/components/schemas/ConfigurationList' + $ref: '#/components/schemas/AiConfigurationList' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' post: tags: - Configuration summary: Create configuration - description: | - Create a new configuration linked to a specific scenario and executable for use in an execution + description: + 'Create a new configuration linked to a specific scenario and executable + for use in an execution + or deployment. + + ' operationId: configuration.create requestBody: + required: true content: application/json: schema: - $ref: '#/components/schemas/ConfigurationBaseData' - required: true + $ref: '#/components/schemas/AiConfigurationBaseData' responses: '201': description: The created configuration @@ -369,25 +213,18 @@ paths: Location: description: URL of the created configuration schema: - $ref: '#/components/schemas/Url' + $ref: '#/components/schemas/AiUrl' content: application/json: schema: - $ref: '#/components/schemas/ConfigurationCreationResponse' + $ref: '#/components/schemas/AiConfigurationCreationResponse' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string + $ref: '#/components/responses/AiBadRequest' /lm/configurations/{configurationId}: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiconfigurationId' + - $ref: '#/components/parameters/AiqueryConfigurationExpand' get: tags: - Configuration @@ -396,55 +233,70 @@ paths: operationId: configuration.get responses: '200': - description: A configuration content: application/json: schema: - $ref: '#/components/schemas/Configuration' + $ref: '#/components/schemas/AiConfiguration' + description: A configuration '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' '404': - description: The specified resource was not found + $ref: '#/components/responses/AiNotFound' + /lm/deployments: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' + get: + tags: + - Deployment + summary: Get list of deployments + description: + 'Retrieve a list of deployments that match the specified filter + criteria. + + Filter criteria include a list of executableIds, a scenarioId, a configurationId, + or a deployment status. + + With top/skip parameters it is possible to paginate the result list. + + With select parameter it is possible to select only status. + + ' + operationId: deployment.query + parameters: + - $ref: '#/components/parameters/AiexecutableIdsList' + - $ref: '#/components/parameters/AiqueryConfigurationId' + - $ref: '#/components/parameters/AiqueryScenarioId' + - $ref: '#/components/parameters/Aistatus' + - $ref: '#/components/parameters/Aitop' + - $ref: '#/components/parameters/Aiskip' + - $ref: '#/components/parameters/Aiselect' + responses: + '200': + description: A list of deployments content: application/json: schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: configurationId - in: path - description: Configuration identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: $expand - in: query - description: expand detailed information on scenario - required: false - schema: - type: string - enum: - - scenario - example: scenario - x-visible: false - /lm/configurations/{configurationId}/deployments: + $ref: '#/components/schemas/AiDeploymentList' + '400': + $ref: '#/components/responses/AiBadRequest' post: tags: - Deployment summary: Create deployment - description: Create deployment. Deprecated, use POST /deployments instead - operationId: deployment.create_deprecated + description: + 'Create a deployment using the configuration specified by configurationId + after synchronously checking the + + correctness of the configuration. + + ' + operationId: deployment.create + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AiDeploymentCreationRequest' responses: '202': description: The deployment has been scheduled successfully @@ -452,274 +304,94 @@ paths: Location: description: URL of the scheduled deployment schema: - $ref: '#/components/schemas/Url' - Content-Location: - description: URL of the scheduled deployment. This header is deprecated. Location header shall be used instead. - deprecated: true - schema: - $ref: '#/components/schemas/Url' + $ref: '#/components/schemas/AiUrl' content: application/json: schema: - $ref: '#/components/schemas/DeploymentCreationResponse' + $ref: '#/components/schemas/AiDeploymentCreationResponse' '400': - description: The specification of the resource was incorrect + $ref: '#/components/responses/AiBadRequest' + patch: + tags: + - Deployment + summary: Patch multiple deployments + description: + Update status of multiple deployments. stop or delete multiple + deployments. + operationId: deployment.batch_modify + requestBody: + content: + application/merge-patch+json: + schema: + $ref: '#/components/schemas/AiDeploymentBulkModificationRequest' + required: true + responses: + '202': + description: The modification of the deployments have been scheduled successfully content: application/json: schema: - $ref: '#/components/schemas/inline_response_400' - deprecated: true + $ref: '#/components/schemas/AiDeploymentBulkModificationResponse' + '400': + $ref: '#/components/responses/AiBadRequest' + /lm/deployments/{deploymentId}: parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: configurationId - in: path - description: Configuration identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - /lm/configurations/{configurationId}/executions: - post: + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AideploymentId' + get: tags: - - Execution - summary: Trigger execution - description: Trigger execution. Deprecated. Use POST /executions instead - operationId: execution.create_deprecated + - Deployment + summary: Get information about specific deployment + description: Retrieve details for execution with deploymentId. + operationId: deployment.get + parameters: + - $ref: '#/components/parameters/Aiselect' responses: - '202': - description: The execution has been scheduled successfully - headers: - Location: - description: URL of the scheduled execution - schema: - $ref: '#/components/schemas/Url' + '200': + description: Information about the deployment content: application/json: schema: - $ref: '#/components/schemas/ExecutionCreationResponse' + $ref: '#/components/schemas/AiDeploymentResponseWithDetails' '400': - description: The specification of the resource was incorrect + $ref: '#/components/responses/AiBadRequest' + '404': + $ref: '#/components/responses/AiNotFound' + patch: + tags: + - Deployment + summary: Update target status or configuration of a deployment + description: + 'Update target status of a deployment to stop a deployment or change + the configuration to be used by the + + deployment after synchronously checking the correctness of the configuration. + A change of configuration is only + + allowed for RUNNING and PENDING deployments. + + ' + operationId: deployment.modify + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AiDeploymentModificationRequest' + responses: + '202': + description: The modification of the deployment has been scheduled successfully content: application/json: schema: - $ref: '#/components/schemas/inline_response_400' - deprecated: true - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: configurationId - in: path - description: Configuration identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - /lm/deployments: - get: - tags: - - Deployment - summary: Get list of deployments - description: | - Retrieve a list of deployments that match the specified filter criteria. - Filter criteria include a list of executableIds, a scenarioId, a configurationId, or a deployment status. - With top/skip parameters it is possible to paginate the result list. - With select parameter it is possible to select only status. - operationId: deployment.query - parameters: - - name: executableIds - in: query - description: Limit query to only these executable IDs - style: form - explode: false - schema: - maxItems: 1000 - type: array - items: - pattern: ^[\w.-]{4,64}$ - type: string - - name: configurationId - in: query - description: Configuration identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: scenarioId - in: query - description: Scenario identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: status - in: query - description: Filter by status - required: false - schema: - type: string - enum: - - PENDING - - RUNNING - - COMPLETED - - DEAD - - STOPPING - - STOPPED - - UNKNOWN - example: RUNNING - - name: $top - in: query - description: Number of results to display - required: false - schema: - maximum: 100000 - type: integer - default: 10000 - example: 10 - x-visible: false - - name: $skip - in: query - description: Number of results to be skipped from the ordered list of results - required: false - schema: - type: integer - example: 10 - x-visible: false - - name: $select - in: query - description: Allows to request a specified set of properties for each entity - required: false - schema: - type: string - enum: - - status - example: status - x-visible: false - responses: - '200': - description: A list of deployments - content: - application/json: - schema: - $ref: '#/components/schemas/DeploymentList' - '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - post: - tags: - - Deployment - summary: Create deployment - description: Create a deployment using the configuration specified by configurationId. - operationId: deployment.create - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DeploymentCreationRequest' - required: true - responses: - '202': - description: The deployment has been scheduled successfully - headers: - Location: - description: URL of the scheduled deployment - schema: - $ref: '#/components/schemas/Url' - content: - application/json: - schema: - $ref: '#/components/schemas/DeploymentCreationResponse' - '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - patch: - tags: - - Deployment - summary: Patch multiple deployments - description: Update status of multiple deployments. stop or delete multiple deployments. - operationId: deployment.batch_modify - requestBody: - content: - application/merge-patch+json: - schema: - $ref: '#/components/schemas/DeploymentBulkModificationRequest' - required: true - responses: - '202': - description: The modification of the deployments have been scheduled successfully - content: - application/json: - schema: - $ref: '#/components/schemas/DeploymentBulkModificationResponse' - '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - /lm/deployments/{deploymentId}: - get: - tags: - - Deployment - summary: Get information about specific deployment - description: Retrieve details for execution with deploymentId. - operationId: deployment.get - parameters: - - name: $select - in: query - description: Allows to request a specified set of properties for each entity - required: false - schema: - type: string - enum: - - status - example: status - x-visible: false - responses: - '200': - description: Information about the deployment - content: - application/json: - schema: - $ref: '#/components/schemas/DeploymentResponseWithDetails' - '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - delete: + $ref: '#/components/schemas/AiDeploymentModificationResponse' + '400': + $ref: '#/components/responses/AiBadRequest' + '404': + $ref: '#/components/responses/AiNotFound' + '412': + $ref: '#/components/responses/AiPreconditionFailed' + delete: tags: - Deployment summary: Mark deployment as deleted @@ -731,180 +403,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeploymentDeletionResponse' + $ref: '#/components/schemas/AiDeploymentDeletionResponse' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - '412': - description: The service didn't meet the precondition needed to execute this operation - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - patch: - tags: - - Deployment - summary: Update target status or configuration of a deployment - description: Update target status of a deployment to stop a deployment or change the configuration to be used by the deployment. A change of configuration is only allowed for RUNNING and PENDING deployments. - operationId: deployment.modify - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DeploymentModificationRequest' - required: true - responses: - '202': - description: The modification of the deployment has been scheduled successfully - content: - application/json: - schema: - $ref: '#/components/schemas/DeploymentModificationResponse' - '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiNotFound' '412': - description: The service didn't meet the precondition needed to execute this operation - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: deploymentId - in: path - description: Deployment identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a + $ref: '#/components/responses/AiPreconditionFailed' /lm/executions: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Execution summary: Get list of executions - description: | - Retrieve a list of executions that match the specified filter criteria. - Filter criteria include a list of executableIds, a scenarioId, a configurationId, or a execution status. + description: + 'Retrieve a list of executions that match the specified filter + criteria. + + Filter criteria include a list of executableIds, a scenarioId, a configurationId, + or a execution status. + With top/skip parameters it is possible to paginate the result list. + With select parameter it is possible to select only status. + + ' operationId: execution.query parameters: - - name: executableIds - in: query - description: Limit query to only these executable IDs - style: form - explode: false - schema: - maxItems: 1000 - type: array - items: - pattern: ^[\w.-]{4,64}$ - type: string - - name: configurationId - in: query - description: Configuration identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: scenarioId - in: query - description: Scenario identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: executionScheduleId - in: query - description: Execution Schedule identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: status - in: query - description: Filter by status - required: false - schema: - type: string - enum: - - PENDING - - RUNNING - - COMPLETED - - DEAD - - STOPPING - - STOPPED - - UNKNOWN - example: RUNNING - - name: $top - in: query - description: Number of results to display - required: false - schema: - maximum: 100000 - type: integer - default: 10000 - example: 10 - x-visible: false - - name: $skip - in: query - description: Number of results to be skipped from the ordered list of results - required: false - schema: - type: integer - example: 10 - x-visible: false - - name: $select - in: query - description: Allows to request a specified set of properties for each entity - required: false - schema: - type: string - enum: - - status - example: status - x-visible: false + - $ref: '#/components/parameters/AiexecutableIdsList' + - $ref: '#/components/parameters/AiqueryConfigurationId' + - $ref: '#/components/parameters/AiqueryScenarioId' + - $ref: '#/components/parameters/AiqueryExecutionScheduleId' + - $ref: '#/components/parameters/Aistatus' + - $ref: '#/components/parameters/Aitop' + - $ref: '#/components/parameters/Aiskip' + - $ref: '#/components/parameters/Aiselect' responses: '200': description: A list of executions content: application/json: schema: - $ref: '#/components/schemas/ExecutionList' + $ref: '#/components/schemas/AiExecutionList' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' post: tags: - Execution @@ -912,11 +455,11 @@ paths: description: Create an execution using the configuration specified by configurationId. operationId: execution.create requestBody: + required: true content: application/json: schema: - $ref: '#/components/schemas/EnactmentCreationRequest' - required: true + $ref: '#/components/schemas/AiEnactmentCreationRequest' responses: '202': description: The execution has been scheduled successfully @@ -924,17 +467,13 @@ paths: Location: description: URL of the scheduled execution schema: - $ref: '#/components/schemas/Url' + $ref: '#/components/schemas/AiUrl' content: application/json: schema: - $ref: '#/components/schemas/ExecutionCreationResponse' + $ref: '#/components/schemas/AiExecutionCreationResponse' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' patch: tags: - Execution @@ -945,7 +484,7 @@ paths: content: application/merge-patch+json: schema: - $ref: '#/components/schemas/ExecutionBulkModificationRequest' + $ref: '#/components/schemas/AiExecutionBulkModificationRequest' required: true responses: '202': @@ -953,21 +492,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExecutionBulkModificationResponse' + $ref: '#/components/schemas/AiExecutionBulkModificationResponse' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string + $ref: '#/components/responses/AiBadRequest' /lm/executions/{executionId}: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiexecutionId' get: tags: - Execution @@ -975,35 +506,43 @@ paths: description: Retrieve details for execution with executionId. operationId: execution.get parameters: - - name: $select - in: query - description: Allows to request a specified set of properties for each entity - required: false - schema: - type: string - enum: - - status - example: status - x-visible: false + - $ref: '#/components/parameters/Aiselect' responses: '200': description: Information about the execution content: application/json: schema: - $ref: '#/components/schemas/ExecutionResponseWithDetails' + $ref: '#/components/schemas/AiExecutionResponseWithDetails' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' '404': - description: The specified resource was not found + $ref: '#/components/responses/AiNotFound' + patch: + tags: + - Execution + summary: Update target status of an execution + description: Update target status of the execution to stop an execution. + operationId: execution.modify + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/AiExecutionModificationRequest' + responses: + '202': + description: The modification of the execution has been scheduled successfully content: application/json: schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/schemas/AiExecutionModificationResponse' + '400': + $ref: '#/components/responses/AiBadRequest' + '404': + $ref: '#/components/responses/AiNotFound' + '412': + $ref: '#/components/responses/AiPreconditionFailed' delete: tags: - Execution @@ -1016,149 +555,58 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExecutionDeletionResponse' + $ref: '#/components/schemas/AiExecutionDeletionResponse' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - '412': - description: The service didn't meet the precondition needed to execute this operation - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - patch: - tags: - - Execution - summary: Update target status of an execution - description: Update target status of the execution to stop an execution. - operationId: execution.modify - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExecutionModificationRequest' - required: true - responses: - '202': - description: The modification of the execution has been scheduled successfully - content: - application/json: - schema: - $ref: '#/components/schemas/ExecutionModificationResponse' - '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiNotFound' '412': - description: The service didn't meet the precondition needed to execute this operation - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: executionId - in: path - description: Execution identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a + $ref: '#/components/responses/AiPreconditionFailed' /lm/executionSchedules: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Execution Schedule summary: Get list of execution schedules - description: | - Retrieve a list of execution schedules that match the specified filter criteria. + description: + 'Retrieve a list of execution schedules that match the specified + filter criteria. + Filter criteria include executionScheduleStatus or a configurationId. + With top/skip parameters it is possible to paginate the result list. + + ' operationId: execution_schedule.query parameters: - - name: configurationId - in: query - description: Configuration identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: status - in: query - description: Execution Schedule status - required: false - schema: - type: string - enum: - - ACTIVE - - INACTIVE - example: ACTIVE - - name: $top - in: query - description: Number of results to display - required: false - schema: - maximum: 100000 - type: integer - default: 10000 - example: 10 - x-visible: false - - name: $skip - in: query - description: Number of results to be skipped from the ordered list of results - required: false - schema: - type: integer - example: 10 - x-visible: false + - $ref: '#/components/parameters/AiqueryConfigurationId' + - $ref: '#/components/parameters/AiqueryExecutionScheduleStatus' + - $ref: '#/components/parameters/Aitop' + - $ref: '#/components/parameters/Aiskip' responses: '200': description: A list of execution schedules content: application/json: schema: - $ref: '#/components/schemas/ExecutionScheduleList' + $ref: '#/components/schemas/AiExecutionScheduleList' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' post: tags: - Execution Schedule summary: Create execution schedule - description: Create an execution schedule using the configuration specified by configurationId, and schedule. + description: + Create an execution schedule using the configuration specified + by configurationId, and schedule. operationId: execution_schedule.create requestBody: + required: true content: application/json: schema: - $ref: '#/components/schemas/ExecutionScheduleCreationData' - required: true + $ref: '#/components/schemas/AiExecutionScheduleCreationData' responses: '202': description: The execution schedule has been created successfully @@ -1166,25 +614,17 @@ paths: Location: description: URL of the execution schedule schema: - $ref: '#/components/schemas/Url' + $ref: '#/components/schemas/AiUrl' content: application/json: schema: - $ref: '#/components/schemas/ExecutionScheduleCreationResponse' + $ref: '#/components/schemas/AiExecutionScheduleCreationResponse' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string + $ref: '#/components/responses/AiBadRequest' /lm/executionSchedules/{executionScheduleId}: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiexecutionScheduleId' get: tags: - Execution Schedule @@ -1197,44 +637,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExecutionSchedule' - '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - delete: - tags: - - Execution Schedule - summary: Delete execution schedule - description: Delete the execution schedule with executionScheduleId. - operationId: execution_schedule.delete - responses: - '202': - description: The execution schedule has been deleted successfully - content: - application/json: - schema: - $ref: '#/components/schemas/ExecutionScheduleDeletionResponse' + $ref: '#/components/schemas/AiExecutionSchedule' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiNotFound' patch: tags: - Execution Schedule @@ -1242,46 +649,42 @@ paths: description: Update details of an execution schedule operationId: execution_schedule.modify requestBody: + required: true content: application/json: schema: - $ref: '#/components/schemas/ExecutionScheduleModificationRequest' - required: true + $ref: '#/components/schemas/AiExecutionScheduleModificationRequest' responses: '202': description: The execution schedule has been modified successfully content: application/json: schema: - $ref: '#/components/schemas/ExecutionScheduleModificationResponse' + $ref: '#/components/schemas/AiExecutionScheduleModificationResponse' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' '404': - description: The specified resource was not found + $ref: '#/components/responses/AiNotFound' + delete: + tags: + - Execution Schedule + summary: Delete execution schedule + description: Delete the execution schedule with executionScheduleId. + operationId: execution_schedule.delete + responses: + '202': + description: The execution schedule has been deleted successfully content: application/json: schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: executionScheduleId - in: path - description: Execution Schedule identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a + $ref: '#/components/schemas/AiExecutionScheduleDeletionResponse' + '400': + $ref: '#/components/responses/AiBadRequest' + '404': + $ref: '#/components/responses/AiNotFound' /lm/scenarios: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Scenario @@ -1294,15 +697,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ScenarioList' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string + $ref: '#/components/schemas/AiScenarioList' /lm/scenarios/{scenarioId}: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiscenarioId' get: tags: - Scenario @@ -1315,85 +714,52 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Scenario' + $ref: '#/components/schemas/AiScenario' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: scenarioId - in: path - description: Scenario identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a + $ref: '#/components/responses/AiNotFound' /lm/scenarios/{scenarioId}/executables: + parameters: + - $ref: '#/components/parameters/AiscenarioId' + - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Executable summary: Get list of executables - description: | - Retrieve a list of executables for a scenario. Filter by version ID, if required. + description: + 'Retrieve a list of executables for a scenario. Filter by version + ID, if required. + + ' operationId: executable.query parameters: - - name: versionId - in: query - description: Version ID, if defined - returns the specified version - required: false - schema: - type: string + - $ref: '#/components/parameters/AiversionIdQueryParam' responses: '200': description: A list of executables content: application/json: schema: - $ref: '#/components/schemas/ExecutableList' + $ref: '#/components/schemas/AiExecutableList' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: scenarioId - in: path - description: Scenario identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string + $ref: '#/components/responses/AiBadRequest' /lm/scenarios/{scenarioId}/executables/{executableId}: + parameters: + - $ref: '#/components/parameters/AiscenarioId' + - $ref: '#/components/parameters/AiexecutableId' + - $ref: '#/components/parameters/AiresourceGroupHeader' get: tags: - Executable summary: Get details about specific executable - description: | - Retrieve details about an executable identified by executableId belonging + description: + 'Retrieve details about an executable identified by executableId + belonging + to a scenario identified by scenarioId. + + ' operationId: executable.get responses: '200': @@ -1401,50 +767,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Executable' + $ref: '#/components/schemas/AiExecutable' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: scenarioId - in: path - description: Scenario identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: executableId - in: path - description: Executable identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string + $ref: '#/components/responses/AiNotFound' /lm/scenarios/{scenarioId}/versions: + parameters: + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiscenarioId' + - $ref: '#/components/parameters/AilabelSelector' get: tags: - Scenario summary: Get list of versions for scenario - description: | - Retrieve a list of scenario versions based on the versions of executables + description: + 'Retrieve a list of scenario versions based on the versions of + executables + available within that scenario. + + ' operationId: scenario.query_versions responses: '200': @@ -1452,127 +795,54 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VersionList' + $ref: '#/components/schemas/AiVersionList' '400': - description: The specification of the resource was incorrect + $ref: '#/components/responses/AiBadRequest' + /lm/scenarios/{scenarioId}/models: + parameters: + - $ref: '#/components/parameters/AiscenarioId' + get: + tags: + - Model + summary: Get information about all models available in LLM global scenario + description: Retrieve information about all models available in LLM global scenario + operationId: models.get + responses: + '200': + description: + The request was successful and information of all LLM models + will be returned. content: application/json: schema: - $ref: '#/components/schemas/inline_response_400' - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: scenarioId - in: path - description: Scenario identifier - required: true - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: labelSelector - in: query - description: | - filter by labels. Pass in expressions in the form of "key=value" or "key!=value" separated by commas and the result will be filtered to only those resources that have labels that match all provided expressions (i.e. logical AND) - required: false - style: form - explode: false - schema: - minItems: 1 - type: array - items: - maxLength: 5000 - pattern: ^ext\.ai\.sap\.com\/[\w\.-]+!?=[^ =,]+$ - type: string - example: ext.ai.sap.com/key1=value1,ext.ai.sap.com/key2!=value2 + $ref: '#/components/schemas/AiModelList' + '400': + $ref: '#/components/responses/AiBadRequest' /lm/artifacts/$count: get: tags: - Artifact summary: Get number of artifacts - description: | - Retrieve the number of available artifacts that match the specified filter criteria. - Filter criteria include a scenarioId, executionId, an artifact name, artifact kind, or artifact labels. + description: + 'Retrieve the number of available artifacts that match the specified + filter criteria. + + Filter criteria include a scenarioId, executionId, an artifact name, artifact + kind, or artifact labels. + Search by substring of artifact name or description is also possible. + + ' operationId: artifact.count parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: scenarioId - in: query - description: Scenario identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: executionId - in: query - description: Execution identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: name - in: query - description: Artifact name - required: false - schema: - $ref: '#/components/schemas/name' - example: inception - - name: kind - in: query - description: Kind of the artifact - required: false - schema: - type: string - enum: - - model - - dataset - - resultset - - other - example: model - - name: $search - in: query - description: Generic search term to be looked for in various attributes - required: false - schema: - pattern: ^[^~]{1,80}$ - type: string - example: onfigur - - name: searchCaseInsensitive - in: query - description: indicates whether the search should be case insensitive - required: false - schema: - type: boolean - default: false - example: true - - name: artifactLabelSelector - in: query - description: | - Filter artifact by labels. Pass in expressions in the form of "key=value" or "key!=value" separated by commas and the result will be filtered to only those resources that have labels that match all provided expressions (i.e. logical AND). The maximum number of labels permitted for filtering is 10 - required: false - style: form - explode: false - schema: - maxItems: 10 - minItems: 1 - type: array - items: - maxLength: 5000 - pattern: ^ext\.ai\.sap\.com\/[\w\.-]+!?=[^ =,]+$ - type: string - example: ext.ai.sap.com/key1=value1,ext.ai.sap.com/key2!=value2 + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiqueryScenarioId' + - $ref: '#/components/parameters/AiqueryExecutionId' + - $ref: '#/components/parameters/AiqueryArtifactName' + - $ref: '#/components/parameters/AiqueryArtifactKind' + - $ref: '#/components/parameters/AiquerySearch' + - $ref: '#/components/parameters/AiquerySearchCaseInsensitive' + - $ref: '#/components/parameters/AiartifactLabelSelector' responses: '200': description: Number of artifacts @@ -1581,62 +851,27 @@ paths: schema: type: integer '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' /lm/configurations/$count: get: tags: - Configuration summary: Get number of configurations - description: | - Retrieve the number of available configurations that match the specified filter criteria. - Filter criteria include a scenarioId or executableIdsList. Search by substring of configuration name is also possible. + description: + 'Retrieve the number of available configurations that match the + specified filter criteria. + + Filter criteria include a scenarioId or executableIdsList. Search by substring + of configuration name is also possible. + + ' operationId: configuration.count parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: scenarioId - in: query - description: Scenario identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: $search - in: query - description: Generic search term to be looked for in various attributes - required: false - schema: - pattern: ^[^~]{1,80}$ - type: string - example: onfigur - - name: searchCaseInsensitive - in: query - description: indicates whether the search should be case insensitive - required: false - schema: - type: boolean - default: false - example: true - - name: executableIds - in: query - description: Limit query to only these executable IDs - style: form - explode: false - schema: - maxItems: 1000 - type: array - items: - pattern: ^[\w.-]{4,64}$ - type: string + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiqueryScenarioId' + - $ref: '#/components/parameters/AiquerySearch' + - $ref: '#/components/parameters/AiquerySearchCaseInsensitive' + - $ref: '#/components/parameters/AiexecutableIdsList' responses: '200': description: Number of configurations @@ -1645,77 +880,27 @@ paths: schema: type: integer '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' /lm/executions/$count: get: tags: - Execution summary: Get number of executions - description: | - Retrieve the number of available executions. The number can be filtered by + description: + 'Retrieve the number of available executions. The number can be + filtered by + scenarioId, configurationId, executableIdsList or by execution status. + + ' operationId: execution.count parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: executableIds - in: query - description: Limit query to only these executable IDs - style: form - explode: false - schema: - maxItems: 1000 - type: array - items: - pattern: ^[\w.-]{4,64}$ - type: string - - name: configurationId - in: query - description: Configuration identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: scenarioId - in: query - description: Scenario identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: executionScheduleId - in: query - description: Execution Schedule identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: status - in: query - description: Filter by status - required: false - schema: - type: string - enum: - - PENDING - - RUNNING - - COMPLETED - - DEAD - - STOPPING - - STOPPED - - UNKNOWN - example: RUNNING + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiexecutableIdsList' + - $ref: '#/components/parameters/AiqueryConfigurationId' + - $ref: '#/components/parameters/AiqueryScenarioId' + - $ref: '#/components/parameters/AiqueryExecutionScheduleId' + - $ref: '#/components/parameters/Aistatus' responses: '200': description: Number of executions @@ -1724,69 +909,26 @@ paths: schema: type: integer '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' /lm/deployments/$count: get: tags: - Deployment summary: Get number of deployments - description: | - Retrieve the number of available deployments. The number can be filtered by + description: + 'Retrieve the number of available deployments. The number can be + filtered by + scenarioId, configurationId, executableIdsList or by deployment status. + + ' operationId: deployment.count parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: executableIds - in: query - description: Limit query to only these executable IDs - style: form - explode: false - schema: - maxItems: 1000 - type: array - items: - pattern: ^[\w.-]{4,64}$ - type: string - - name: configurationId - in: query - description: Configuration identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: scenarioId - in: query - description: Scenario identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: status - in: query - description: Filter by status - required: false - schema: - type: string - enum: - - PENDING - - RUNNING - - COMPLETED - - DEAD - - STOPPING - - STOPPED - - UNKNOWN - example: RUNNING + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiexecutableIdsList' + - $ref: '#/components/parameters/AiqueryConfigurationId' + - $ref: '#/components/parameters/AiqueryScenarioId' + - $ref: '#/components/parameters/Aistatus' responses: '200': description: Number of deployments @@ -1795,45 +937,24 @@ paths: schema: type: integer '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' /lm/executionSchedules/$count: get: tags: - Execution Schedule summary: Get number of execution schedules - description: | - Retrieve the number of scheduled executions. The number can be filtered by + description: + 'Retrieve the number of scheduled executions. The number can be + filtered by + configurationId or executionScheduleStatus. + + ' operationId: execution_schedule.count parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: configurationId - in: query - description: Configuration identifier - required: false - schema: - pattern: ^[\w.-]{4,64}$ - type: string - example: aa97b177-9383-4934-8543-0f91a7a0283a - - name: status - in: query - description: Execution Schedule status - required: false - schema: - type: string - enum: - - ACTIVE - - INACTIVE - example: ACTIVE + - $ref: '#/components/parameters/AiresourceGroupHeader' + - $ref: '#/components/parameters/AiqueryConfigurationId' + - $ref: '#/components/parameters/AiqueryExecutionScheduleStatus' responses: '200': description: Number of execution schedules @@ -1842,17 +963,15 @@ paths: schema: type: integer '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/AiBadRequest' /lm/meta: get: tags: - Meta summary: Meta information about API - description: Meta information about an implementation of AI API, describing its capabilities, limits and extensions + description: + Meta information about an implementation of AI API, describing + its capabilities, limits and extensions operationId: meta.get responses: '200': @@ -1860,167 +979,101 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Capabilities' + $ref: '#/components/schemas/MetaCapabilities' '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/MetaNotFound' /lm/metrics: get: + summary: 'Get metrics according to specified filter conditions. + + ' + description: + "Retrieve metrics, labels, or tags according to filter conditions.\ + \ \nOne query parameter is mandatory, either execution ID or filter. \nUse\ + \ up to 10 execution IDs in a query parameter.\n" tags: - Metrics - summary: | - Get metrics according to specified filter conditions. - description: "Retrieve metrics, labels, or tags according to filter conditions. \nOne query parameter is mandatory, either execution ID or filter. \nUse up to 10 execution IDs in a query parameter.\n" - operationId: metrics.find parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: $filter - in: query - description: Filter parameter allows filtering of metric resource using ExecutionId(s). User can only use in, eq operators in filter expression. - required: false - deprecated: true - schema: - type: string - example: executionId eq 'aa97b177-9383-4934-8543-0f91b7a0283a' - - name: executionIds - in: query - description: executionIds parameter allows filtering of metric resource using single or multiple ExecutionId(s). - required: false - style: form - explode: false - schema: - $ref: '#/components/schemas/StringArray' - example: executionIds=aa97b177-9383-4934-8543-0f91b7a0283a,aa97b177-9383-4934-8543-0f91b7a0283b - - name: $select - in: query - description: returns only the resources that the client explicitly requests. User can also pass * as a value for $select, which will behave same as that of not passing $select query param. - required: false - style: form - explode: false - schema: - $ref: '#/components/schemas/metricSelectorPermissibleValues' - examples: - selectAll: - value: $select=* - selectSpecific: - value: $select=metrics,customInfo + - $ref: '#/components/parameters/TrcktrackingResourceGroupHeader' + - $ref: '#/components/parameters/TrckqueryFilter' + - $ref: '#/components/parameters/TrckexecutionIds' + - $ref: '#/components/parameters/TrckmetricAttributeSelector' responses: '200': - description: List of tracking metadata, where each item includes metrics, labels, tags and customInfo. If $select query parameter is specified, each item will include only the resources specified in $select. content: application/json: schema: - $ref: '#/components/schemas/GetMetricResourceList' + $ref: '#/components/schemas/TrckGetMetricResourceList' + description: + List of tracking metadata, where each item includes metrics, + labels, tags and customInfo. If $select query parameter is specified, + each item will include only the resources specified in $select. '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400_1' + $ref: '#/components/responses/TrckBadRequest' '501': - description: Operation is not Supported. - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400_1' - delete: - tags: - - Metrics - summary: Delete metrics, tags, or labels - description: Delete metrics, tags, or labels associated with an execution. - operationId: metrics.delete - parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string - - name: executionId - in: query - description: The Id of an execution - required: true - schema: - $ref: '#/components/schemas/ExecutionId_2' - responses: - '200': - description: Metric Resource was successfully deleted - content: - application/json: - schema: - $ref: '#/components/schemas/DeleteMetricsResponse' - '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400_1' + $ref: '#/components/responses/TrckNotImplemented' + operationId: metrics.find patch: - tags: - - Metrics summary: Create or update metrics, tags, or labels - description: | - Update or create metrics, tags, or labels associated with an execution. - operationId: metrics.patch + description: + 'Update or create metrics, tags, or labels associated with an execution. + + ' parameters: - - name: AI-Resource-Group - in: header - description: Specify a resource group id - required: true - schema: - type: string + - $ref: '#/components/parameters/TrcktrackingResourceGroupHeader' requestBody: content: application/merge-patch+json: schema: - $ref: '#/components/schemas/MetricResource' + $ref: '#/components/schemas/TrckMetricResource' required: true + tags: + - Metrics responses: '204': description: Metrics was successfully updated/created '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400_1' + $ref: '#/components/responses/TrckBadRequest' '413': - description: request entity is larger than limits defined by server. + $ref: '#/components/responses/TrckPayloadTooLarge' + operationId: metrics.patch + delete: + summary: Delete metrics, tags, or labels + description: Delete metrics, tags, or labels associated with an execution. + parameters: + - $ref: '#/components/parameters/TrcktrackingResourceGroupHeader' + - $ref: '#/components/parameters/TrckexecutionId' + tags: + - Metrics + responses: + '200': content: application/json: schema: - $ref: '#/components/schemas/inline_response_400_1' + $ref: '#/components/schemas/TrckDeleteMetricsResponse' + description: Metric Resource was successfully deleted + '404': + $ref: '#/components/responses/TrckNotFound' + operationId: metrics.delete /analytics/kpis: get: tags: - KPI + parameters: + - $ref: '#/components/parameters/KpiquerySelect' summary: Get KPIs - description: "Retrieve the number of executions, artifacts, and deployments \nfor each resource group, scenario, and executable. The columns to be returned can be specified in a query parameter.\n" + description: + "Retrieve the number of executions, artifacts, and deployments\ + \ \nfor each resource group, scenario, and executable. The columns to be returned\ + \ can be specified in a query parameter.\n" operationId: kpi.get - parameters: - - name: $select - in: query - description: Columns to select - required: false - style: form - explode: false - schema: - $ref: '#/components/schemas/ArrayOfColumnNames' responses: '200': description: KPIs content: application/json: schema: - $ref: '#/components/schemas/ResultSet' + $ref: '#/components/schemas/KpiResultSet' examples: example-1: value: @@ -2035,97 +1088,36 @@ paths: - 30 - 3 '400': - description: Invalid request - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/KpiInvalidRequest' '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/KpiNotFound' '429': - description: Too many requests - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400' + $ref: '#/components/responses/KpiTooManyRequests' /lm/dataset/files/{path}: - get: - tags: - - File - summary: Download file - description: Endpoint for downloading file. The path must point to an individual file. - operationId: file.download - responses: - '200': - description: OK - headers: - X-Content-Type-Options: - description: as per SEC-228 value should always be "nosniff" - required: true - schema: - type: string - Content-Security-Policy: - description: as per SEC-228 value should always be "default-src 'none'; sandbox" - required: true - schema: - type: string - Content-Disposition: - description: as per SEC-228 value should always be "attachment" - required: true - schema: - type: string - content: - application/octet-stream: - schema: - type: string - format: binary - '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400_2' - example: - error: - code: '03021655' - message: Bad request encountered. Please try again with possible-solution-here. - target: /url/path - requestId: 9832bf934f3743v3948v3 - details: - - code: '01041211' - message: Optional nested error message. - '404': - description: The specified resource was not found - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400_2' - example: - error: - code: '03021655' - message: The resource you requested was not found. Please try again with possible-solution-here. - target: /url/path - requestId: 9832bf934f3743v3948v3 - details: - - code: '01041211' - message: Optional nested error message. + parameters: + - $ref: '#/components/parameters/DSetpath' + - $ref: '#/components/parameters/DSetresourceGroupHeader' put: tags: - File summary: Upload file (size <= 100Mb) - description: "Endpoint for uploading file. The maximum file size depends on the actual implementation \nbut must not exceed 100MB. The actual file size limit can be obtained by querying \nthe AI API Runtime Capabilities Endpoint and checking the limits in the section of the `fileUpload` extension.\n\nPath cannot be a prefix, it must be a path to an object.\nClients may group the objects in any manner they choose by specifying path prefixes.\n\nAllowed mime-types will be decided by the implementation.\nContent-Type header can be set to \"application/octet-stream\" but the implementation is responsible \nfor detecting the actual mime type and checking against the allowed list of mime types. \nFor security reasons, implementations cannot trust the mime type sent by the client.\n\nExample URLs: \n/files/dar/schemas/schema.json \n/files/icr/datasets/training/20201001/20201001-01.csv \n/files/icr/datasets/training/20201001/20201001-02.csv \n/files/mask-detection/training/mask-detection-20210301.tar.gz" operationId: file.upload + description: + "Endpoint for uploading file. The maximum file size depends on\ + \ the actual implementation \nbut must not exceed 100MB. The actual file size\ + \ limit can be obtained by querying \nthe AI API Runtime Capabilities Endpoint\ + \ and checking the limits in the section of the `fileUpload` extension.\n\n\ + Path cannot be a prefix, it must be a path to an object.\nClients may group\ + \ the objects in any manner they choose by specifying path prefixes.\n\nAllowed\ + \ mime-types will be decided by the implementation.\nContent-Type header can\ + \ be set to \"application/octet-stream\" but the implementation is responsible\ + \ \nfor detecting the actual mime type and checking against the allowed list\ + \ of mime types. \nFor security reasons, implementations cannot trust the\ + \ mime type sent by the client.\n\nExample URLs: \n/files/dar/schemas/schema.json\ + \ \n/files/icr/datasets/training/20201001/20201001-01.csv \n/files/icr/datasets/training/20201001/20201001-02.csv\ + \ \n/files/mask-detection/training/mask-detection-20210301.tar.gz" parameters: - - name: overwrite - in: query - description: If true, then file is overwritten. Default is false. - required: false - schema: - type: boolean + - $ref: '#/components/parameters/DSetoverwrite' requestBody: description: Body of the file upload request content: @@ -2134,260 +1126,142 @@ paths: type: string responses: '201': - description: Created - headers: - Location: - description: URL of the newly created file. This URL can be passed on to the artifact API to register this file. - schema: - $ref: '#/components/schemas/Url' - content: - application/json: - schema: - $ref: '#/components/schemas/FileCreationResponse' + $ref: '#/components/responses/DSetFileCreated' '400': - description: The specification of the resource was incorrect - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400_2' - example: - error: - code: '03021655' - message: Bad request encountered. Please try again with possible-solution-here. - target: /url/path - requestId: 9832bf934f3743v3948v3 - details: - - code: '01041211' - message: Optional nested error message. + $ref: '#/components/responses/DSetBadRequest' '409': - description: The specified file already exists and cannot be overwritten. - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400_2' - example: - error: - code: '03021655' - message: The specified file already exists and cannot be overwritten. Please try again with possible-solution-here. - target: /url/path - requestId: 9832bf934f3743v3948v3 - details: - - code: '01041211' - message: Optional nested error message. + $ref: '#/components/responses/DSetConflict' '413': - description: The file size exceeds the supported limit. - content: - application/json: - schema: - $ref: '#/components/schemas/inline_response_400_2' - example: - error: - code: '03021655' - message: The file size exceeds the supported limit. - target: /url/path - requestId: 9832bf934f3743v3948v3 - details: - - code: '01041211' - message: Optional nested error message. + $ref: '#/components/responses/DSetRequestTooLarge' delete: tags: - File summary: Delete file - description: Delete the file specified by the path parameter. operationId: file.delete + description: Delete the file specified by the path parameter. responses: '204': - description: The request was processed successfully. + $ref: '#/components/responses/DSetSuccess' + '400': + $ref: '#/components/responses/DSetBadRequest' + '404': + $ref: '#/components/responses/DSetNotFound' + get: + tags: + - File + summary: Download file + operationId: file.download + description: + Endpoint for downloading file. The path must point to an individual + file. + responses: + '200': + $ref: '#/components/responses/DSetFileContent' '400': - description: The specification of the resource was incorrect + $ref: '#/components/responses/DSetBadRequest' + '404': + $ref: '#/components/responses/DSetNotFound' + /admin/objectStoreSecrets: + post: + tags: + - Object Store Secret + summary: Create a secret + description: + 'Create a secret based on the configuration in the request body + + ' + operationId: kubesubmit.v4.object_store_secrets.create + parameters: + - $ref: '#/components/parameters/BckndtokenHeader' + - $ref: '#/components/parameters/Bckndai-resource-group-default' + requestBody: + required: true + content: + application/json: + schema: + $ref: '#/components/schemas/BckndobjectStoreSecretWithSensitiveDataRequestForPostCall' + responses: + '202': + description: + 'The request to create a k8s secret based on the given configuration + has been accepted. + + ' content: application/json: schema: - $ref: '#/components/schemas/inline_response_400_2' - example: - error: - code: '03021655' - message: Bad request encountered. Please try again with possible-solution-here. - target: /url/path - requestId: 9832bf934f3743v3948v3 - details: - - code: '01041211' - message: Optional nested error message. - '404': - description: The specified resource was not found + $ref: '#/components/schemas/BckndobjectStoreSecretCreationResponse' + '400': + description: + 'One of the following failure cases has occurred: