Skip to content

feat(endpoints): add support for SDK endpoint type#362

Merged
Dominik Kadera (dominikkadera) merged 4 commits into
masterfrom
dka/endpoints
Jul 1, 2026
Merged

feat(endpoints): add support for SDK endpoint type#362
Dominik Kadera (dominikkadera) merged 4 commits into
masterfrom
dka/endpoints

Conversation

@dominikkadera

Copy link
Copy Markdown
Member

Hey,

I'm introducing support for the SDK to be able to work with the Endpoints Entity. It mimics how Modules and RPCs are done, and basically follows this pattern and adds the Endpoints as another top-level entry of the App Tree.

The code counts with situation when the Endpoints are not yet enabled on the Environments, as it's still a feature to come.

Copilot AI review requested due to automatic review settings July 1, 2026 08:05
@dominikkadera Dominik Kadera (dominikkadera) requested a review from a team as a code owner July 1, 2026 08:05
@github-actions

github-actions Bot commented Jul 1, 2026

Copy link
Copy Markdown
Messages
Your PR title & description are valid

Generated 1. 7. 2026 13:26:27 GMT+2 for 97039d3

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds first-class support for the SDK “endpoint” component type across both Online Mode (tree view + commands + code save/load) and Local Development (manifest schema/types, clone/pull/deploy, checksums/migrations), including special handling for environments where the endpoints feature is not yet enabled.

Changes:

  • Introduces endpoint as a new AppComponentType, wires it into tree providers, commands, API path mapping, and import/export flows.
  • Adds endpoint-specific metadata and code sections, including metadata-backed endpoint context (stored as a component metadata field, edited as a markdown source file).
  • Extends Local Dev plumbing (schema/types/migrations/checksums/deploy ordering/reference validation) to include endpoints and their connection references (attachedAccounts).

Reviewed changes

Copilot reviewed 44 out of 56 changed files in this pull request and generated 9 comments.

Show a summary per file
File Description
syntaxes/local-development/schemas/makecomapp.schema.json Extends makecomapp JSON schema for endpoint metadata, mapping keys, and endpoint code file keys.
src/Validator.js Adds endpoint ID validation rule for Online Mode creation flow.
src/types/get-component-api-response.types.ts Adds endpoint API response types and includes them in component unions.
src/types/component-types.types.ts Introduces EndpointAnnotations type.
src/types/app-component-type.types.ts Adds endpoint to AppComponentType and AppComponentTypes.
src/services/component-types-order.ts Places endpoint into deploy ordering.
src/services/component-code-def.ts Adds endpoint code definitions + metadata-backed code helpers.
src/services/component-code-def.test.ts Tests endpoint code definitions and deploy ordering behavior.
src/providers/ParametersProvider.ts Adds endpoint inputParameters section support for parameter completion.
src/providers/OpensourceProvider.js Adds endpoints group/items in open-source tree and tolerant listing when feature disabled.
src/providers/AppsProvider.js Adds endpoints group/items in apps tree and tolerant listing when feature disabled.
src/local-development/types/makecomapp.types.ts Adds endpoint metadata fields (annotations, attachedAccounts) to local-dev manifest types.
src/local-development/types/code-type.types.ts Adds endpoint code types and API code type entries (inputParameters, outputParameters, context).
src/local-development/types/code-def.types.ts Adds checksumKey and metadataBacked to support endpoint section quirks and context behavior.
src/local-development/types/checksum.types.ts Adds optional endpoints checksums collection.
src/local-development/remote-components-summary.ts Pulls endpoint metadata from API details and translates attached account refs to local IDs.
src/local-development/makecomappjson.ts Validates endpoint attachedAccounts references on manifest updates.
src/local-development/makecomappjson-migrations.ts Backfills missing component-type keys (incl. endpoint) for backward compatibility.
src/local-development/makecomappjson-migrations.test.ts Tests migrations for legacy manifests missing endpoint keys.
src/local-development/index.ts Registers new local-dev “create endpoint” command.
src/local-development/helpers/validate-id.ts Adds local ID validation rule for endpoints.
src/local-development/helpers/validate-id.test.ts Tests endpoint ID validity rules.
src/local-development/helpers/validate-component-references.ts Validates endpoint attachedAccounts mapping references.
src/local-development/helpers/validate-component-references.test.ts Tests validation for endpoint attached account references.
src/local-development/helpers/origin-checksum.ts Supports endpoint checksum arrays + bridges checksum keys for endpoint sections.
src/local-development/helpers/makecomapp-json-file-class.ts Ensures endpoint exists in default idMapping shape.
src/local-development/helpers/get-empty-code-content.ts Adds empty templates for endpoint input/output params and context.
src/local-development/helpers/component-id-mapping-helper.ts Initializes endpoint mapping list in helper default shape.
src/local-development/helpers/api-url.ts Enables endpoint component API URL composition.
src/local-development/find-code-by-filepath.ts Updates deploy ordering used when deploying from file paths.
src/local-development/deploy-metadata.ts Deploys endpoint metadata (description/annotations/attachedAccounts) and translates refs.
src/local-development/deploy-metadata.test.ts Tests endpoint metadata deploy body mapping and attachedAccounts translation.
src/local-development/create-remote-component.ts Supports endpoint creation and strips unsupported creation fields.
src/local-development/create-local-endpoint.ts Adds command to create local endpoint skeleton in Local Dev.
src/local-development/code-pull-deploy.ts Adds metadata-backed code pull/deploy behavior (endpoint context).
src/local-development/clone.ts Includes endpoint keys in cloned manifest scaffolding.
src/local-development/align-components-mapping.ts Includes endpoints in mapping alignment + updates processing order.
src/local-development/align-components-mapping.test.ts Updates fixtures for endpoint idMapping/components presence.
src/extension.ts Registers Online Mode EndpointCommands.
src/Core.ts Adds suppressErrorDialog option to rpGet and maps endpoint path in v2.
src/commands/EndpointCommands.ts New Online Mode endpoint commands (create/edit/publish/private/annotations/connections).
src/commands/CoreCommands.ts Adds generic metadata-backed save/load behavior for codes like endpoint context.
src/commands/AppCommands.js Extends export/import zip flows to include endpoints + metadata fields and ref remapping.
package.json Contributes endpoint commands/menus and adds file associations for endpoint parameter schemas.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/local-development/makecomappjson.ts
Comment thread src/local-development/create-local-endpoint.ts Outdated
Comment thread src/commands/EndpointCommands.ts
Comment thread src/commands/EndpointCommands.ts
Comment thread src/commands/EndpointCommands.ts
Comment thread src/commands/EndpointCommands.ts
Comment thread src/commands/EndpointCommands.ts
Comment thread src/commands/EndpointCommands.ts
Comment thread src/commands/EndpointCommands.ts Outdated
@dominikkadera Dominik Kadera (dominikkadera) added the no-production-impact This PR is not impacting production and does not require a JIRA ticket label Jul 1, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 46 out of 58 changed files in this pull request and generated 2 comments.

Comment thread src/commands/EndpointCommands.ts Outdated
Comment thread src/services/component-code-def.test.ts
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Comment thread src/local-development/helpers/makecomapp-json-file-class.ts
Comment thread src/services/component-types-order.ts
Comment thread src/providers/AppsProvider.js

@ma-zal Martin Zaloudek (ma-zal) left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Merge and release based on your decision.

@dominikkadera Dominik Kadera (dominikkadera) merged commit c8a2687 into master Jul 1, 2026
4 checks passed
@dominikkadera Dominik Kadera (dominikkadera) deleted the dka/endpoints branch July 1, 2026 12:02
@make-release make-release Bot mentioned this pull request Jul 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

no-production-impact This PR is not impacting production and does not require a JIRA ticket

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants