@revisium/core 2.8.0 → 2.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -3
- package/dist/package.json +35 -14
- package/dist/prisma/migrations/20260222210834_add_oauth/migration.sql +110 -0
- package/dist/prisma/schema.prisma +72 -0
- package/dist/src/__generated__/client/browser.d.ts +4 -0
- package/dist/src/__generated__/client/browser.js.map +1 -1
- package/dist/src/__generated__/client/client.d.ts +9 -5
- package/dist/src/__generated__/client/client.js.map +1 -1
- package/dist/src/__generated__/client/commonInputTypes.d.ts +49 -3
- package/dist/src/__generated__/client/enums.js +2 -2
- package/dist/src/__generated__/client/enums.js.map +1 -1
- package/dist/src/__generated__/client/internal/class.d.ts +15 -3
- package/dist/src/__generated__/client/internal/class.js +19 -22
- package/dist/src/__generated__/client/internal/class.js.map +1 -1
- package/dist/src/__generated__/client/internal/prismaNamespace.d.ts +394 -10
- package/dist/src/__generated__/client/internal/prismaNamespace.js +117 -41
- package/dist/src/__generated__/client/internal/prismaNamespace.js.map +1 -1
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.d.ts +87 -4
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js +112 -37
- package/dist/src/__generated__/client/internal/prismaNamespaceBrowser.js.map +1 -1
- package/dist/src/__generated__/client/models/Branch.d.ts +48 -48
- package/dist/src/__generated__/client/models/Endpoint.d.ts +54 -54
- package/dist/src/__generated__/client/models/EndpointVersion.d.ts +35 -35
- package/dist/src/__generated__/client/models/Instance.d.ts +25 -25
- package/dist/src/__generated__/client/models/OAuthAccessToken.d.ts +777 -0
- package/dist/src/__generated__/client/models/OAuthAccessToken.js +3 -0
- package/dist/src/__generated__/client/models/OAuthAccessToken.js.map +1 -0
- package/dist/src/__generated__/client/models/OAuthAuthorizationCode.d.ts +862 -0
- package/dist/src/__generated__/client/models/OAuthAuthorizationCode.js +3 -0
- package/dist/src/__generated__/client/models/OAuthAuthorizationCode.js.map +1 -0
- package/dist/src/__generated__/client/models/OAuthClient.d.ts +748 -0
- package/dist/src/__generated__/client/models/OAuthClient.js +3 -0
- package/dist/src/__generated__/client/models/OAuthClient.js.map +1 -0
- package/dist/src/__generated__/client/models/OAuthRefreshToken.d.ts +818 -0
- package/dist/src/__generated__/client/models/OAuthRefreshToken.js +3 -0
- package/dist/src/__generated__/client/models/OAuthRefreshToken.js.map +1 -0
- package/dist/src/__generated__/client/models/Organization.d.ts +30 -30
- package/dist/src/__generated__/client/models/Permission.d.ts +47 -47
- package/dist/src/__generated__/client/models/Project.d.ts +54 -54
- package/dist/src/__generated__/client/models/Revision.d.ts +75 -75
- package/dist/src/__generated__/client/models/Role.d.ts +51 -51
- package/dist/src/__generated__/client/models/Row.d.ts +77 -77
- package/dist/src/__generated__/client/models/Table.d.ts +58 -58
- package/dist/src/__generated__/client/models/User.d.ts +422 -62
- package/dist/src/__generated__/client/models/UserOrganization.d.ts +49 -49
- package/dist/src/__generated__/client/models/UserProject.d.ts +49 -49
- package/dist/src/__generated__/client/models.d.ts +4 -0
- package/dist/src/__generated__/client/sql/$DbEnums.d.ts +2 -2
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.d.ts +9 -2
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/countRowChangesBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.d.ts +7 -2
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/countTableDiffsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.d.ts +11 -2
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/getRowChangesPaginatedBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.d.ts +7 -2
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/getRowChangesStatsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.d.ts +9 -2
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/getTableDiffsPaginatedBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.d.ts +6 -2
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/getTableDiffsStatsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.d.ts +6 -2
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/hasRowDiffsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.d.ts +1 -1
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js +1 -1
- package/dist/src/__generated__/client/sql/hasTableDiffsBetweenRevisions.js.map +1 -1
- package/dist/src/__generated__/client/sql.d.ts +9 -9
- package/dist/src/__generated__/client/sql.js.map +1 -1
- package/dist/src/api/graphql-api/branch/model/branch.model.d.ts +6 -5
- package/dist/src/api/graphql-api/branch/model/branch.model.js +5 -5
- package/dist/src/api/graphql-api/branch/model/branch.model.js.map +1 -1
- package/dist/src/api/graphql-api/branch/model/parent-branch.model.d.ts +3 -2
- package/dist/src/api/graphql-api/branch/model/parent-branch.model.js +2 -2
- package/dist/src/api/graphql-api/branch/model/parent-branch.model.js.map +1 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.d.ts +2 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js +1 -1
- package/dist/src/api/graphql-api/endpoint/model/endpoint.model.js.map +1 -1
- package/dist/src/api/graphql-api/project/model/project.model.d.ts +3 -2
- package/dist/src/api/graphql-api/project/model/project.model.js +2 -2
- package/dist/src/api/graphql-api/project/model/project.model.js.map +1 -1
- package/dist/src/api/graphql-api/revision/model/child-branch.model.d.ts +3 -2
- package/dist/src/api/graphql-api/revision/model/child-branch.model.js +2 -2
- package/dist/src/api/graphql-api/revision/model/child-branch.model.js.map +1 -1
- package/dist/src/api/graphql-api/revision/model/revision.model.d.ts +4 -3
- package/dist/src/api/graphql-api/revision/model/revision.model.js +3 -3
- package/dist/src/api/graphql-api/revision/model/revision.model.js.map +1 -1
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.d.ts +2 -0
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.js +8 -0
- package/dist/src/api/graphql-api/row/inputs/get-rows.input.js.map +1 -1
- package/dist/src/api/graphql-api/row/model/row.model.d.ts +3 -2
- package/dist/src/api/graphql-api/row/model/row.model.js +2 -2
- package/dist/src/api/graphql-api/row/model/row.model.js.map +1 -1
- package/dist/src/api/graphql-api/share/model/relation.type.d.ts +1 -0
- package/dist/src/api/graphql-api/share/model/relation.type.js +3 -0
- package/dist/src/api/graphql-api/share/model/relation.type.js.map +1 -0
- package/dist/src/api/graphql-api/table/model/table.model.d.ts +3 -2
- package/dist/src/api/graphql-api/table/model/table.model.js +2 -2
- package/dist/src/api/graphql-api/table/model/table.model.js.map +1 -1
- package/dist/src/api/graphql-api/views/input/update-table-views.input.d.ts +1 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.js +4 -0
- package/dist/src/api/graphql-api/views/input/update-table-views.input.js.map +1 -1
- package/dist/src/api/graphql-api/views/model/view-column.model.d.ts +1 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.js +4 -0
- package/dist/src/api/graphql-api/views/model/view-column.model.js.map +1 -1
- package/dist/src/api/mcp-api/mcp-auth.service.d.ts +21 -0
- package/dist/src/api/mcp-api/mcp-auth.service.js +82 -0
- package/dist/src/api/mcp-api/mcp-auth.service.js.map +1 -0
- package/dist/src/api/mcp-api/mcp-server.service.d.ts +5 -8
- package/dist/src/api/mcp-api/mcp-server.service.js +50 -86
- package/dist/src/api/mcp-api/mcp-server.service.js.map +1 -1
- package/dist/src/api/mcp-api/mcp.controller.d.ts +7 -4
- package/dist/src/api/mcp-api/mcp.controller.js +74 -78
- package/dist/src/api/mcp-api/mcp.controller.js.map +1 -1
- package/dist/src/api/mcp-api/mcp.module.js +4 -2
- package/dist/src/api/mcp-api/mcp.module.js.map +1 -1
- package/dist/src/api/mcp-api/resources/schema.resource.js +6 -12
- package/dist/src/api/mcp-api/resources/schema.resource.js.map +1 -1
- package/dist/src/api/mcp-api/tools/branch.tools.js +116 -12
- package/dist/src/api/mcp-api/tools/branch.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/endpoint.tools.js +12 -18
- package/dist/src/api/mcp-api/tools/endpoint.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/file.tools.js +2 -3
- package/dist/src/api/mcp-api/tools/file.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/index.d.ts +0 -1
- package/dist/src/api/mcp-api/tools/index.js +1 -3
- package/dist/src/api/mcp-api/tools/index.js.map +1 -1
- package/dist/src/api/mcp-api/tools/migration.tools.js +4 -6
- package/dist/src/api/mcp-api/tools/migration.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/organization.tools.js +5 -7
- package/dist/src/api/mcp-api/tools/organization.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/project.tools.js +39 -8
- package/dist/src/api/mcp-api/tools/project.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/revision-changes.tools.js +6 -9
- package/dist/src/api/mcp-api/tools/revision-changes.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/revision.tools.js +27 -6
- package/dist/src/api/mcp-api/tools/revision.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/row.tools.d.ts +39 -0
- package/dist/src/api/mcp-api/tools/row.tools.js +129 -34
- package/dist/src/api/mcp-api/tools/row.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/table.tools.js +55 -28
- package/dist/src/api/mcp-api/tools/table.tools.js.map +1 -1
- package/dist/src/api/mcp-api/tools/user.tools.js +3 -5
- package/dist/src/api/mcp-api/tools/user.tools.js.map +1 -1
- package/dist/src/api/mcp-api/types.d.ts +1 -5
- package/dist/src/features/branch/commands/handlers/delete-branch.handler.js +1 -2
- package/dist/src/features/branch/commands/handlers/delete-branch.handler.js.map +1 -1
- package/dist/src/features/branch/quieries/handlers/get-branch.handler.js +1 -4
- package/dist/src/features/branch/quieries/handlers/get-branch.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js +2 -2
- package/dist/src/features/draft/commands/handlers/api-create-revision.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/create-rows.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/patch-rows.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/internal-rename-row.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/transactional/validate-schema.handler.js +4 -1
- package/dist/src/features/draft/commands/handlers/transactional/validate-schema.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/update-rows.handler.js.map +1 -1
- package/dist/src/features/draft/commands/handlers/update-table.handler.js +4 -1
- package/dist/src/features/draft/commands/handlers/update-table.handler.js.map +1 -1
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-recompute-has-changes.handler.js +6 -5
- package/dist/src/features/draft-revision/commands/handlers/draft-revision-recompute-has-changes.handler.js.map +1 -1
- package/dist/src/features/oauth/oauth-authorization.service.d.ts +22 -0
- package/dist/src/features/oauth/oauth-authorization.service.js +78 -0
- package/dist/src/features/oauth/oauth-authorization.service.js.map +1 -0
- package/dist/src/features/oauth/oauth-client.service.d.ts +25 -0
- package/dist/src/features/oauth/oauth-client.service.js +82 -0
- package/dist/src/features/oauth/oauth-client.service.js.map +1 -0
- package/dist/src/features/oauth/oauth-token.service.d.ts +27 -0
- package/dist/src/features/oauth/oauth-token.service.js +190 -0
- package/dist/src/features/oauth/oauth-token.service.js.map +1 -0
- package/dist/src/features/oauth/oauth.controller.d.ts +88 -0
- package/dist/src/features/oauth/oauth.controller.js +285 -0
- package/dist/src/features/oauth/oauth.controller.js.map +1 -0
- package/dist/src/features/oauth/oauth.module.d.ts +2 -0
- package/dist/src/features/oauth/oauth.module.js +29 -0
- package/dist/src/features/oauth/oauth.module.js.map +1 -0
- package/dist/src/features/plugin/file/file.plugin.js.map +1 -1
- package/dist/src/features/plugin/plugin.service.js.map +1 -1
- package/dist/src/features/plugin/row-created-at/row-created-at.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-created-id/row-created-id.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-hash/row-hash.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-id/row-id.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-published-at/row-published-at.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-schema-hash/row-schema-hash.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-updated-at/row-updated-at.plugin.js.map +1 -1
- package/dist/src/features/plugin/row-version-id/row-version-id.plugin.js.map +1 -1
- package/dist/src/features/project/commands/handlers/delete-project.handler.js +1 -4
- package/dist/src/features/project/commands/handlers/delete-project.handler.js.map +1 -1
- package/dist/src/features/project/commands/handlers/update-project.handler.js +1 -4
- package/dist/src/features/project/commands/handlers/update-project.handler.js.map +1 -1
- package/dist/src/features/project/queries/handlers/get-project.handler.js +1 -4
- package/dist/src/features/project/queries/handlers/get-project.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/get-rows.handler.d.ts +0 -2
- package/dist/src/features/row/queries/handlers/get-rows.handler.js +7 -13
- package/dist/src/features/row/queries/handlers/get-rows.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-count-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/row/queries/handlers/resolve-row-foreign-keys-to.handler.js.map +1 -1
- package/dist/src/features/row/services/system-column-mapping.service.js +5 -1
- package/dist/src/features/row/services/system-column-mapping.service.js.map +1 -1
- package/dist/src/features/row/utils/get-keyset-pagination.d.ts +17 -0
- package/dist/src/features/row/utils/get-keyset-pagination.js +61 -0
- package/dist/src/features/row/utils/get-keyset-pagination.js.map +1 -0
- package/dist/src/features/row/utils/get-rows-sql.d.ts +2 -1
- package/dist/src/features/row/utils/get-rows-sql.js +76 -21
- package/dist/src/features/row/utils/get-rows-sql.js.map +1 -1
- package/dist/src/features/share/schema/table-views-schema.js +1 -0
- package/dist/src/features/share/schema/table-views-schema.js.map +1 -1
- package/dist/src/features/share/utils/validateUrlLikeId/reserved-names.d.ts +1 -1
- package/dist/src/features/share/utils/validateUrlLikeId/reserved-names.js +3 -0
- package/dist/src/features/share/utils/validateUrlLikeId/reserved-names.js.map +1 -1
- package/dist/src/features/share/views-migration.service.js.map +1 -1
- package/dist/src/features/sub-schema/queries/handlers/get-sub-schema-items.handler.js.map +1 -1
- package/dist/src/features/views/services/view-validation.service.js +10 -1
- package/dist/src/features/views/services/view-validation.service.js.map +1 -1
- package/dist/src/features/views/types/views.types.d.ts +1 -0
- package/dist/src/features/views/types/views.types.js.map +1 -1
- package/dist/src/infrastructure/clean/clean.service.d.ts +1 -0
- package/dist/src/infrastructure/clean/clean.service.js +23 -0
- package/dist/src/infrastructure/clean/clean.service.js.map +1 -1
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-access-tokens.handler.d.ts +8 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-access-tokens.handler.js +33 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-access-tokens.handler.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-codes.handler.d.ts +8 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-codes.handler.js +33 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-codes.handler.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-refresh-tokens.handler.d.ts +8 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-refresh-tokens.handler.js +33 -0
- package/dist/src/infrastructure/clean/commands/handlers/clean-oauth-expired-refresh-tokens.handler.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/handlers/index.d.ts +4 -1
- package/dist/src/infrastructure/clean/commands/handlers/index.js +10 -1
- package/dist/src/infrastructure/clean/commands/handlers/index.js.map +1 -1
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-access-tokens.command.d.ts +2 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-access-tokens.command.js +7 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-access-tokens.command.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-codes.command.d.ts +2 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-codes.command.js +7 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-codes.command.js.map +1 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-refresh-tokens.command.d.ts +2 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-refresh-tokens.command.js +7 -0
- package/dist/src/infrastructure/clean/commands/impl/clean-oauth-expired-refresh-tokens.command.js.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +35 -14
- package/dist/src/api/mcp-api/mcp-session.service.d.ts +0 -19
- package/dist/src/api/mcp-api/mcp-session.service.js +0 -57
- package/dist/src/api/mcp-api/mcp-session.service.js.map +0 -1
- package/dist/src/api/mcp-api/tools/auth.tools.d.ts +0 -12
- package/dist/src/api/mcp-api/tools/auth.tools.js +0 -182
- package/dist/src/api/mcp-api/tools/auth.tools.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-rows.input.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/row/inputs/get-rows.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AAGZ;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;AAGb;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CACd;AAGZ;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACb;yBApBF,cAAc;IAD1B,IAAA,mBAAS,GAAE;GACC,cAAc,CAqB1B;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAY;
|
|
1
|
+
{"version":3,"file":"get-rows.input.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/row/inputs/get-rows.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAwD;AACxD,6DAA4D;AAC5D,6DAAkD;AAClD,qDAA+C;AAGlC,QAAA,cAAc,GAAG,MAAM,CAAC,WAAW,CAC9C,iCAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE,IAAI,CAAC,CAAC,CACT,CAAC;AAEtC,IAAY,YAMX;AAND,WAAY,YAAY;IACtB,uCAAuB,CAAA;IACvB,yBAAS,CAAA;IACT,2CAA2B,CAAA;IAC3B,uCAAuB,CAAA;IACvB,6BAAa,CAAA;AACf,CAAC,EANW,YAAY,4BAAZ,YAAY,QAMvB;AAED,IAAY,aAMX;AAND,WAAY,aAAa;IACvB,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,gCAAe,CAAA;IACf,oCAAmB,CAAA;IACnB,wCAAuB,CAAA;AACzB,CAAC,EANW,aAAa,6BAAb,aAAa,QAMxB;AAED,IAAY,oBAMX;AAND,WAAY,oBAAoB;IAC9B,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,mCAAW,CAAA;IACX,uCAAe,CAAA;IACf,qCAAa,CAAA;AACf,CAAC,EANW,oBAAoB,oCAApB,oBAAoB,QAM/B;AAED,IAAY,UAKX;AALD,WAAY,UAAU;IACpB,6BAAe,CAAA;I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C;8BAClC,cAAc;+CAAC;AAG7B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACrC,UAAU;wCAAC;qBAhCP,UAAU;IADtB,IAAA,mBAAS,GAAE;GACC,UAAU,CAiCtB;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAY;CAkBxB,CAAA;AAlBY,oCAAY;AAEvB;IADC,IAAA,eAAK,GAAE;;gDACW;AAGnB;IADC,IAAA,eAAK,GAAE;;6CACQ;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;2CACH;AAGd;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CACX;AAGf;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CACvB;AAGpB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,UAAU,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;8BACpC,UAAU;2CAAC;uBAjBR,YAAY;IADxB,IAAA,mBAAS,GAAE;GACC,YAAY,CAkBxB"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Prisma } from '../../../../__generated__/client';
|
|
2
2
|
import { FormulaFieldErrorModel } from '../../../../api/graphql-api/row/model/formula-field-error.model';
|
|
3
3
|
import { RowsConnection } from '../../../../api/graphql-api/row/model/rows-connection.model';
|
|
4
|
+
import { Relation } from '../../../../api/graphql-api/share/model/relation.type';
|
|
4
5
|
export type RowModelContext = {
|
|
5
6
|
revisionId: string;
|
|
6
7
|
tableId: string;
|
|
@@ -15,8 +16,8 @@ export declare class RowModel {
|
|
|
15
16
|
readonly: boolean;
|
|
16
17
|
data: Prisma.JsonValue;
|
|
17
18
|
formulaErrors?: FormulaFieldErrorModel[];
|
|
18
|
-
rowForeignKeysTo: RowsConnection
|
|
19
|
+
rowForeignKeysTo: Relation<RowsConnection>;
|
|
19
20
|
countForeignKeysTo: number;
|
|
20
|
-
rowForeignKeysBy: RowsConnection
|
|
21
|
+
rowForeignKeysBy: Relation<RowsConnection>;
|
|
21
22
|
context: RowModelContext;
|
|
22
23
|
}
|
|
@@ -56,7 +56,7 @@ __decorate([
|
|
|
56
56
|
], RowModel.prototype, "formulaErrors", void 0);
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, graphql_1.Field)(() => rows_connection_model_1.RowsConnection),
|
|
59
|
-
__metadata("design:type",
|
|
59
|
+
__metadata("design:type", Object)
|
|
60
60
|
], RowModel.prototype, "rowForeignKeysTo", void 0);
|
|
61
61
|
__decorate([
|
|
62
62
|
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
@@ -64,7 +64,7 @@ __decorate([
|
|
|
64
64
|
], RowModel.prototype, "countForeignKeysTo", void 0);
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, graphql_1.Field)(() => rows_connection_model_1.RowsConnection),
|
|
67
|
-
__metadata("design:type",
|
|
67
|
+
__metadata("design:type", Object)
|
|
68
68
|
], RowModel.prototype, "rowForeignKeysBy", void 0);
|
|
69
69
|
exports.RowModel = RowModel = __decorate([
|
|
70
70
|
(0, graphql_1.ObjectType)()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"row.model.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/row/model/row.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,6DAAkD;AAClD,qDAAiE;AACjE,2EAAiG;AACjG,mEAAqF;
|
|
1
|
+
{"version":3,"file":"row.model.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/row/model/row.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,6DAAkD;AAClD,qDAAiE;AACjE,2EAAiG;AACjG,mEAAqF;AAS9E,IAAM,QAAQ,GAAd,MAAM,QAAQ;CAsCpB,CAAA;AAtCY,4BAAQ;AAEnB;IADC,IAAA,eAAK,GAAE;;2CACU;AAGlB;IADC,IAAA,eAAK,GAAE;;oCACG;AAGX;IADC,IAAA,eAAK,GAAE;;2CACU;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,kCAAgB,CAAC;8BACnB,IAAI;2CAAC;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,kCAAgB,CAAC;8BACnB,IAAI;2CAAC;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,kCAAgB,CAAC;8BACjB,IAAI;6CAAC;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;0CACH;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,8BAAY,CAAC;;sCACH;AAGvB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,CAAC,kDAAsB,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACjB;AAGzC;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sCAAc,CAAC;;kDACe;AAG3C;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;oDACU;AAG3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sCAAc,CAAC;;kDACe;mBAnChC,QAAQ;IADpB,IAAA,oBAAU,GAAE;GACA,QAAQ,CAsCpB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type Relation<T> = T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"relation.type.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/share/model/relation.type.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Prisma } from '../../../../__generated__/client';
|
|
2
2
|
import { RowsConnection } from '../../../../api/graphql-api/row/model/rows-connection.model';
|
|
3
3
|
import { TablesConnection } from '../../../../api/graphql-api/table/model/table-connection.model';
|
|
4
|
+
import { Relation } from '../../../../api/graphql-api/share/model/relation.type';
|
|
4
5
|
import { TableViewsDataModel } from '../../../../api/graphql-api/views/model/table-views-data.model';
|
|
5
6
|
export type TableModelContext = {
|
|
6
7
|
revisionId: string;
|
|
@@ -15,9 +16,9 @@ export declare class TableModel {
|
|
|
15
16
|
rows: RowsConnection;
|
|
16
17
|
count: number;
|
|
17
18
|
schema: Prisma.JsonValue;
|
|
18
|
-
foreignKeysTo: TablesConnection
|
|
19
|
+
foreignKeysTo: Relation<TablesConnection>;
|
|
19
20
|
countForeignKeysTo: number;
|
|
20
|
-
foreignKeysBy: TablesConnection
|
|
21
|
+
foreignKeysBy: Relation<TablesConnection>;
|
|
21
22
|
countForeignKeysBy: number;
|
|
22
23
|
views: TableViewsDataModel;
|
|
23
24
|
context: TableModelContext;
|
|
@@ -57,7 +57,7 @@ __decorate([
|
|
|
57
57
|
], TableModel.prototype, "schema", void 0);
|
|
58
58
|
__decorate([
|
|
59
59
|
(0, graphql_1.Field)(() => table_connection_model_1.TablesConnection),
|
|
60
|
-
__metadata("design:type",
|
|
60
|
+
__metadata("design:type", Object)
|
|
61
61
|
], TableModel.prototype, "foreignKeysTo", void 0);
|
|
62
62
|
__decorate([
|
|
63
63
|
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
@@ -65,7 +65,7 @@ __decorate([
|
|
|
65
65
|
], TableModel.prototype, "countForeignKeysTo", void 0);
|
|
66
66
|
__decorate([
|
|
67
67
|
(0, graphql_1.Field)(() => table_connection_model_1.TablesConnection),
|
|
68
|
-
__metadata("design:type",
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
69
|
], TableModel.prototype, "foreignKeysBy", void 0);
|
|
70
70
|
__decorate([
|
|
71
71
|
(0, graphql_1.Field)(() => graphql_1.Int),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.model.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/table/model/table.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,6DAAkD;AAClD,qDAAiE;AAEjE,iFAAqF;AACrF,qEAA0F;
|
|
1
|
+
{"version":3,"file":"table.model.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/table/model/table.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAyD;AACzD,6DAAkD;AAClD,qDAAiE;AAEjE,iFAAqF;AACrF,qEAA0F;AAE1F,qFAA6F;AAOtF,IAAM,UAAU,GAAhB,MAAM,UAAU;CA4CtB,CAAA;AA5CY,gCAAU;AAErB;IADC,IAAA,eAAK,GAAE;;6CACU;AAGlB;IADC,IAAA,eAAK,GAAE;;sCACG;AAGX;IADC,IAAA,eAAK,GAAE;;6CACU;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,kCAAgB,CAAC;8BACnB,IAAI;6CAAC;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,kCAAgB,CAAC;8BACnB,IAAI;6CAAC;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,OAAO,CAAC;;4CACH;AAGlB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,sCAAc,CAAC;8BACtB,sCAAc;wCAAC;AAGrB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;yCACH;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,8BAAY,CAAC;;0CACD;AAGzB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,yCAAgB,CAAC;;iDACY;AAG1C;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;sDACU;AAG3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,yCAAgB,CAAC;;iDACY;AAG1C;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,aAAG,CAAC;;sDACU;AAG3B;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,4CAAmB,CAAC;8BAC1B,4CAAmB;yCAAC;qBAzChB,UAAU;IADtB,IAAA,oBAAU,GAAE;GACA,UAAU,CA4CtB"}
|
|
@@ -24,6 +24,10 @@ __decorate([
|
|
|
24
24
|
(0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
|
|
25
25
|
__metadata("design:type", Number)
|
|
26
26
|
], ViewColumnInput.prototype, "width", void 0);
|
|
27
|
+
__decorate([
|
|
28
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
29
|
+
__metadata("design:type", String)
|
|
30
|
+
], ViewColumnInput.prototype, "pinned", void 0);
|
|
27
31
|
exports.ViewColumnInput = ViewColumnInput = __decorate([
|
|
28
32
|
(0, graphql_1.InputType)()
|
|
29
33
|
], ViewColumnInput);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-table-views.input.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/views/input/update-table-views.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA+D;AAC/D,qDAA+C;AAC/C,6DAAkD;AAG3C,IAAM,eAAe,GAArB,MAAM,eAAe;
|
|
1
|
+
{"version":3,"file":"update-table-views.input.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/views/input/update-table-views.input.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA+D;AAC/D,qDAA+C;AAC/C,6DAAkD;AAG3C,IAAM,eAAe,GAArB,MAAM,eAAe;CAS3B,CAAA;AATY,0CAAe;AAE1B;IADC,IAAA,eAAK,GAAE;;8CACM;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACxB;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACV;0BARL,eAAe;IAD3B,IAAA,mBAAS,GAAE;GACC,eAAe,CAS3B;AAGM,IAAM,aAAa,GA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,GAA3B,MAAM,qBAAqB;CASjC,CAAA;AATY,sDAAqB;AAEhC;IADC,IAAA,eAAK,GAAE;;yDACW;AAGnB;IADC,IAAA,eAAK,GAAE;;sDACQ;AAGhB;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,mBAAmB,CAAC;8BACtB,mBAAmB;wDAAC;gCARpB,qBAAqB;IADjC,IAAA,mBAAS,GAAE;GACC,qBAAqB,CASjC"}
|
|
@@ -22,6 +22,10 @@ __decorate([
|
|
|
22
22
|
(0, graphql_1.Field)(() => graphql_1.Float, { nullable: true }),
|
|
23
23
|
__metadata("design:type", Number)
|
|
24
24
|
], ViewColumnModel.prototype, "width", void 0);
|
|
25
|
+
__decorate([
|
|
26
|
+
(0, graphql_1.Field)({ nullable: true }),
|
|
27
|
+
__metadata("design:type", String)
|
|
28
|
+
], ViewColumnModel.prototype, "pinned", void 0);
|
|
25
29
|
exports.ViewColumnModel = ViewColumnModel = __decorate([
|
|
26
30
|
(0, graphql_1.ObjectType)()
|
|
27
31
|
], ViewColumnModel);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-column.model.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/views/model/view-column.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2D;AAGpD,IAAM,eAAe,GAArB,MAAM,eAAe;
|
|
1
|
+
{"version":3,"file":"view-column.model.js","sourceRoot":"","sources":["../../../../../../src/api/graphql-api/views/model/view-column.model.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA2D;AAGpD,IAAM,eAAe,GAArB,MAAM,eAAe;CAS3B,CAAA;AATY,0CAAe;AAE1B;IADC,IAAA,eAAK,GAAE;;8CACM;AAGd;IADC,IAAA,eAAK,EAAC,GAAG,EAAE,CAAC,eAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;8CACxB;AAGf;IADC,IAAA,eAAK,EAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACV;0BARL,eAAe;IAD3B,IAAA,oBAAU,GAAE;GACA,eAAe,CAS3B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { JwtService } from '@nestjs/jwt';
|
|
2
|
+
import { Request } from 'express';
|
|
3
|
+
import { JwtSecretService } from '../../features/auth/jwt-secret.service';
|
|
4
|
+
import { NoAuthService } from '../../features/auth/no-auth.service';
|
|
5
|
+
import { OAuthTokenService } from '../../features/oauth/oauth-token.service';
|
|
6
|
+
export interface McpUserContext {
|
|
7
|
+
userId: string;
|
|
8
|
+
username: string;
|
|
9
|
+
email: string;
|
|
10
|
+
roleId: string | null;
|
|
11
|
+
}
|
|
12
|
+
export declare class McpAuthService {
|
|
13
|
+
private readonly noAuth;
|
|
14
|
+
private readonly jwtService;
|
|
15
|
+
private readonly jwtSecret;
|
|
16
|
+
private readonly oauthToken;
|
|
17
|
+
constructor(noAuth: NoAuthService, jwtService: JwtService, jwtSecret: JwtSecretService, oauthToken: OAuthTokenService);
|
|
18
|
+
extractUserContext(req: Request): Promise<McpUserContext>;
|
|
19
|
+
private validateJwt;
|
|
20
|
+
private validateOAuthToken;
|
|
21
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.McpAuthService = void 0;
|
|
13
|
+
const common_1 = require("@nestjs/common");
|
|
14
|
+
const jwt_1 = require("@nestjs/jwt");
|
|
15
|
+
const jwt_secret_service_1 = require("../../features/auth/jwt-secret.service");
|
|
16
|
+
const no_auth_service_1 = require("../../features/auth/no-auth.service");
|
|
17
|
+
const oauth_token_service_1 = require("../../features/oauth/oauth-token.service");
|
|
18
|
+
let McpAuthService = class McpAuthService {
|
|
19
|
+
constructor(noAuth, jwtService, jwtSecret, oauthToken) {
|
|
20
|
+
this.noAuth = noAuth;
|
|
21
|
+
this.jwtService = jwtService;
|
|
22
|
+
this.jwtSecret = jwtSecret;
|
|
23
|
+
this.oauthToken = oauthToken;
|
|
24
|
+
}
|
|
25
|
+
async extractUserContext(req) {
|
|
26
|
+
if (this.noAuth.enabled) {
|
|
27
|
+
const admin = this.noAuth.adminUser;
|
|
28
|
+
return {
|
|
29
|
+
userId: admin.userId,
|
|
30
|
+
username: admin.userId,
|
|
31
|
+
email: admin.email,
|
|
32
|
+
roleId: 'systemAdmin',
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
const authHeader = req.headers['authorization'];
|
|
36
|
+
if (!authHeader?.startsWith('Bearer ')) {
|
|
37
|
+
throw new common_1.UnauthorizedException('Missing Authorization header');
|
|
38
|
+
}
|
|
39
|
+
const token = authHeader.slice(7);
|
|
40
|
+
if (token.split('.').length === 3) {
|
|
41
|
+
return this.validateJwt(token);
|
|
42
|
+
}
|
|
43
|
+
if (token.startsWith('oat_')) {
|
|
44
|
+
return this.validateOAuthToken(token);
|
|
45
|
+
}
|
|
46
|
+
throw new common_1.UnauthorizedException('Unrecognized token format');
|
|
47
|
+
}
|
|
48
|
+
validateJwt(token) {
|
|
49
|
+
try {
|
|
50
|
+
const payload = this.jwtService.verify(token, {
|
|
51
|
+
secret: this.jwtSecret.secret,
|
|
52
|
+
});
|
|
53
|
+
return {
|
|
54
|
+
userId: payload.sub,
|
|
55
|
+
username: payload.username ?? '',
|
|
56
|
+
email: payload.email ?? '',
|
|
57
|
+
roleId: payload.roleId ?? null,
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
catch {
|
|
61
|
+
throw new common_1.UnauthorizedException('Invalid or expired JWT');
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
async validateOAuthToken(token) {
|
|
65
|
+
const tokenData = await this.oauthToken.validateAccessToken(token);
|
|
66
|
+
return {
|
|
67
|
+
userId: tokenData.userId,
|
|
68
|
+
username: tokenData.username,
|
|
69
|
+
email: tokenData.email,
|
|
70
|
+
roleId: tokenData.roleId,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
};
|
|
74
|
+
exports.McpAuthService = McpAuthService;
|
|
75
|
+
exports.McpAuthService = McpAuthService = __decorate([
|
|
76
|
+
(0, common_1.Injectable)(),
|
|
77
|
+
__metadata("design:paramtypes", [no_auth_service_1.NoAuthService,
|
|
78
|
+
jwt_1.JwtService,
|
|
79
|
+
jwt_secret_service_1.JwtSecretService,
|
|
80
|
+
oauth_token_service_1.OAuthTokenService])
|
|
81
|
+
], McpAuthService);
|
|
82
|
+
//# sourceMappingURL=mcp-auth.service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mcp-auth.service.js","sourceRoot":"","sources":["../../../../src/api/mcp-api/mcp-auth.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAmE;AACnE,qCAAyC;AAEzC,+EAAwE;AACxE,yEAAkE;AAClE,kFAA2E;AAUpE,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YACmB,MAAqB,EACrB,UAAsB,EACtB,SAA2B,EAC3B,UAA6B;QAH7B,WAAM,GAAN,MAAM,CAAe;QACrB,eAAU,GAAV,UAAU,CAAY;QACtB,cAAS,GAAT,SAAS,CAAkB;QAC3B,eAAU,GAAV,UAAU,CAAmB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AChC,KAAK,EAAE,OAAO,CAAC,KAAK,IAAI,EAAE;gBAC1B,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,IAAI;aAC/B,CAAC;QACJ,CAAC;QAAC,MAAM,CAAC;YACP,MAAM,IAAI,8BAAqB,CAAC,wBAAwB,CAAC,CAAC;QAC5D,CAAC;IACH,CAAC;IAEO,KAAK,CAAC,kBAAkB,CAAC,KAAa;QAC5C,MAAM,SAAS,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,mBAAmB,CAAC,KAAK,CAAC,CAAC;QACnE,OAAO;YACL,MAAM,EAAE,SAAS,CAAC,MAAM;YACxB,QAAQ,EAAE,SAAS,CAAC,QAAQ;YAC5B,KAAK,EAAE,SAAS,CAAC,KAAK;YACtB,MAAM,EAAE,SAAS,CAAC,MAAM;SACzB,CAAC;IACJ,CAAC;CACF,CAAA;AA9DY,wCAAc;yBAAd,cAAc;IAD1B,IAAA,mBAAU,GAAE;qCAGgB,+BAAa;QACT,gBAAU;QACX,qCAAgB;QACf,uCAAiB;GALrC,cAAc,CA8D1B"}
|
|
@@ -13,10 +13,9 @@ import { RevisionChangesApiService } from '../../features/revision-changes/revis
|
|
|
13
13
|
import { UserApiService } from '../../features/user/user-api.service';
|
|
14
14
|
import { EndpointApiService } from '../../features/endpoint/queries/endpoint-api.service';
|
|
15
15
|
import { FormulaService } from '../../features/plugin/formula';
|
|
16
|
-
import {
|
|
16
|
+
import { McpUserContext } from './mcp-auth.service';
|
|
17
17
|
export declare class McpServerService {
|
|
18
18
|
private readonly configService;
|
|
19
|
-
private readonly mcpSession;
|
|
20
19
|
private readonly noAuth;
|
|
21
20
|
private readonly authApi;
|
|
22
21
|
private readonly organizationApi;
|
|
@@ -31,12 +30,10 @@ export declare class McpServerService {
|
|
|
31
30
|
private readonly endpointApi;
|
|
32
31
|
private readonly formulaService;
|
|
33
32
|
private readonly instructions;
|
|
34
|
-
private readonly auth;
|
|
35
33
|
private readonly schemaResource;
|
|
36
34
|
private readonly queryResource;
|
|
37
35
|
private readonly migrationResource;
|
|
38
36
|
private readonly fileResource;
|
|
39
|
-
private readonly authTools;
|
|
40
37
|
private readonly organizationTools;
|
|
41
38
|
private readonly projectTools;
|
|
42
39
|
private readonly branchTools;
|
|
@@ -48,10 +45,10 @@ export declare class McpServerService {
|
|
|
48
45
|
private readonly userTools;
|
|
49
46
|
private readonly endpointTools;
|
|
50
47
|
private readonly fileTools;
|
|
51
|
-
constructor(configService: ConfigService,
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
48
|
+
constructor(configService: ConfigService, noAuth: NoAuthService, authApi: AuthApiService, organizationApi: OrganizationApiService, projectApi: ProjectApiService, branchApi: BranchApiService, draftApi: DraftApiService, tableApi: TableApiService, rowApi: RowApiService, revisionsApi: RevisionsApiService, revisionChangesApi: RevisionChangesApiService, userApi: UserApiService, endpointApi: EndpointApiService, formulaService: FormulaService);
|
|
49
|
+
getInstructions(): string;
|
|
50
|
+
registerResources(server: McpServer): void;
|
|
51
|
+
registerTools(server: McpServer, userContext: McpUserContext): void;
|
|
55
52
|
private checkPermissionByRevision;
|
|
56
53
|
private checkPermissionByOrganizationProject;
|
|
57
54
|
private checkPermissionByOrganization;
|
|
@@ -12,7 +12,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.McpServerService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const config_1 = require("@nestjs/config");
|
|
15
|
-
const mcp_js_1 = require("@modelcontextprotocol/sdk/server/mcp.js");
|
|
16
15
|
const auth_api_service_1 = require("../../features/auth/commands/auth-api.service");
|
|
17
16
|
const no_auth_service_1 = require("../../features/auth/no-auth.service");
|
|
18
17
|
const organization_api_service_1 = require("../../features/organization/organization-api.service");
|
|
@@ -26,13 +25,11 @@ const revision_changes_api_service_1 = require("../../features/revision-changes/
|
|
|
26
25
|
const user_api_service_1 = require("../../features/user/user-api.service");
|
|
27
26
|
const endpoint_api_service_1 = require("../../features/endpoint/queries/endpoint-api.service");
|
|
28
27
|
const formula_1 = require("../../features/plugin/formula");
|
|
29
|
-
const mcp_session_service_1 = require("./mcp-session.service");
|
|
30
28
|
const resources_1 = require("./resources");
|
|
31
29
|
const tools_1 = require("./tools");
|
|
32
30
|
let McpServerService = class McpServerService {
|
|
33
|
-
constructor(configService,
|
|
31
|
+
constructor(configService, noAuth, authApi, organizationApi, projectApi, branchApi, draftApi, tableApi, rowApi, revisionsApi, revisionChangesApi, userApi, endpointApi, formulaService) {
|
|
34
32
|
this.configService = configService;
|
|
35
|
-
this.mcpSession = mcpSession;
|
|
36
33
|
this.noAuth = noAuth;
|
|
37
34
|
this.authApi = authApi;
|
|
38
35
|
this.organizationApi = organizationApi;
|
|
@@ -46,35 +43,40 @@ let McpServerService = class McpServerService {
|
|
|
46
43
|
this.userApi = userApi;
|
|
47
44
|
this.endpointApi = endpointApi;
|
|
48
45
|
this.formulaService = formulaService;
|
|
49
|
-
const publicUrl = this.configService.get('PUBLIC_URL');
|
|
50
|
-
const tokenUrl = publicUrl ? `${publicUrl}/get-mcp-token` : null;
|
|
51
46
|
const authSection = this.noAuth.enabled
|
|
52
47
|
? `AUTHENTICATION:
|
|
53
|
-
No authentication required. All tools are available immediately
|
|
48
|
+
No authentication required. All tools are available immediately.`
|
|
54
49
|
: `AUTHENTICATION:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
DO NOT assume or guess credentials.`;
|
|
59
|
-
this.instructions = `Revisium is a headless CMS with Git-like version control.
|
|
50
|
+
Authentication is handled automatically via OAuth or Bearer token in the HTTP header.
|
|
51
|
+
No login tools needed — all tools are available immediately after authentication.`;
|
|
52
|
+
this.instructions = `Revisium is a versioned data platform with Git-like version control. Use it as a headless CMS, dictionary service, configuration store, or structured memory for AI agents. Agents can design their own schemas (tables, fields, foreign keys), organize data relationships, and evolve the structure as needs change — all with branching, rollback, and human review.
|
|
60
53
|
|
|
61
54
|
${authSection}
|
|
62
55
|
|
|
63
|
-
DATA STRUCTURE:
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
-
|
|
67
|
-
-
|
|
68
|
-
-
|
|
69
|
-
-
|
|
56
|
+
DATA STRUCTURE (hierarchy):
|
|
57
|
+
Organization → Project → Branch → Revision → Table → Row
|
|
58
|
+
|
|
59
|
+
- Organization: top-level container, identified by organizationId (= owner's username)
|
|
60
|
+
- Project: belongs to an organization, has a default branch (usually "master")
|
|
61
|
+
- Branch: has headRevisionId (committed, read-only) and draftRevisionId (working state)
|
|
62
|
+
- Revision: immutable snapshot of all tables and rows
|
|
63
|
+
- Table: has schema (JSON Schema) and rows within a revision
|
|
64
|
+
- Row: data record identified by rowId within a table
|
|
70
65
|
|
|
71
66
|
TYPICAL WORKFLOW:
|
|
72
|
-
1.
|
|
73
|
-
2.
|
|
74
|
-
3.
|
|
75
|
-
4.
|
|
76
|
-
5.
|
|
77
|
-
|
|
67
|
+
1. get_project(organizationId, projectName) - returns project with rootBranch info
|
|
68
|
+
2. get_branch(organizationId, projectName, branchName) - get branch details including draftRevisionId
|
|
69
|
+
3. Use draftRevisionId for: get_tables, get_rows, create_row, update_row, etc.
|
|
70
|
+
4. get_revision_changes(draftRevisionId) - review pending changes before commit
|
|
71
|
+
5. create_revision() - only after user approval
|
|
72
|
+
|
|
73
|
+
SEARCHING DATA:
|
|
74
|
+
- search_rows(revisionId, query) - full-text search across ALL tables and ALL fields in a revision
|
|
75
|
+
- No tableId needed - searches everything
|
|
76
|
+
- By default returns compact results: rowId, tableId, and matches (field path, value, highlight) - saves tokens
|
|
77
|
+
- Set includeRowData=true to get full row data in results (use sparingly for large datasets)
|
|
78
|
+
- Recommended workflow: search_rows to find rows, then get_row for full data of specific rows
|
|
79
|
+
- Example: search_rows(revisionId, "TableEditor") finds all rows mentioning "TableEditor"
|
|
78
80
|
|
|
79
81
|
IMPORTANT:
|
|
80
82
|
- Project.rootBranch contains the default branch info
|
|
@@ -97,7 +99,6 @@ PERMISSIONS:
|
|
|
97
99
|
this.queryResource = new resources_1.QueryResource();
|
|
98
100
|
this.migrationResource = new resources_1.MigrationResource();
|
|
99
101
|
this.fileResource = new resources_1.FileResource();
|
|
100
|
-
this.authTools = new tools_1.AuthTools(this.mcpSession, this.authApi, this.configService.get('PUBLIC_URL'));
|
|
101
102
|
this.organizationTools = new tools_1.OrganizationTools(this.organizationApi);
|
|
102
103
|
this.projectTools = new tools_1.ProjectTools(this.projectApi, this.branchApi);
|
|
103
104
|
this.branchTools = new tools_1.BranchTools(this.branchApi);
|
|
@@ -109,71 +110,35 @@ PERMISSIONS:
|
|
|
109
110
|
this.userTools = new tools_1.UserTools(this.userApi);
|
|
110
111
|
this.endpointTools = new tools_1.EndpointTools(this.endpointApi, this.configService.get('ENDPOINT_SERVICE_URL'));
|
|
111
112
|
this.fileTools = new tools_1.FileTools(this.draftApi);
|
|
112
|
-
this.auth = {
|
|
113
|
-
requireAuth: this.requireAuth.bind(this),
|
|
114
|
-
checkPermissionByRevision: this.checkPermissionByRevision.bind(this),
|
|
115
|
-
checkPermissionByOrganizationProject: this.checkPermissionByOrganizationProject.bind(this),
|
|
116
|
-
checkPermissionByOrganization: this.checkPermissionByOrganization.bind(this),
|
|
117
|
-
checkSystemPermission: this.checkSystemPermission.bind(this),
|
|
118
|
-
};
|
|
119
113
|
}
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
}, {
|
|
125
|
-
instructions: this.instructions,
|
|
126
|
-
});
|
|
114
|
+
getInstructions() {
|
|
115
|
+
return this.instructions;
|
|
116
|
+
}
|
|
117
|
+
registerResources(server) {
|
|
127
118
|
this.schemaResource.register(server);
|
|
128
119
|
this.queryResource.register(server);
|
|
129
120
|
this.migrationResource.register(server);
|
|
130
121
|
this.fileResource.register(server);
|
|
131
|
-
this.authTools.register(server, this.auth);
|
|
132
|
-
this.organizationTools.register(server, this.auth);
|
|
133
|
-
this.projectTools.register(server, this.auth);
|
|
134
|
-
this.branchTools.register(server, this.auth);
|
|
135
|
-
this.tableTools.register(server, this.auth);
|
|
136
|
-
this.rowTools.register(server, this.auth);
|
|
137
|
-
this.revisionTools.register(server, this.auth);
|
|
138
|
-
this.revisionChangesTools.register(server, this.auth);
|
|
139
|
-
this.migrationTools.register(server, this.auth);
|
|
140
|
-
this.userTools.register(server, this.auth);
|
|
141
|
-
this.endpointTools.register(server, this.auth);
|
|
142
|
-
this.fileTools.register(server, this.auth);
|
|
143
|
-
return server;
|
|
144
|
-
}
|
|
145
|
-
getSessionFromContext(context) {
|
|
146
|
-
if (!context?.sessionId)
|
|
147
|
-
return null;
|
|
148
|
-
return this.mcpSession.getSession(context.sessionId);
|
|
149
122
|
}
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
message += ' - Then use: login_with_token(accessToken)\n\n';
|
|
170
|
-
message += '2. Login with credentials:\n';
|
|
171
|
-
message += ' - Ask user for their username and password\n';
|
|
172
|
-
message += ' - Then use: login(username, password)\n\n';
|
|
173
|
-
message += 'IMPORTANT: DO NOT assume or guess credentials.';
|
|
174
|
-
throw new Error(message);
|
|
175
|
-
}
|
|
176
|
-
return session;
|
|
123
|
+
registerTools(server, userContext) {
|
|
124
|
+
const auth = {
|
|
125
|
+
userId: userContext.userId,
|
|
126
|
+
checkPermissionByRevision: this.checkPermissionByRevision.bind(this),
|
|
127
|
+
checkPermissionByOrganizationProject: this.checkPermissionByOrganizationProject.bind(this),
|
|
128
|
+
checkPermissionByOrganization: this.checkPermissionByOrganization.bind(this),
|
|
129
|
+
checkSystemPermission: this.checkSystemPermission.bind(this),
|
|
130
|
+
};
|
|
131
|
+
this.organizationTools.register(server, auth);
|
|
132
|
+
this.projectTools.register(server, auth);
|
|
133
|
+
this.branchTools.register(server, auth);
|
|
134
|
+
this.tableTools.register(server, auth);
|
|
135
|
+
this.rowTools.register(server, auth);
|
|
136
|
+
this.revisionTools.register(server, auth);
|
|
137
|
+
this.revisionChangesTools.register(server, auth);
|
|
138
|
+
this.migrationTools.register(server, auth);
|
|
139
|
+
this.userTools.register(server, auth);
|
|
140
|
+
this.endpointTools.register(server, auth);
|
|
141
|
+
this.fileTools.register(server, auth);
|
|
177
142
|
}
|
|
178
143
|
async checkPermissionByRevision(revisionId, permissions, userId) {
|
|
179
144
|
await this.authApi.checkProjectPermission({
|
|
@@ -208,7 +173,6 @@ exports.McpServerService = McpServerService;
|
|
|
208
173
|
exports.McpServerService = McpServerService = __decorate([
|
|
209
174
|
(0, common_1.Injectable)(),
|
|
210
175
|
__metadata("design:paramtypes", [config_1.ConfigService,
|
|
211
|
-
mcp_session_service_1.McpSessionService,
|
|
212
176
|
no_auth_service_1.NoAuthService,
|
|
213
177
|
auth_api_service_1.AuthApiService,
|
|
214
178
|
organization_api_service_1.OrganizationApiService,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp-server.service.js","sourceRoot":"","sources":["../../../../src/api/mcp-api/mcp-server.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;
|
|
1
|
+
{"version":3,"file":"mcp-server.service.js","sourceRoot":"","sources":["../../../../src/api/mcp-api/mcp-server.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,2CAA+C;AAE/C,oFAA6E;AAC7E,yEAAkE;AAClE,mGAA4F;AAC5F,oFAA6E;AAC7E,iFAA0E;AAC1E,8EAAuE;AACvE,8EAAuE;AACvE,wEAAiE;AACjE,yFAAkF;AAClF,+GAAuG;AACvG,2EAAoE;AACpE,+FAAwF;AACxF,2DAA6D;AAI7D,2CAKqB;AAErB,mCAYiB;AAGV,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAo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AAI,CAAC,CAAC;QAC1C,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,MAAM,EAAE,IAAI,CAAC,CAAC;IACxC,CAAC;IAEO,KAAK,CAAC,yBAAyB,CACrC,UAAkB,EAClB,WAAiC,EACjC,MAAc;QAEd,MAAM,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC;YACxC,UAAU;YACV,WAAW;YACX,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,oCAAoC,CAChD,cAAsB,EACtB,WAAmB,EACnB,WAAiC,EACjC,MAAc;QAEd,MAAM,IAAI,CAAC,OAAO,CAAC,sBAAsB,CAAC;YACxC,cAAc;YACd,WAAW;YACX,WAAW;YACX,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,6BAA6B,CACzC,cAAsB,EACtB,WAAiC,EACjC,MAAe;QAEf,MAAM,IAAI,CAAC,OAAO,CAAC,2BAA2B,CAAC;YAC7C,cAAc;YACd,WAAW;YACX,MAAM;SACP,CAAC,CAAC;IACL,CAAC;IAEO,KAAK,CAAC,qBAAqB,CACjC,WAAiC,EACjC,MAAc;QAEd,MAAM,IAAI,CAAC,OAAO,CAAC,qBAAqB,CAAC;YACvC,WAAW;YACX,MAAM;SACP,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AAnMY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;qCAsBuB,sBAAa;QACpB,+BAAa;QACZ,iCAAc;QACN,iDAAsB;QAC3B,uCAAiB;QAClB,qCAAgB;QACjB,mCAAe;QACf,mCAAe;QACjB,+BAAa;QACP,2CAAmB;QACb,wDAAyB;QACpC,iCAAc;QACV,yCAAkB;QACf,wBAAc;GAlCtC,gBAAgB,CAmM5B"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
|
+
import { ConfigService } from '@nestjs/config';
|
|
1
2
|
import { Request, Response } from 'express';
|
|
2
3
|
import { McpServerService } from './mcp-server.service';
|
|
4
|
+
import { McpAuthService } from './mcp-auth.service';
|
|
3
5
|
export declare class McpController {
|
|
4
6
|
private readonly mcpServer;
|
|
5
|
-
private readonly
|
|
6
|
-
|
|
7
|
+
private readonly mcpAuth;
|
|
8
|
+
private readonly configService;
|
|
9
|
+
constructor(mcpServer: McpServerService, mcpAuth: McpAuthService, configService: ConfigService);
|
|
7
10
|
handlePost(req: Request, res: Response): Promise<void>;
|
|
8
|
-
handleGet(
|
|
9
|
-
handleDelete(
|
|
11
|
+
handleGet(res: Response): void;
|
|
12
|
+
handleDelete(res: Response): void;
|
|
10
13
|
}
|