@kelpie/server 0.1.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/LICENSE +661 -0
- package/README.md +57 -0
- package/dist/app.d.ts +36 -0
- package/dist/app.d.ts.map +1 -0
- package/dist/app.js +98 -0
- package/dist/app.js.map +1 -0
- package/dist/index.d.ts +46 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +26 -0
- package/dist/index.js.map +1 -0
- package/dist/lib/actor.d.ts +71 -0
- package/dist/lib/actor.d.ts.map +1 -0
- package/dist/lib/actor.js +48 -0
- package/dist/lib/actor.js.map +1 -0
- package/dist/lib/changes.d.ts +17 -0
- package/dist/lib/changes.d.ts.map +1 -0
- package/dist/lib/changes.js +35 -0
- package/dist/lib/changes.js.map +1 -0
- package/dist/lib/columns.d.ts +152 -0
- package/dist/lib/columns.d.ts.map +1 -0
- package/dist/lib/columns.js +126 -0
- package/dist/lib/columns.js.map +1 -0
- package/dist/lib/config.d.ts +36 -0
- package/dist/lib/config.d.ts.map +1 -0
- package/dist/lib/config.js +52 -0
- package/dist/lib/config.js.map +1 -0
- package/dist/lib/database.d.ts +57 -0
- package/dist/lib/database.d.ts.map +1 -0
- package/dist/lib/database.js +91 -0
- package/dist/lib/database.js.map +1 -0
- package/dist/lib/dates.d.ts +11 -0
- package/dist/lib/dates.d.ts.map +1 -0
- package/dist/lib/dates.js +17 -0
- package/dist/lib/dates.js.map +1 -0
- package/dist/lib/email.d.ts +42 -0
- package/dist/lib/email.d.ts.map +1 -0
- package/dist/lib/email.js +38 -0
- package/dist/lib/email.js.map +1 -0
- package/dist/lib/errors.d.ts +76 -0
- package/dist/lib/errors.d.ts.map +1 -0
- package/dist/lib/errors.js +102 -0
- package/dist/lib/errors.js.map +1 -0
- package/dist/lib/http.d.ts +59 -0
- package/dist/lib/http.d.ts.map +1 -0
- package/dist/lib/http.js +89 -0
- package/dist/lib/http.js.map +1 -0
- package/dist/lib/ids.d.ts +55 -0
- package/dist/lib/ids.d.ts.map +1 -0
- package/dist/lib/ids.js +56 -0
- package/dist/lib/ids.js.map +1 -0
- package/dist/lib/logger.d.ts +22 -0
- package/dist/lib/logger.d.ts.map +1 -0
- package/dist/lib/logger.js +43 -0
- package/dist/lib/logger.js.map +1 -0
- package/dist/lib/moduleConfig.d.ts +14 -0
- package/dist/lib/moduleConfig.d.ts.map +1 -0
- package/dist/lib/moduleConfig.js +56 -0
- package/dist/lib/moduleConfig.js.map +1 -0
- package/dist/lib/normalisation.d.ts +19 -0
- package/dist/lib/normalisation.d.ts.map +1 -0
- package/dist/lib/normalisation.js +32 -0
- package/dist/lib/normalisation.js.map +1 -0
- package/dist/lib/pagination.d.ts +104 -0
- package/dist/lib/pagination.d.ts.map +1 -0
- package/dist/lib/pagination.js +189 -0
- package/dist/lib/pagination.js.map +1 -0
- package/dist/lib/passwords.d.ts +32 -0
- package/dist/lib/passwords.d.ts.map +1 -0
- package/dist/lib/passwords.js +51 -0
- package/dist/lib/passwords.js.map +1 -0
- package/dist/lib/search.d.ts +11 -0
- package/dist/lib/search.d.ts.map +1 -0
- package/dist/lib/search.js +25 -0
- package/dist/lib/search.js.map +1 -0
- package/dist/lib/secrets.d.ts +40 -0
- package/dist/lib/secrets.d.ts.map +1 -0
- package/dist/lib/secrets.js +152 -0
- package/dist/lib/secrets.js.map +1 -0
- package/dist/lib/timezones.d.ts +38 -0
- package/dist/lib/timezones.d.ts.map +1 -0
- package/dist/lib/timezones.js +55 -0
- package/dist/lib/timezones.js.map +1 -0
- package/dist/lib/tokens.d.ts +10 -0
- package/dist/lib/tokens.d.ts.map +1 -0
- package/dist/lib/tokens.js +31 -0
- package/dist/lib/tokens.js.map +1 -0
- package/dist/lib/url.d.ts +25 -0
- package/dist/lib/url.d.ts.map +1 -0
- package/dist/lib/url.js +41 -0
- package/dist/lib/url.js.map +1 -0
- package/dist/modules/activities/index.d.ts +18 -0
- package/dist/modules/activities/index.d.ts.map +1 -0
- package/dist/modules/activities/index.js +34 -0
- package/dist/modules/activities/index.js.map +1 -0
- package/dist/modules/activities/recorder.d.ts +53 -0
- package/dist/modules/activities/recorder.d.ts.map +1 -0
- package/dist/modules/activities/recorder.js +36 -0
- package/dist/modules/activities/recorder.js.map +1 -0
- package/dist/modules/activities/repository.d.ts +52 -0
- package/dist/modules/activities/repository.d.ts.map +1 -0
- package/dist/modules/activities/repository.js +127 -0
- package/dist/modules/activities/repository.js.map +1 -0
- package/dist/modules/activities/routes.d.ts +17 -0
- package/dist/modules/activities/routes.d.ts.map +1 -0
- package/dist/modules/activities/routes.js +45 -0
- package/dist/modules/activities/routes.js.map +1 -0
- package/dist/modules/activities/schema.d.ts +188 -0
- package/dist/modules/activities/schema.d.ts.map +1 -0
- package/dist/modules/activities/schema.js +34 -0
- package/dist/modules/activities/schema.js.map +1 -0
- package/dist/modules/activities/service.d.ts +32 -0
- package/dist/modules/activities/service.d.ts.map +1 -0
- package/dist/modules/activities/service.js +28 -0
- package/dist/modules/activities/service.js.map +1 -0
- package/dist/modules/activities/tools.d.ts +4 -0
- package/dist/modules/activities/tools.d.ts.map +1 -0
- package/dist/modules/activities/tools.js +26 -0
- package/dist/modules/activities/tools.js.map +1 -0
- package/dist/modules/activities/wording.d.ts +79 -0
- package/dist/modules/activities/wording.d.ts.map +1 -0
- package/dist/modules/activities/wording.js +134 -0
- package/dist/modules/activities/wording.js.map +1 -0
- package/dist/modules/agent-tasks/catalog.d.ts +16 -0
- package/dist/modules/agent-tasks/catalog.d.ts.map +1 -0
- package/dist/modules/agent-tasks/catalog.js +694 -0
- package/dist/modules/agent-tasks/catalog.js.map +1 -0
- package/dist/modules/agent-tasks/dispatch.d.ts +61 -0
- package/dist/modules/agent-tasks/dispatch.d.ts.map +1 -0
- package/dist/modules/agent-tasks/dispatch.js +139 -0
- package/dist/modules/agent-tasks/dispatch.js.map +1 -0
- package/dist/modules/agent-tasks/index.d.ts +17 -0
- package/dist/modules/agent-tasks/index.d.ts.map +1 -0
- package/dist/modules/agent-tasks/index.js +54 -0
- package/dist/modules/agent-tasks/index.js.map +1 -0
- package/dist/modules/agent-tasks/prompt.d.ts +41 -0
- package/dist/modules/agent-tasks/prompt.d.ts.map +1 -0
- package/dist/modules/agent-tasks/prompt.js +78 -0
- package/dist/modules/agent-tasks/prompt.js.map +1 -0
- package/dist/modules/agent-tasks/repository.d.ts +32 -0
- package/dist/modules/agent-tasks/repository.d.ts.map +1 -0
- package/dist/modules/agent-tasks/repository.js +83 -0
- package/dist/modules/agent-tasks/repository.js.map +1 -0
- package/dist/modules/agent-tasks/resolve.d.ts +44 -0
- package/dist/modules/agent-tasks/resolve.d.ts.map +1 -0
- package/dist/modules/agent-tasks/resolve.js +396 -0
- package/dist/modules/agent-tasks/resolve.js.map +1 -0
- package/dist/modules/agent-tasks/routes.d.ts +55 -0
- package/dist/modules/agent-tasks/routes.d.ts.map +1 -0
- package/dist/modules/agent-tasks/routes.js +173 -0
- package/dist/modules/agent-tasks/routes.js.map +1 -0
- package/dist/modules/agent-tasks/schema.d.ts +346 -0
- package/dist/modules/agent-tasks/schema.d.ts.map +1 -0
- package/dist/modules/agent-tasks/schema.js +47 -0
- package/dist/modules/agent-tasks/schema.js.map +1 -0
- package/dist/modules/agent-tasks/service.d.ts +79 -0
- package/dist/modules/agent-tasks/service.d.ts.map +1 -0
- package/dist/modules/agent-tasks/service.js +210 -0
- package/dist/modules/agent-tasks/service.js.map +1 -0
- package/dist/modules/agent-tasks/wire.d.ts +35 -0
- package/dist/modules/agent-tasks/wire.d.ts.map +1 -0
- package/dist/modules/agent-tasks/wire.js +31 -0
- package/dist/modules/agent-tasks/wire.js.map +1 -0
- package/dist/modules/api-keys/index.d.ts +9 -0
- package/dist/modules/api-keys/index.d.ts.map +1 -0
- package/dist/modules/api-keys/index.js +29 -0
- package/dist/modules/api-keys/index.js.map +1 -0
- package/dist/modules/api-keys/keys.d.ts +25 -0
- package/dist/modules/api-keys/keys.d.ts.map +1 -0
- package/dist/modules/api-keys/keys.js +40 -0
- package/dist/modules/api-keys/keys.js.map +1 -0
- package/dist/modules/api-keys/repository.d.ts +15 -0
- package/dist/modules/api-keys/repository.d.ts.map +1 -0
- package/dist/modules/api-keys/repository.js +48 -0
- package/dist/modules/api-keys/repository.js.map +1 -0
- package/dist/modules/api-keys/routes.d.ts +8 -0
- package/dist/modules/api-keys/routes.d.ts.map +1 -0
- package/dist/modules/api-keys/routes.js +52 -0
- package/dist/modules/api-keys/routes.js.map +1 -0
- package/dist/modules/api-keys/schema.d.ts +166 -0
- package/dist/modules/api-keys/schema.d.ts.map +1 -0
- package/dist/modules/api-keys/schema.js +23 -0
- package/dist/modules/api-keys/schema.js.map +1 -0
- package/dist/modules/api-keys/service.d.ts +37 -0
- package/dist/modules/api-keys/service.d.ts.map +1 -0
- package/dist/modules/api-keys/service.js +95 -0
- package/dist/modules/api-keys/service.js.map +1 -0
- package/dist/modules/attachedRecords.d.ts +39 -0
- package/dist/modules/attachedRecords.d.ts.map +1 -0
- package/dist/modules/attachedRecords.js +52 -0
- package/dist/modules/attachedRecords.js.map +1 -0
- package/dist/modules/auth/actor.d.ts +11 -0
- package/dist/modules/auth/actor.d.ts.map +1 -0
- package/dist/modules/auth/actor.js +10 -0
- package/dist/modules/auth/actor.js.map +1 -0
- package/dist/modules/auth/credentials.d.ts +18 -0
- package/dist/modules/auth/credentials.d.ts.map +1 -0
- package/dist/modules/auth/credentials.js +105 -0
- package/dist/modules/auth/credentials.js.map +1 -0
- package/dist/modules/auth/index.d.ts +3 -0
- package/dist/modules/auth/index.d.ts.map +1 -0
- package/dist/modules/auth/index.js +41 -0
- package/dist/modules/auth/index.js.map +1 -0
- package/dist/modules/auth/preferences.d.ts +34 -0
- package/dist/modules/auth/preferences.d.ts.map +1 -0
- package/dist/modules/auth/preferences.js +30 -0
- package/dist/modules/auth/preferences.js.map +1 -0
- package/dist/modules/auth/repository.d.ts +54 -0
- package/dist/modules/auth/repository.d.ts.map +1 -0
- package/dist/modules/auth/repository.js +137 -0
- package/dist/modules/auth/repository.js.map +1 -0
- package/dist/modules/auth/routes.d.ts +10 -0
- package/dist/modules/auth/routes.d.ts.map +1 -0
- package/dist/modules/auth/routes.js +181 -0
- package/dist/modules/auth/routes.js.map +1 -0
- package/dist/modules/auth/schema.d.ts +530 -0
- package/dist/modules/auth/schema.d.ts.map +1 -0
- package/dist/modules/auth/schema.js +67 -0
- package/dist/modules/auth/schema.js.map +1 -0
- package/dist/modules/auth/service.d.ts +73 -0
- package/dist/modules/auth/service.d.ts.map +1 -0
- package/dist/modules/auth/service.js +288 -0
- package/dist/modules/auth/service.js.map +1 -0
- package/dist/modules/auth/session.d.ts +16 -0
- package/dist/modules/auth/session.d.ts.map +1 -0
- package/dist/modules/auth/session.js +30 -0
- package/dist/modules/auth/session.js.map +1 -0
- package/dist/modules/companies/index.d.ts +9 -0
- package/dist/modules/companies/index.d.ts.map +1 -0
- package/dist/modules/companies/index.js +37 -0
- package/dist/modules/companies/index.js.map +1 -0
- package/dist/modules/companies/repository.d.ts +40 -0
- package/dist/modules/companies/repository.d.ts.map +1 -0
- package/dist/modules/companies/repository.js +112 -0
- package/dist/modules/companies/repository.js.map +1 -0
- package/dist/modules/companies/routes.d.ts +89 -0
- package/dist/modules/companies/routes.d.ts.map +1 -0
- package/dist/modules/companies/routes.js +125 -0
- package/dist/modules/companies/routes.js.map +1 -0
- package/dist/modules/companies/schema.d.ts +381 -0
- package/dist/modules/companies/schema.d.ts.map +1 -0
- package/dist/modules/companies/schema.js +51 -0
- package/dist/modules/companies/schema.js.map +1 -0
- package/dist/modules/companies/service.d.ts +49 -0
- package/dist/modules/companies/service.d.ts.map +1 -0
- package/dist/modules/companies/service.js +184 -0
- package/dist/modules/companies/service.js.map +1 -0
- package/dist/modules/companies/tools.d.ts +4 -0
- package/dist/modules/companies/tools.d.ts.map +1 -0
- package/dist/modules/companies/tools.js +27 -0
- package/dist/modules/companies/tools.js.map +1 -0
- package/dist/modules/core.d.ts +21 -0
- package/dist/modules/core.d.ts.map +1 -0
- package/dist/modules/core.js +82 -0
- package/dist/modules/core.js.map +1 -0
- package/dist/modules/crudTools.d.ts +99 -0
- package/dist/modules/crudTools.d.ts.map +1 -0
- package/dist/modules/crudTools.js +123 -0
- package/dist/modules/crudTools.js.map +1 -0
- package/dist/modules/dashboard/attention.d.ts +39 -0
- package/dist/modules/dashboard/attention.d.ts.map +1 -0
- package/dist/modules/dashboard/attention.js +57 -0
- package/dist/modules/dashboard/attention.js.map +1 -0
- package/dist/modules/dashboard/index.d.ts +15 -0
- package/dist/modules/dashboard/index.d.ts.map +1 -0
- package/dist/modules/dashboard/index.js +44 -0
- package/dist/modules/dashboard/index.js.map +1 -0
- package/dist/modules/dashboard/repository.d.ts +83 -0
- package/dist/modules/dashboard/repository.d.ts.map +1 -0
- package/dist/modules/dashboard/repository.js +217 -0
- package/dist/modules/dashboard/repository.js.map +1 -0
- package/dist/modules/dashboard/routes.d.ts +21 -0
- package/dist/modules/dashboard/routes.d.ts.map +1 -0
- package/dist/modules/dashboard/routes.js +116 -0
- package/dist/modules/dashboard/routes.js.map +1 -0
- package/dist/modules/dashboard/service.d.ts +122 -0
- package/dist/modules/dashboard/service.d.ts.map +1 -0
- package/dist/modules/dashboard/service.js +215 -0
- package/dist/modules/dashboard/service.js.map +1 -0
- package/dist/modules/dashboard/tools.d.ts +4 -0
- package/dist/modules/dashboard/tools.d.ts.map +1 -0
- package/dist/modules/dashboard/tools.js +33 -0
- package/dist/modules/dashboard/tools.js.map +1 -0
- package/dist/modules/deals/index.d.ts +11 -0
- package/dist/modules/deals/index.d.ts.map +1 -0
- package/dist/modules/deals/index.js +38 -0
- package/dist/modules/deals/index.js.map +1 -0
- package/dist/modules/deals/repository.d.ts +44 -0
- package/dist/modules/deals/repository.d.ts.map +1 -0
- package/dist/modules/deals/repository.js +160 -0
- package/dist/modules/deals/repository.js.map +1 -0
- package/dist/modules/deals/routes.d.ts +50 -0
- package/dist/modules/deals/routes.d.ts.map +1 -0
- package/dist/modules/deals/routes.js +132 -0
- package/dist/modules/deals/routes.js.map +1 -0
- package/dist/modules/deals/schema.d.ts +419 -0
- package/dist/modules/deals/schema.d.ts.map +1 -0
- package/dist/modules/deals/schema.js +61 -0
- package/dist/modules/deals/schema.js.map +1 -0
- package/dist/modules/deals/service.d.ts +71 -0
- package/dist/modules/deals/service.d.ts.map +1 -0
- package/dist/modules/deals/service.js +277 -0
- package/dist/modules/deals/service.js.map +1 -0
- package/dist/modules/deals/tools.d.ts +4 -0
- package/dist/modules/deals/tools.d.ts.map +1 -0
- package/dist/modules/deals/tools.js +33 -0
- package/dist/modules/deals/tools.js.map +1 -0
- package/dist/modules/decisions/index.d.ts +11 -0
- package/dist/modules/decisions/index.d.ts.map +1 -0
- package/dist/modules/decisions/index.js +34 -0
- package/dist/modules/decisions/index.js.map +1 -0
- package/dist/modules/decisions/repository.d.ts +38 -0
- package/dist/modules/decisions/repository.d.ts.map +1 -0
- package/dist/modules/decisions/repository.js +126 -0
- package/dist/modules/decisions/repository.js.map +1 -0
- package/dist/modules/decisions/routes.d.ts +42 -0
- package/dist/modules/decisions/routes.d.ts.map +1 -0
- package/dist/modules/decisions/routes.js +131 -0
- package/dist/modules/decisions/routes.js.map +1 -0
- package/dist/modules/decisions/schema.d.ts +228 -0
- package/dist/modules/decisions/schema.d.ts.map +1 -0
- package/dist/modules/decisions/schema.js +41 -0
- package/dist/modules/decisions/schema.js.map +1 -0
- package/dist/modules/decisions/service.d.ts +60 -0
- package/dist/modules/decisions/service.d.ts.map +1 -0
- package/dist/modules/decisions/service.js +122 -0
- package/dist/modules/decisions/service.js.map +1 -0
- package/dist/modules/decisions/tools.d.ts +4 -0
- package/dist/modules/decisions/tools.d.ts.map +1 -0
- package/dist/modules/decisions/tools.js +32 -0
- package/dist/modules/decisions/tools.js.map +1 -0
- package/dist/modules/forms/embed.d.ts +50 -0
- package/dist/modules/forms/embed.d.ts.map +1 -0
- package/dist/modules/forms/embed.js +236 -0
- package/dist/modules/forms/embed.js.map +1 -0
- package/dist/modules/forms/fields.d.ts +71 -0
- package/dist/modules/forms/fields.d.ts.map +1 -0
- package/dist/modules/forms/fields.js +122 -0
- package/dist/modules/forms/fields.js.map +1 -0
- package/dist/modules/forms/index.d.ts +15 -0
- package/dist/modules/forms/index.d.ts.map +1 -0
- package/dist/modules/forms/index.js +53 -0
- package/dist/modules/forms/index.js.map +1 -0
- package/dist/modules/forms/mapping.d.ts +99 -0
- package/dist/modules/forms/mapping.d.ts.map +1 -0
- package/dist/modules/forms/mapping.js +152 -0
- package/dist/modules/forms/mapping.js.map +1 -0
- package/dist/modules/forms/publicRoutes.d.ts +11 -0
- package/dist/modules/forms/publicRoutes.d.ts.map +1 -0
- package/dist/modules/forms/publicRoutes.js +68 -0
- package/dist/modules/forms/publicRoutes.js.map +1 -0
- package/dist/modules/forms/repository.d.ts +65 -0
- package/dist/modules/forms/repository.d.ts.map +1 -0
- package/dist/modules/forms/repository.js +139 -0
- package/dist/modules/forms/repository.js.map +1 -0
- package/dist/modules/forms/routes.d.ts +106 -0
- package/dist/modules/forms/routes.d.ts.map +1 -0
- package/dist/modules/forms/routes.js +204 -0
- package/dist/modules/forms/routes.js.map +1 -0
- package/dist/modules/forms/schema.d.ts +643 -0
- package/dist/modules/forms/schema.d.ts.map +1 -0
- package/dist/modules/forms/schema.js +87 -0
- package/dist/modules/forms/schema.js.map +1 -0
- package/dist/modules/forms/service.d.ts +62 -0
- package/dist/modules/forms/service.d.ts.map +1 -0
- package/dist/modules/forms/service.js +208 -0
- package/dist/modules/forms/service.js.map +1 -0
- package/dist/modules/forms/submission.d.ts +30 -0
- package/dist/modules/forms/submission.d.ts.map +1 -0
- package/dist/modules/forms/submission.js +337 -0
- package/dist/modules/forms/submission.js.map +1 -0
- package/dist/modules/forms/tools.d.ts +4 -0
- package/dist/modules/forms/tools.d.ts.map +1 -0
- package/dist/modules/forms/tools.js +46 -0
- package/dist/modules/forms/tools.js.map +1 -0
- package/dist/modules/handbook/index.d.ts +15 -0
- package/dist/modules/handbook/index.d.ts.map +1 -0
- package/dist/modules/handbook/index.js +37 -0
- package/dist/modules/handbook/index.js.map +1 -0
- package/dist/modules/handbook/repository.d.ts +52 -0
- package/dist/modules/handbook/repository.d.ts.map +1 -0
- package/dist/modules/handbook/repository.js +109 -0
- package/dist/modules/handbook/repository.js.map +1 -0
- package/dist/modules/handbook/routes.d.ts +38 -0
- package/dist/modules/handbook/routes.d.ts.map +1 -0
- package/dist/modules/handbook/routes.js +103 -0
- package/dist/modules/handbook/routes.js.map +1 -0
- package/dist/modules/handbook/schema.d.ts +206 -0
- package/dist/modules/handbook/schema.d.ts.map +1 -0
- package/dist/modules/handbook/schema.js +37 -0
- package/dist/modules/handbook/schema.js.map +1 -0
- package/dist/modules/handbook/service.d.ts +59 -0
- package/dist/modules/handbook/service.d.ts.map +1 -0
- package/dist/modules/handbook/service.js +246 -0
- package/dist/modules/handbook/service.js.map +1 -0
- package/dist/modules/handbook/slugs.d.ts +28 -0
- package/dist/modules/handbook/slugs.d.ts.map +1 -0
- package/dist/modules/handbook/slugs.js +48 -0
- package/dist/modules/handbook/slugs.js.map +1 -0
- package/dist/modules/handbook/tools.d.ts +4 -0
- package/dist/modules/handbook/tools.d.ts.map +1 -0
- package/dist/modules/handbook/tools.js +26 -0
- package/dist/modules/handbook/tools.js.map +1 -0
- package/dist/modules/handbook/tree.d.ts +69 -0
- package/dist/modules/handbook/tree.d.ts.map +1 -0
- package/dist/modules/handbook/tree.js +117 -0
- package/dist/modules/handbook/tree.js.map +1 -0
- package/dist/modules/hiring/candidates.d.ts +70 -0
- package/dist/modules/hiring/candidates.d.ts.map +1 -0
- package/dist/modules/hiring/candidates.js +243 -0
- package/dist/modules/hiring/candidates.js.map +1 -0
- package/dist/modules/hiring/index.d.ts +15 -0
- package/dist/modules/hiring/index.d.ts.map +1 -0
- package/dist/modules/hiring/index.js +48 -0
- package/dist/modules/hiring/index.js.map +1 -0
- package/dist/modules/hiring/repository.d.ts +52 -0
- package/dist/modules/hiring/repository.d.ts.map +1 -0
- package/dist/modules/hiring/repository.js +137 -0
- package/dist/modules/hiring/repository.js.map +1 -0
- package/dist/modules/hiring/roles.d.ts +42 -0
- package/dist/modules/hiring/roles.d.ts.map +1 -0
- package/dist/modules/hiring/roles.js +104 -0
- package/dist/modules/hiring/roles.js.map +1 -0
- package/dist/modules/hiring/routes.d.ts +73 -0
- package/dist/modules/hiring/routes.d.ts.map +1 -0
- package/dist/modules/hiring/routes.js +170 -0
- package/dist/modules/hiring/routes.js.map +1 -0
- package/dist/modules/hiring/schema.d.ts +308 -0
- package/dist/modules/hiring/schema.d.ts.map +1 -0
- package/dist/modules/hiring/schema.js +62 -0
- package/dist/modules/hiring/schema.js.map +1 -0
- package/dist/modules/hiring/tools.d.ts +8 -0
- package/dist/modules/hiring/tools.d.ts.map +1 -0
- package/dist/modules/hiring/tools.js +50 -0
- package/dist/modules/hiring/tools.js.map +1 -0
- package/dist/modules/import-export/csv.d.ts +47 -0
- package/dist/modules/import-export/csv.d.ts.map +1 -0
- package/dist/modules/import-export/csv.js +138 -0
- package/dist/modules/import-export/csv.js.map +1 -0
- package/dist/modules/import-export/drafts.d.ts +83 -0
- package/dist/modules/import-export/drafts.d.ts.map +1 -0
- package/dist/modules/import-export/drafts.js +97 -0
- package/dist/modules/import-export/drafts.js.map +1 -0
- package/dist/modules/import-export/exportRows.d.ts +8 -0
- package/dist/modules/import-export/exportRows.d.ts.map +1 -0
- package/dist/modules/import-export/exportRows.js +71 -0
- package/dist/modules/import-export/exportRows.js.map +1 -0
- package/dist/modules/import-export/index.d.ts +15 -0
- package/dist/modules/import-export/index.d.ts.map +1 -0
- package/dist/modules/import-export/index.js +43 -0
- package/dist/modules/import-export/index.js.map +1 -0
- package/dist/modules/import-export/mapping.d.ts +46 -0
- package/dist/modules/import-export/mapping.d.ts.map +1 -0
- package/dist/modules/import-export/mapping.js +115 -0
- package/dist/modules/import-export/mapping.js.map +1 -0
- package/dist/modules/import-export/plan.d.ts +107 -0
- package/dist/modules/import-export/plan.d.ts.map +1 -0
- package/dist/modules/import-export/plan.js +178 -0
- package/dist/modules/import-export/plan.js.map +1 -0
- package/dist/modules/import-export/presets.d.ts +39 -0
- package/dist/modules/import-export/presets.d.ts.map +1 -0
- package/dist/modules/import-export/presets.js +151 -0
- package/dist/modules/import-export/presets.js.map +1 -0
- package/dist/modules/import-export/repository.d.ts +171 -0
- package/dist/modules/import-export/repository.d.ts.map +1 -0
- package/dist/modules/import-export/repository.js +343 -0
- package/dist/modules/import-export/repository.js.map +1 -0
- package/dist/modules/import-export/routes.d.ts +9 -0
- package/dist/modules/import-export/routes.d.ts.map +1 -0
- package/dist/modules/import-export/routes.js +199 -0
- package/dist/modules/import-export/routes.js.map +1 -0
- package/dist/modules/import-export/schema.d.ts +494 -0
- package/dist/modules/import-export/schema.d.ts.map +1 -0
- package/dist/modules/import-export/schema.js +99 -0
- package/dist/modules/import-export/schema.js.map +1 -0
- package/dist/modules/import-export/service.d.ts +74 -0
- package/dist/modules/import-export/service.d.ts.map +1 -0
- package/dist/modules/import-export/service.js +561 -0
- package/dist/modules/import-export/service.js.map +1 -0
- package/dist/modules/import-export/streams.d.ts +4 -0
- package/dist/modules/import-export/streams.d.ts.map +1 -0
- package/dist/modules/import-export/streams.js +55 -0
- package/dist/modules/import-export/streams.js.map +1 -0
- package/dist/modules/import-export/tools.d.ts +22 -0
- package/dist/modules/import-export/tools.d.ts.map +1 -0
- package/dist/modules/import-export/tools.js +116 -0
- package/dist/modules/import-export/tools.js.map +1 -0
- package/dist/modules/import-export/validation.d.ts +7 -0
- package/dist/modules/import-export/validation.d.ts.map +1 -0
- package/dist/modules/import-export/validation.js +114 -0
- package/dist/modules/import-export/validation.js.map +1 -0
- package/dist/modules/import-export/writes.d.ts +45 -0
- package/dist/modules/import-export/writes.d.ts.map +1 -0
- package/dist/modules/import-export/writes.js +247 -0
- package/dist/modules/import-export/writes.js.map +1 -0
- package/dist/modules/integrations/schema.d.ts +185 -0
- package/dist/modules/integrations/schema.d.ts.map +1 -0
- package/dist/modules/integrations/schema.js +26 -0
- package/dist/modules/integrations/schema.js.map +1 -0
- package/dist/modules/mcp/index.d.ts +26 -0
- package/dist/modules/mcp/index.d.ts.map +1 -0
- package/dist/modules/mcp/index.js +45 -0
- package/dist/modules/mcp/index.js.map +1 -0
- package/dist/modules/mcp/protocol.d.ts +166 -0
- package/dist/modules/mcp/protocol.d.ts.map +1 -0
- package/dist/modules/mcp/protocol.js +292 -0
- package/dist/modules/mcp/protocol.js.map +1 -0
- package/dist/modules/mcp/router.d.ts +23 -0
- package/dist/modules/mcp/router.d.ts.map +1 -0
- package/dist/modules/mcp/router.js +298 -0
- package/dist/modules/mcp/router.js.map +1 -0
- package/dist/modules/notes/index.d.ts +9 -0
- package/dist/modules/notes/index.d.ts.map +1 -0
- package/dist/modules/notes/index.js +37 -0
- package/dist/modules/notes/index.js.map +1 -0
- package/dist/modules/notes/repository.d.ts +34 -0
- package/dist/modules/notes/repository.d.ts.map +1 -0
- package/dist/modules/notes/repository.js +70 -0
- package/dist/modules/notes/repository.js.map +1 -0
- package/dist/modules/notes/routes.d.ts +37 -0
- package/dist/modules/notes/routes.d.ts.map +1 -0
- package/dist/modules/notes/routes.js +124 -0
- package/dist/modules/notes/routes.js.map +1 -0
- package/dist/modules/notes/schema.d.ts +176 -0
- package/dist/modules/notes/schema.d.ts.map +1 -0
- package/dist/modules/notes/schema.js +35 -0
- package/dist/modules/notes/schema.js.map +1 -0
- package/dist/modules/notes/service.d.ts +49 -0
- package/dist/modules/notes/service.d.ts.map +1 -0
- package/dist/modules/notes/service.js +118 -0
- package/dist/modules/notes/service.js.map +1 -0
- package/dist/modules/notes/tools.d.ts +4 -0
- package/dist/modules/notes/tools.d.ts.map +1 -0
- package/dist/modules/notes/tools.js +41 -0
- package/dist/modules/notes/tools.js.map +1 -0
- package/dist/modules/opportunities/index.d.ts +11 -0
- package/dist/modules/opportunities/index.d.ts.map +1 -0
- package/dist/modules/opportunities/index.js +38 -0
- package/dist/modules/opportunities/index.js.map +1 -0
- package/dist/modules/opportunities/repository.d.ts +28 -0
- package/dist/modules/opportunities/repository.d.ts.map +1 -0
- package/dist/modules/opportunities/repository.js +89 -0
- package/dist/modules/opportunities/repository.js.map +1 -0
- package/dist/modules/opportunities/routes.d.ts +39 -0
- package/dist/modules/opportunities/routes.d.ts.map +1 -0
- package/dist/modules/opportunities/routes.js +104 -0
- package/dist/modules/opportunities/routes.js.map +1 -0
- package/dist/modules/opportunities/schema.d.ts +266 -0
- package/dist/modules/opportunities/schema.d.ts.map +1 -0
- package/dist/modules/opportunities/schema.js +41 -0
- package/dist/modules/opportunities/schema.js.map +1 -0
- package/dist/modules/opportunities/service.d.ts +60 -0
- package/dist/modules/opportunities/service.d.ts.map +1 -0
- package/dist/modules/opportunities/service.js +212 -0
- package/dist/modules/opportunities/service.js.map +1 -0
- package/dist/modules/opportunities/tools.d.ts +4 -0
- package/dist/modules/opportunities/tools.d.ts.map +1 -0
- package/dist/modules/opportunities/tools.js +33 -0
- package/dist/modules/opportunities/tools.js.map +1 -0
- package/dist/modules/partnerships/index.d.ts +11 -0
- package/dist/modules/partnerships/index.d.ts.map +1 -0
- package/dist/modules/partnerships/index.js +38 -0
- package/dist/modules/partnerships/index.js.map +1 -0
- package/dist/modules/partnerships/repository.d.ts +47 -0
- package/dist/modules/partnerships/repository.d.ts.map +1 -0
- package/dist/modules/partnerships/repository.js +169 -0
- package/dist/modules/partnerships/repository.js.map +1 -0
- package/dist/modules/partnerships/routes.d.ts +46 -0
- package/dist/modules/partnerships/routes.d.ts.map +1 -0
- package/dist/modules/partnerships/routes.js +122 -0
- package/dist/modules/partnerships/routes.js.map +1 -0
- package/dist/modules/partnerships/schema.d.ts +338 -0
- package/dist/modules/partnerships/schema.d.ts.map +1 -0
- package/dist/modules/partnerships/schema.js +54 -0
- package/dist/modules/partnerships/schema.js.map +1 -0
- package/dist/modules/partnerships/service.d.ts +71 -0
- package/dist/modules/partnerships/service.d.ts.map +1 -0
- package/dist/modules/partnerships/service.js +273 -0
- package/dist/modules/partnerships/service.js.map +1 -0
- package/dist/modules/partnerships/tools.d.ts +4 -0
- package/dist/modules/partnerships/tools.d.ts.map +1 -0
- package/dist/modules/partnerships/tools.js +35 -0
- package/dist/modules/partnerships/tools.js.map +1 -0
- package/dist/modules/people/index.d.ts +9 -0
- package/dist/modules/people/index.d.ts.map +1 -0
- package/dist/modules/people/index.js +37 -0
- package/dist/modules/people/index.js.map +1 -0
- package/dist/modules/people/repository.d.ts +31 -0
- package/dist/modules/people/repository.d.ts.map +1 -0
- package/dist/modules/people/repository.js +109 -0
- package/dist/modules/people/repository.js.map +1 -0
- package/dist/modules/people/routes.d.ts +111 -0
- package/dist/modules/people/routes.d.ts.map +1 -0
- package/dist/modules/people/routes.js +134 -0
- package/dist/modules/people/routes.js.map +1 -0
- package/dist/modules/people/schema.d.ts +354 -0
- package/dist/modules/people/schema.d.ts.map +1 -0
- package/dist/modules/people/schema.js +61 -0
- package/dist/modules/people/schema.js.map +1 -0
- package/dist/modules/people/service.d.ts +56 -0
- package/dist/modules/people/service.d.ts.map +1 -0
- package/dist/modules/people/service.js +190 -0
- package/dist/modules/people/service.js.map +1 -0
- package/dist/modules/people/tools.d.ts +4 -0
- package/dist/modules/people/tools.d.ts.map +1 -0
- package/dist/modules/people/tools.js +27 -0
- package/dist/modules/people/tools.js.map +1 -0
- package/dist/modules/pipelines/index.d.ts +9 -0
- package/dist/modules/pipelines/index.d.ts.map +1 -0
- package/dist/modules/pipelines/index.js +37 -0
- package/dist/modules/pipelines/index.js.map +1 -0
- package/dist/modules/pipelines/repository.d.ts +26 -0
- package/dist/modules/pipelines/repository.d.ts.map +1 -0
- package/dist/modules/pipelines/repository.js +67 -0
- package/dist/modules/pipelines/repository.js.map +1 -0
- package/dist/modules/pipelines/routes.d.ts +33 -0
- package/dist/modules/pipelines/routes.d.ts.map +1 -0
- package/dist/modules/pipelines/routes.js +98 -0
- package/dist/modules/pipelines/routes.js.map +1 -0
- package/dist/modules/pipelines/schema.d.ts +170 -0
- package/dist/modules/pipelines/schema.d.ts.map +1 -0
- package/dist/modules/pipelines/schema.js +30 -0
- package/dist/modules/pipelines/schema.js.map +1 -0
- package/dist/modules/pipelines/service.d.ts +49 -0
- package/dist/modules/pipelines/service.d.ts.map +1 -0
- package/dist/modules/pipelines/service.js +227 -0
- package/dist/modules/pipelines/service.js.map +1 -0
- package/dist/modules/pipelines/tools.d.ts +4 -0
- package/dist/modules/pipelines/tools.d.ts.map +1 -0
- package/dist/modules/pipelines/tools.js +43 -0
- package/dist/modules/pipelines/tools.js.map +1 -0
- package/dist/modules/plans/index.d.ts +10 -0
- package/dist/modules/plans/index.d.ts.map +1 -0
- package/dist/modules/plans/index.js +33 -0
- package/dist/modules/plans/index.js.map +1 -0
- package/dist/modules/plans/repository.d.ts +49 -0
- package/dist/modules/plans/repository.d.ts.map +1 -0
- package/dist/modules/plans/repository.js +94 -0
- package/dist/modules/plans/repository.js.map +1 -0
- package/dist/modules/plans/routes.d.ts +46 -0
- package/dist/modules/plans/routes.d.ts.map +1 -0
- package/dist/modules/plans/routes.js +152 -0
- package/dist/modules/plans/routes.js.map +1 -0
- package/dist/modules/plans/schema.d.ts +209 -0
- package/dist/modules/plans/schema.d.ts.map +1 -0
- package/dist/modules/plans/schema.js +37 -0
- package/dist/modules/plans/schema.js.map +1 -0
- package/dist/modules/plans/service.d.ts +57 -0
- package/dist/modules/plans/service.d.ts.map +1 -0
- package/dist/modules/plans/service.js +125 -0
- package/dist/modules/plans/service.js.map +1 -0
- package/dist/modules/plans/tools.d.ts +4 -0
- package/dist/modules/plans/tools.d.ts.map +1 -0
- package/dist/modules/plans/tools.js +39 -0
- package/dist/modules/plans/tools.js.map +1 -0
- package/dist/modules/positions/index.d.ts +9 -0
- package/dist/modules/positions/index.d.ts.map +1 -0
- package/dist/modules/positions/index.js +36 -0
- package/dist/modules/positions/index.js.map +1 -0
- package/dist/modules/positions/repository.d.ts +34 -0
- package/dist/modules/positions/repository.d.ts.map +1 -0
- package/dist/modules/positions/repository.js +71 -0
- package/dist/modules/positions/repository.js.map +1 -0
- package/dist/modules/positions/routes.d.ts +22 -0
- package/dist/modules/positions/routes.d.ts.map +1 -0
- package/dist/modules/positions/routes.js +56 -0
- package/dist/modules/positions/routes.js.map +1 -0
- package/dist/modules/positions/schema.d.ts +154 -0
- package/dist/modules/positions/schema.d.ts.map +1 -0
- package/dist/modules/positions/schema.js +36 -0
- package/dist/modules/positions/schema.js.map +1 -0
- package/dist/modules/positions/service.d.ts +46 -0
- package/dist/modules/positions/service.d.ts.map +1 -0
- package/dist/modules/positions/service.js +159 -0
- package/dist/modules/positions/service.js.map +1 -0
- package/dist/modules/positions/tools.d.ts +4 -0
- package/dist/modules/positions/tools.d.ts.map +1 -0
- package/dist/modules/positions/tools.js +26 -0
- package/dist/modules/positions/tools.js.map +1 -0
- package/dist/modules/raises/index.d.ts +11 -0
- package/dist/modules/raises/index.d.ts.map +1 -0
- package/dist/modules/raises/index.js +38 -0
- package/dist/modules/raises/index.js.map +1 -0
- package/dist/modules/raises/repository.d.ts +48 -0
- package/dist/modules/raises/repository.d.ts.map +1 -0
- package/dist/modules/raises/repository.js +164 -0
- package/dist/modules/raises/repository.js.map +1 -0
- package/dist/modules/raises/routes.d.ts +48 -0
- package/dist/modules/raises/routes.d.ts.map +1 -0
- package/dist/modules/raises/routes.js +126 -0
- package/dist/modules/raises/routes.js.map +1 -0
- package/dist/modules/raises/schema.d.ts +356 -0
- package/dist/modules/raises/schema.d.ts.map +1 -0
- package/dist/modules/raises/schema.js +55 -0
- package/dist/modules/raises/schema.js.map +1 -0
- package/dist/modules/raises/service.d.ts +79 -0
- package/dist/modules/raises/service.d.ts.map +1 -0
- package/dist/modules/raises/service.js +275 -0
- package/dist/modules/raises/service.js.map +1 -0
- package/dist/modules/raises/tools.d.ts +4 -0
- package/dist/modules/raises/tools.d.ts.map +1 -0
- package/dist/modules/raises/tools.js +33 -0
- package/dist/modules/raises/tools.js.map +1 -0
- package/dist/modules/recordTargets.d.ts +55 -0
- package/dist/modules/recordTargets.d.ts.map +1 -0
- package/dist/modules/recordTargets.js +107 -0
- package/dist/modules/recordTargets.js.map +1 -0
- package/dist/modules/references.d.ts +8 -0
- package/dist/modules/references.d.ts.map +1 -0
- package/dist/modules/references.js +40 -0
- package/dist/modules/references.js.map +1 -0
- package/dist/modules/reseal.d.ts +33 -0
- package/dist/modules/reseal.d.ts.map +1 -0
- package/dist/modules/reseal.js +108 -0
- package/dist/modules/reseal.js.map +1 -0
- package/dist/modules/search/index.d.ts +21 -0
- package/dist/modules/search/index.d.ts.map +1 -0
- package/dist/modules/search/index.js +50 -0
- package/dist/modules/search/index.js.map +1 -0
- package/dist/modules/search/query.d.ts +44 -0
- package/dist/modules/search/query.d.ts.map +1 -0
- package/dist/modules/search/query.js +88 -0
- package/dist/modules/search/query.js.map +1 -0
- package/dist/modules/search/repository.d.ts +44 -0
- package/dist/modules/search/repository.d.ts.map +1 -0
- package/dist/modules/search/repository.js +252 -0
- package/dist/modules/search/repository.js.map +1 -0
- package/dist/modules/search/routes.d.ts +17 -0
- package/dist/modules/search/routes.d.ts.map +1 -0
- package/dist/modules/search/routes.js +93 -0
- package/dist/modules/search/routes.js.map +1 -0
- package/dist/modules/search/service.d.ts +55 -0
- package/dist/modules/search/service.d.ts.map +1 -0
- package/dist/modules/search/service.js +69 -0
- package/dist/modules/search/service.js.map +1 -0
- package/dist/modules/search/tools.d.ts +4 -0
- package/dist/modules/search/tools.d.ts.map +1 -0
- package/dist/modules/search/tools.js +52 -0
- package/dist/modules/search/tools.js.map +1 -0
- package/dist/modules/stagedRecords.d.ts +28 -0
- package/dist/modules/stagedRecords.d.ts.map +1 -0
- package/dist/modules/stagedRecords.js +50 -0
- package/dist/modules/stagedRecords.js.map +1 -0
- package/dist/modules/webhooks/delivery.d.ts +98 -0
- package/dist/modules/webhooks/delivery.d.ts.map +1 -0
- package/dist/modules/webhooks/delivery.js +237 -0
- package/dist/modules/webhooks/delivery.js.map +1 -0
- package/dist/modules/webhooks/index.d.ts +23 -0
- package/dist/modules/webhooks/index.d.ts.map +1 -0
- package/dist/modules/webhooks/index.js +48 -0
- package/dist/modules/webhooks/index.js.map +1 -0
- package/dist/modules/webhooks/payloads.d.ts +31 -0
- package/dist/modules/webhooks/payloads.d.ts.map +1 -0
- package/dist/modules/webhooks/payloads.js +52 -0
- package/dist/modules/webhooks/payloads.js.map +1 -0
- package/dist/modules/webhooks/repository.d.ts +70 -0
- package/dist/modules/webhooks/repository.d.ts.map +1 -0
- package/dist/modules/webhooks/repository.js +140 -0
- package/dist/modules/webhooks/repository.js.map +1 -0
- package/dist/modules/webhooks/routes.d.ts +47 -0
- package/dist/modules/webhooks/routes.d.ts.map +1 -0
- package/dist/modules/webhooks/routes.js +170 -0
- package/dist/modules/webhooks/routes.js.map +1 -0
- package/dist/modules/webhooks/schema.d.ts +396 -0
- package/dist/modules/webhooks/schema.d.ts.map +1 -0
- package/dist/modules/webhooks/schema.js +61 -0
- package/dist/modules/webhooks/schema.js.map +1 -0
- package/dist/modules/webhooks/service.d.ts +65 -0
- package/dist/modules/webhooks/service.d.ts.map +1 -0
- package/dist/modules/webhooks/service.js +202 -0
- package/dist/modules/webhooks/service.js.map +1 -0
- package/dist/modules/webhooks/signing.d.ts +57 -0
- package/dist/modules/webhooks/signing.d.ts.map +1 -0
- package/dist/modules/webhooks/signing.js +69 -0
- package/dist/modules/webhooks/signing.js.map +1 -0
- package/dist/modules/webhooks/tools.d.ts +4 -0
- package/dist/modules/webhooks/tools.d.ts.map +1 -0
- package/dist/modules/webhooks/tools.js +77 -0
- package/dist/modules/webhooks/tools.js.map +1 -0
- package/dist/modules/webhooks/url.d.ts +10 -0
- package/dist/modules/webhooks/url.d.ts.map +1 -0
- package/dist/modules/webhooks/url.js +9 -0
- package/dist/modules/webhooks/url.js.map +1 -0
- package/dist/modules/workspace/capabilities.d.ts +9 -0
- package/dist/modules/workspace/capabilities.d.ts.map +1 -0
- package/dist/modules/workspace/capabilities.js +12 -0
- package/dist/modules/workspace/capabilities.js.map +1 -0
- package/dist/modules/workspace/idempotencyMiddleware.d.ts +16 -0
- package/dist/modules/workspace/idempotencyMiddleware.d.ts.map +1 -0
- package/dist/modules/workspace/idempotencyMiddleware.js +142 -0
- package/dist/modules/workspace/idempotencyMiddleware.js.map +1 -0
- package/dist/modules/workspace/idempotencyRepository.d.ts +43 -0
- package/dist/modules/workspace/idempotencyRepository.d.ts.map +1 -0
- package/dist/modules/workspace/idempotencyRepository.js +75 -0
- package/dist/modules/workspace/idempotencyRepository.js.map +1 -0
- package/dist/modules/workspace/index.d.ts +9 -0
- package/dist/modules/workspace/index.d.ts.map +1 -0
- package/dist/modules/workspace/index.js +53 -0
- package/dist/modules/workspace/index.js.map +1 -0
- package/dist/modules/workspace/repository.d.ts +112 -0
- package/dist/modules/workspace/repository.d.ts.map +1 -0
- package/dist/modules/workspace/repository.js +266 -0
- package/dist/modules/workspace/repository.js.map +1 -0
- package/dist/modules/workspace/roles.d.ts +22 -0
- package/dist/modules/workspace/roles.d.ts.map +1 -0
- package/dist/modules/workspace/roles.js +31 -0
- package/dist/modules/workspace/roles.js.map +1 -0
- package/dist/modules/workspace/routes.d.ts +41 -0
- package/dist/modules/workspace/routes.d.ts.map +1 -0
- package/dist/modules/workspace/routes.js +158 -0
- package/dist/modules/workspace/routes.js.map +1 -0
- package/dist/modules/workspace/schema.d.ts +719 -0
- package/dist/modules/workspace/schema.d.ts.map +1 -0
- package/dist/modules/workspace/schema.js +102 -0
- package/dist/modules/workspace/schema.js.map +1 -0
- package/dist/modules/workspace/service.d.ts +94 -0
- package/dist/modules/workspace/service.d.ts.map +1 -0
- package/dist/modules/workspace/service.js +528 -0
- package/dist/modules/workspace/service.js.map +1 -0
- package/dist/modules/workspace/starters.d.ts +22 -0
- package/dist/modules/workspace/starters.d.ts.map +1 -0
- package/dist/modules/workspace/starters.js +56 -0
- package/dist/modules/workspace/starters.js.map +1 -0
- package/dist/modules/workspace/tools.d.ts +4 -0
- package/dist/modules/workspace/tools.d.ts.map +1 -0
- package/dist/modules/workspace/tools.js +95 -0
- package/dist/modules/workspace/tools.js.map +1 -0
- package/dist/runtime/entitlements.d.ts +66 -0
- package/dist/runtime/entitlements.d.ts.map +1 -0
- package/dist/runtime/entitlements.js +62 -0
- package/dist/runtime/entitlements.js.map +1 -0
- package/dist/runtime/events.d.ts +139 -0
- package/dist/runtime/events.d.ts.map +1 -0
- package/dist/runtime/events.js +98 -0
- package/dist/runtime/events.js.map +1 -0
- package/dist/runtime/migrate.d.ts +28 -0
- package/dist/runtime/migrate.d.ts.map +1 -0
- package/dist/runtime/migrate.js +43 -0
- package/dist/runtime/migrate.js.map +1 -0
- package/dist/runtime/module.d.ts +138 -0
- package/dist/runtime/module.d.ts.map +1 -0
- package/dist/runtime/module.js +2 -0
- package/dist/runtime/module.js.map +1 -0
- package/dist/runtime/moduleConfig.d.ts +21 -0
- package/dist/runtime/moduleConfig.d.ts.map +1 -0
- package/dist/runtime/moduleConfig.js +54 -0
- package/dist/runtime/moduleConfig.js.map +1 -0
- package/dist/runtime/order.d.ts +21 -0
- package/dist/runtime/order.d.ts.map +1 -0
- package/dist/runtime/order.js +72 -0
- package/dist/runtime/order.js.map +1 -0
- package/dist/runtime/registry.d.ts +66 -0
- package/dist/runtime/registry.d.ts.map +1 -0
- package/dist/runtime/registry.js +148 -0
- package/dist/runtime/registry.js.map +1 -0
- package/dist/runtime/transaction.d.ts +34 -0
- package/dist/runtime/transaction.d.ts.map +1 -0
- package/dist/runtime/transaction.js +24 -0
- package/dist/runtime/transaction.js.map +1 -0
- package/dist/schema/index.d.ts +30 -0
- package/dist/schema/index.d.ts.map +1 -0
- package/dist/schema/index.js +30 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/testing/app.d.ts +42 -0
- package/dist/testing/app.d.ts.map +1 -0
- package/dist/testing/app.js +31 -0
- package/dist/testing/app.js.map +1 -0
- package/dist/testing/client.d.ts +34 -0
- package/dist/testing/client.d.ts.map +1 -0
- package/dist/testing/client.js +70 -0
- package/dist/testing/client.js.map +1 -0
- package/dist/testing/database.d.ts +17 -0
- package/dist/testing/database.d.ts.map +1 -0
- package/dist/testing/database.js +84 -0
- package/dist/testing/database.js.map +1 -0
- package/dist/testing/environment.d.ts +17 -0
- package/dist/testing/environment.d.ts.map +1 -0
- package/dist/testing/environment.js +19 -0
- package/dist/testing/environment.js.map +1 -0
- package/dist/testing/fixtures.d.ts +22 -0
- package/dist/testing/fixtures.d.ts.map +1 -0
- package/dist/testing/fixtures.js +55 -0
- package/dist/testing/fixtures.js.map +1 -0
- package/dist/testing/index.d.ts +10 -0
- package/dist/testing/index.d.ts.map +1 -0
- package/dist/testing/index.js +6 -0
- package/dist/testing/index.js.map +1 -0
- package/dist/testing/services.d.ts +18 -0
- package/dist/testing/services.d.ts.map +1 -0
- package/dist/testing/services.js +43 -0
- package/dist/testing/services.js.map +1 -0
- package/migrations/0000_initial_schema.sql +597 -0
- package/migrations/0001_uneven_lockjaw.sql +11 -0
- package/migrations/0002_neat_madame_web.sql +2 -0
- package/migrations/0003_bright_shockwave.sql +1 -0
- package/migrations/0004_drop_unused_import_columns.sql +2 -0
- package/migrations/0005_import_job_rows.sql +23 -0
- package/migrations/0006_drop_webhook_secret_hash.sql +1 -0
- package/migrations/0007_add_webhook_secret_encrypted.sql +1 -0
- package/migrations/0008_rich_mister_sinister.sql +3 -0
- package/migrations/0009_natural_proemial_gods.sql +1 -0
- package/migrations/0010_fine_brood.sql +1 -0
- package/migrations/0011_add_webhook_previous_secret.sql +2 -0
- package/migrations/0012_idempotency_keys_response_nullable.sql +1 -0
- package/migrations/0013_add_agent_run_failure_reason.sql +1 -0
- package/migrations/0014_right_shinko_yamashiro.sql +12 -0
- package/migrations/0015_peaceful_chimera.sql +33 -0
- package/migrations/meta/0000_snapshot.json +4467 -0
- package/migrations/meta/0001_snapshot.json +4539 -0
- package/migrations/meta/0002_snapshot.json +4539 -0
- package/migrations/meta/0003_snapshot.json +4544 -0
- package/migrations/meta/0004_snapshot.json +4531 -0
- package/migrations/meta/0005_snapshot.json +4674 -0
- package/migrations/meta/0006_snapshot.json +4668 -0
- package/migrations/meta/0007_snapshot.json +4674 -0
- package/migrations/meta/0008_snapshot.json +4694 -0
- package/migrations/meta/0009_snapshot.json +4700 -0
- package/migrations/meta/0010_snapshot.json +4694 -0
- package/migrations/meta/0011_snapshot.json +4706 -0
- package/migrations/meta/0012_snapshot.json +4706 -0
- package/migrations/meta/0013_snapshot.json +4712 -0
- package/migrations/meta/0014_snapshot.json +4802 -0
- package/migrations/meta/0015_snapshot.json +5077 -0
- package/migrations/meta/_journal.json +118 -0
- package/package.json +68 -0
- package/src/app.ts +157 -0
- package/src/index.ts +113 -0
- package/src/lib/actor.ts +99 -0
- package/src/lib/changes.ts +43 -0
- package/src/lib/columns.ts +170 -0
- package/src/lib/config.ts +86 -0
- package/src/lib/database.ts +118 -0
- package/src/lib/dates.ts +18 -0
- package/src/lib/email.ts +65 -0
- package/src/lib/errors.ts +156 -0
- package/src/lib/http.ts +109 -0
- package/src/lib/ids.ts +61 -0
- package/src/lib/logger.ts +73 -0
- package/src/lib/moduleConfig.ts +65 -0
- package/src/lib/normalisation.ts +36 -0
- package/src/lib/pagination.ts +291 -0
- package/src/lib/passwords.ts +56 -0
- package/src/lib/search.ts +29 -0
- package/src/lib/secrets.ts +223 -0
- package/src/lib/timezones.ts +59 -0
- package/src/lib/tokens.ts +37 -0
- package/src/lib/url.ts +52 -0
- package/src/modules/activities/index.ts +43 -0
- package/src/modules/activities/recorder.ts +108 -0
- package/src/modules/activities/repository.ts +196 -0
- package/src/modules/activities/routes.ts +78 -0
- package/src/modules/activities/schema.ts +41 -0
- package/src/modules/activities/service.ts +93 -0
- package/src/modules/activities/tools.ts +40 -0
- package/src/modules/activities/wording.ts +168 -0
- package/src/modules/agent-tasks/catalog.ts +712 -0
- package/src/modules/agent-tasks/dispatch.ts +188 -0
- package/src/modules/agent-tasks/index.ts +79 -0
- package/src/modules/agent-tasks/prompt.ts +140 -0
- package/src/modules/agent-tasks/repository.ts +152 -0
- package/src/modules/agent-tasks/resolve.ts +704 -0
- package/src/modules/agent-tasks/routes.ts +260 -0
- package/src/modules/agent-tasks/schema.ts +57 -0
- package/src/modules/agent-tasks/service.ts +370 -0
- package/src/modules/agent-tasks/wire.ts +61 -0
- package/src/modules/api-keys/index.ts +34 -0
- package/src/modules/api-keys/keys.ts +59 -0
- package/src/modules/api-keys/repository.ts +82 -0
- package/src/modules/api-keys/routes.ts +83 -0
- package/src/modules/api-keys/schema.ts +28 -0
- package/src/modules/api-keys/service.ts +152 -0
- package/src/modules/attachedRecords.ts +85 -0
- package/src/modules/auth/actor.ts +17 -0
- package/src/modules/auth/credentials.ts +153 -0
- package/src/modules/auth/index.ts +49 -0
- package/src/modules/auth/preferences.ts +57 -0
- package/src/modules/auth/repository.ts +240 -0
- package/src/modules/auth/routes.ts +247 -0
- package/src/modules/auth/schema.ts +77 -0
- package/src/modules/auth/service.ts +441 -0
- package/src/modules/auth/session.ts +40 -0
- package/src/modules/companies/index.ts +43 -0
- package/src/modules/companies/repository.ts +185 -0
- package/src/modules/companies/routes.ts +170 -0
- package/src/modules/companies/schema.ts +66 -0
- package/src/modules/companies/service.ts +267 -0
- package/src/modules/companies/tools.ts +32 -0
- package/src/modules/core.ts +93 -0
- package/src/modules/crudTools.ts +226 -0
- package/src/modules/dashboard/attention.ts +67 -0
- package/src/modules/dashboard/index.ts +49 -0
- package/src/modules/dashboard/repository.ts +360 -0
- package/src/modules/dashboard/routes.ts +171 -0
- package/src/modules/dashboard/service.ts +449 -0
- package/src/modules/dashboard/tools.ts +39 -0
- package/src/modules/deals/index.ts +44 -0
- package/src/modules/deals/repository.ts +251 -0
- package/src/modules/deals/routes.ts +166 -0
- package/src/modules/deals/schema.ts +72 -0
- package/src/modules/deals/service.ts +433 -0
- package/src/modules/deals/tools.ts +39 -0
- package/src/modules/decisions/index.ts +40 -0
- package/src/modules/decisions/repository.ts +204 -0
- package/src/modules/decisions/routes.ts +184 -0
- package/src/modules/decisions/schema.ts +56 -0
- package/src/modules/decisions/service.ts +223 -0
- package/src/modules/decisions/tools.ts +38 -0
- package/src/modules/forms/embed.ts +274 -0
- package/src/modules/forms/fields.ts +206 -0
- package/src/modules/forms/index.ts +61 -0
- package/src/modules/forms/mapping.ts +222 -0
- package/src/modules/forms/publicRoutes.ts +92 -0
- package/src/modules/forms/repository.ts +223 -0
- package/src/modules/forms/routes.ts +276 -0
- package/src/modules/forms/schema.ts +135 -0
- package/src/modules/forms/service.ts +362 -0
- package/src/modules/forms/submission.ts +496 -0
- package/src/modules/forms/tools.ts +66 -0
- package/src/modules/handbook/index.ts +43 -0
- package/src/modules/handbook/repository.ts +173 -0
- package/src/modules/handbook/routes.ts +145 -0
- package/src/modules/handbook/schema.ts +43 -0
- package/src/modules/handbook/service.ts +399 -0
- package/src/modules/handbook/slugs.ts +54 -0
- package/src/modules/handbook/tools.ts +32 -0
- package/src/modules/handbook/tree.ts +158 -0
- package/src/modules/hiring/candidates.ts +391 -0
- package/src/modules/hiring/index.ts +55 -0
- package/src/modules/hiring/repository.ts +244 -0
- package/src/modules/hiring/roles.ts +174 -0
- package/src/modules/hiring/routes.ts +257 -0
- package/src/modules/hiring/schema.ts +93 -0
- package/src/modules/hiring/tools.ts +73 -0
- package/src/modules/import-export/csv.ts +180 -0
- package/src/modules/import-export/drafts.ts +182 -0
- package/src/modules/import-export/exportRows.ts +85 -0
- package/src/modules/import-export/index.ts +49 -0
- package/src/modules/import-export/mapping.ts +154 -0
- package/src/modules/import-export/plan.ts +311 -0
- package/src/modules/import-export/presets.ts +183 -0
- package/src/modules/import-export/repository.ts +603 -0
- package/src/modules/import-export/routes.ts +276 -0
- package/src/modules/import-export/schema.ts +142 -0
- package/src/modules/import-export/service.ts +842 -0
- package/src/modules/import-export/streams.ts +98 -0
- package/src/modules/import-export/tools.ts +153 -0
- package/src/modules/import-export/validation.ts +163 -0
- package/src/modules/import-export/writes.ts +365 -0
- package/src/modules/integrations/schema.ts +31 -0
- package/src/modules/mcp/index.ts +52 -0
- package/src/modules/mcp/protocol.ts +442 -0
- package/src/modules/mcp/router.ts +425 -0
- package/src/modules/notes/index.ts +43 -0
- package/src/modules/notes/repository.ts +130 -0
- package/src/modules/notes/routes.ts +170 -0
- package/src/modules/notes/schema.ts +42 -0
- package/src/modules/notes/service.ts +204 -0
- package/src/modules/notes/tools.ts +46 -0
- package/src/modules/opportunities/index.ts +44 -0
- package/src/modules/opportunities/repository.ts +157 -0
- package/src/modules/opportunities/routes.ts +152 -0
- package/src/modules/opportunities/schema.ts +47 -0
- package/src/modules/opportunities/service.ts +342 -0
- package/src/modules/opportunities/tools.ts +39 -0
- package/src/modules/partnerships/index.ts +44 -0
- package/src/modules/partnerships/repository.ts +274 -0
- package/src/modules/partnerships/routes.ts +170 -0
- package/src/modules/partnerships/schema.ts +65 -0
- package/src/modules/partnerships/service.ts +442 -0
- package/src/modules/partnerships/tools.ts +41 -0
- package/src/modules/people/index.ts +43 -0
- package/src/modules/people/repository.ts +167 -0
- package/src/modules/people/routes.ts +175 -0
- package/src/modules/people/schema.ts +89 -0
- package/src/modules/people/service.ts +284 -0
- package/src/modules/people/tools.ts +32 -0
- package/src/modules/pipelines/index.ts +43 -0
- package/src/modules/pipelines/repository.ts +116 -0
- package/src/modules/pipelines/routes.ts +157 -0
- package/src/modules/pipelines/schema.ts +37 -0
- package/src/modules/pipelines/service.ts +339 -0
- package/src/modules/pipelines/tools.ts +52 -0
- package/src/modules/plans/index.ts +39 -0
- package/src/modules/plans/repository.ts +174 -0
- package/src/modules/plans/routes.ts +212 -0
- package/src/modules/plans/schema.ts +45 -0
- package/src/modules/plans/service.ts +223 -0
- package/src/modules/plans/tools.ts +45 -0
- package/src/modules/positions/index.ts +42 -0
- package/src/modules/positions/repository.ts +136 -0
- package/src/modules/positions/routes.ts +97 -0
- package/src/modules/positions/schema.ts +42 -0
- package/src/modules/positions/service.ts +253 -0
- package/src/modules/positions/tools.ts +32 -0
- package/src/modules/raises/index.ts +44 -0
- package/src/modules/raises/repository.ts +254 -0
- package/src/modules/raises/routes.ts +160 -0
- package/src/modules/raises/schema.ts +66 -0
- package/src/modules/raises/service.ts +442 -0
- package/src/modules/raises/tools.ts +39 -0
- package/src/modules/recordTargets.ts +194 -0
- package/src/modules/references.ts +44 -0
- package/src/modules/reseal.ts +178 -0
- package/src/modules/search/index.ts +55 -0
- package/src/modules/search/query.ts +104 -0
- package/src/modules/search/repository.ts +388 -0
- package/src/modules/search/routes.ts +131 -0
- package/src/modules/search/service.ts +153 -0
- package/src/modules/search/tools.ts +60 -0
- package/src/modules/stagedRecords.ts +91 -0
- package/src/modules/webhooks/delivery.ts +349 -0
- package/src/modules/webhooks/index.ts +85 -0
- package/src/modules/webhooks/payloads.ts +84 -0
- package/src/modules/webhooks/repository.ts +244 -0
- package/src/modules/webhooks/routes.ts +240 -0
- package/src/modules/webhooks/schema.ts +78 -0
- package/src/modules/webhooks/service.ts +347 -0
- package/src/modules/webhooks/signing.ts +95 -0
- package/src/modules/webhooks/tools.ts +108 -0
- package/src/modules/webhooks/url.ts +21 -0
- package/src/modules/workspace/capabilities.ts +14 -0
- package/src/modules/workspace/idempotencyMiddleware.ts +207 -0
- package/src/modules/workspace/idempotencyRepository.ts +111 -0
- package/src/modules/workspace/index.ts +64 -0
- package/src/modules/workspace/repository.ts +420 -0
- package/src/modules/workspace/roles.ts +38 -0
- package/src/modules/workspace/routes.ts +255 -0
- package/src/modules/workspace/schema.ts +130 -0
- package/src/modules/workspace/service.ts +798 -0
- package/src/modules/workspace/starters.ts +69 -0
- package/src/modules/workspace/tools.ts +141 -0
- package/src/runtime/entitlements.ts +142 -0
- package/src/runtime/events.ts +185 -0
- package/src/runtime/migrate.ts +75 -0
- package/src/runtime/module.ts +147 -0
- package/src/runtime/moduleConfig.ts +68 -0
- package/src/runtime/order.ts +90 -0
- package/src/runtime/registry.ts +263 -0
- package/src/runtime/transaction.ts +80 -0
- package/src/schema/index.ts +30 -0
- package/src/testing/app.ts +79 -0
- package/src/testing/client.ts +118 -0
- package/src/testing/database.ts +106 -0
- package/src/testing/environment.ts +22 -0
- package/src/testing/fixtures.ts +70 -0
- package/src/testing/index.ts +13 -0
- package/src/testing/services.ts +67 -0
|
@@ -0,0 +1,528 @@
|
|
|
1
|
+
import { UNIQUE_VIOLATION, isReferenceViolation, postgresErrorCode } from '../../lib/database.js';
|
|
2
|
+
import { AppError } from '../../lib/errors.js';
|
|
3
|
+
import { generateToken, hashToken } from '../../lib/tokens.js';
|
|
4
|
+
import { limitFor } from '../../runtime/entitlements.js';
|
|
5
|
+
import { moduleCapabilityName } from '../../runtime/moduleConfig.js';
|
|
6
|
+
import * as authRepository from '../auth/repository.js';
|
|
7
|
+
import { SEATS_LIMIT } from './capabilities.js';
|
|
8
|
+
import * as repository from './repository.js';
|
|
9
|
+
import { parseInvitableRole, parseMemberRole, roleAllows } from './roles.js';
|
|
10
|
+
import { STARTER_HANDBOOK_PAGES, STARTER_PIPELINE_STAGES, starterHandbookBody, } from './starters.js';
|
|
11
|
+
/**
|
|
12
|
+
* Workspaces and who belongs to them.
|
|
13
|
+
*
|
|
14
|
+
* Creating a workspace is the only place a member row appears without an invite,
|
|
15
|
+
* and it is what turns a bare account into something that can hold data.
|
|
16
|
+
*/
|
|
17
|
+
const INVITE_LIFETIME_MS = 7 * 24 * 60 * 60 * 1000;
|
|
18
|
+
function toWorkspaceView(record) {
|
|
19
|
+
return {
|
|
20
|
+
id: record.id,
|
|
21
|
+
name: record.name,
|
|
22
|
+
slug: record.slug,
|
|
23
|
+
timezone: record.timezone,
|
|
24
|
+
tagline: record.tagline,
|
|
25
|
+
oneLiner: record.oneLiner,
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* An invitation as a reader sees it.
|
|
30
|
+
*
|
|
31
|
+
* `status` is computed from `expires_at` rather than read from the column.
|
|
32
|
+
* Expiry is a function of the clock, so a stored value would only be true until
|
|
33
|
+
* the moment it passed, and keeping it true would mean a sweeper. `acceptInvite`
|
|
34
|
+
* already decides the same way, and this keeps the list agreeing with it.
|
|
35
|
+
*/
|
|
36
|
+
function toInviteView(record, now) {
|
|
37
|
+
const role = parseInvitableRole(record.role);
|
|
38
|
+
if (role === undefined) {
|
|
39
|
+
throw new Error(`invites.role holds "${record.role}", which its check constraint forbids`);
|
|
40
|
+
}
|
|
41
|
+
return {
|
|
42
|
+
id: record.id,
|
|
43
|
+
email: record.email,
|
|
44
|
+
role,
|
|
45
|
+
status: record.expiresAt > now ? 'pending' : 'expired',
|
|
46
|
+
expiresAt: record.expiresAt,
|
|
47
|
+
createdAt: record.createdAt,
|
|
48
|
+
};
|
|
49
|
+
}
|
|
50
|
+
function toMemberView(record) {
|
|
51
|
+
const role = parseMemberRole(record.role);
|
|
52
|
+
if (role === undefined) {
|
|
53
|
+
throw new Error(`workspace_members.role holds "${record.role}", which its check forbids`);
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
id: record.id,
|
|
57
|
+
userId: record.userId,
|
|
58
|
+
role,
|
|
59
|
+
joinedAt: record.joinedAt,
|
|
60
|
+
name: record.name,
|
|
61
|
+
email: record.email,
|
|
62
|
+
};
|
|
63
|
+
}
|
|
64
|
+
export function createWorkspaceService(dependencies) {
|
|
65
|
+
const newToken = dependencies.newToken ?? generateToken;
|
|
66
|
+
/**
|
|
67
|
+
* A workspace the actor does not belong to is indistinguishable from one that
|
|
68
|
+
* does not exist, per `api.md`.
|
|
69
|
+
*
|
|
70
|
+
* A workspace key has no member row: it is bound to its workspace at creation,
|
|
71
|
+
* and that binding is the membership. `memberId` is null for it, so anything
|
|
72
|
+
* needing a member to attribute the action to must say so.
|
|
73
|
+
*/
|
|
74
|
+
async function requireMembership(actor, workspaceId, required) {
|
|
75
|
+
if (actor.kind === 'api_key') {
|
|
76
|
+
if (actor.workspaceId !== workspaceId) {
|
|
77
|
+
throw AppError.notFound('Workspace not found');
|
|
78
|
+
}
|
|
79
|
+
if (actor.userId === null) {
|
|
80
|
+
if (!roleAllows(actor.role, required)) {
|
|
81
|
+
throw new AppError('forbidden', `This action needs the ${required} role`);
|
|
82
|
+
}
|
|
83
|
+
return { memberId: null, role: actor.role };
|
|
84
|
+
}
|
|
85
|
+
return membershipFor(actor.userId, workspaceId, required);
|
|
86
|
+
}
|
|
87
|
+
return membershipFor(actor.userId, workspaceId, required);
|
|
88
|
+
}
|
|
89
|
+
async function membershipFor(userId, workspaceId, required) {
|
|
90
|
+
const membership = await authRepository.findMembership(dependencies.db, workspaceId, userId);
|
|
91
|
+
if (membership === undefined) {
|
|
92
|
+
throw AppError.notFound('Workspace not found');
|
|
93
|
+
}
|
|
94
|
+
const role = parseMemberRole(membership.role);
|
|
95
|
+
if (role === undefined) {
|
|
96
|
+
throw new Error(`workspace_members.role holds "${membership.role}", which its check forbids`);
|
|
97
|
+
}
|
|
98
|
+
if (!roleAllows(role, required)) {
|
|
99
|
+
throw new AppError('forbidden', `This action needs the ${required} role`);
|
|
100
|
+
}
|
|
101
|
+
return { memberId: membership.id, role };
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Refuses a new invitation once the workspace is at its seat limit.
|
|
105
|
+
*
|
|
106
|
+
* Open source has no grant provider, so the limit is null and this never
|
|
107
|
+
* refuses. The cloud billing module is what makes it bite.
|
|
108
|
+
*/
|
|
109
|
+
async function requireSeat(workspaceId) {
|
|
110
|
+
const limit = await limitFor(dependencies.entitlements, workspaceId, SEATS_LIMIT.name);
|
|
111
|
+
if (limit === null) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
const inUse = await repository.countSeatsInUse(dependencies.db, workspaceId, dependencies.now());
|
|
115
|
+
if (inUse >= limit) {
|
|
116
|
+
throw new AppError('entitlement_required', `This workspace has ${String(limit)} seats and all of them are taken`);
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Refuses an address that already belongs to a member of this workspace.
|
|
121
|
+
*
|
|
122
|
+
* The question has to be asked through `users`, because membership is held by
|
|
123
|
+
* account and an account is identified by its address; `invites` has never met
|
|
124
|
+
* the member. Without this the Team page lists one person twice, once as a
|
|
125
|
+
* member and once as an invitation whose emailed link works right up until an
|
|
126
|
+
* accept that can only ever fail.
|
|
127
|
+
*/
|
|
128
|
+
async function requireStranger(workspaceId, address) {
|
|
129
|
+
const user = await authRepository.findUserByEmail(dependencies.db, address);
|
|
130
|
+
if (user === undefined) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
const membership = await authRepository.findMembership(dependencies.db, workspaceId, user.id);
|
|
134
|
+
if (membership !== undefined) {
|
|
135
|
+
throw AppError.conflict('That address already belongs to a member of this workspace', [
|
|
136
|
+
{ field: 'email', message: 'Already a member' },
|
|
137
|
+
]);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The membership being acted on.
|
|
142
|
+
*
|
|
143
|
+
* A member of another workspace is not found rather than forbidden, for the
|
|
144
|
+
* same reason `api.md` gives for records: an id that answers differently when
|
|
145
|
+
* it exists elsewhere tells the caller it exists elsewhere.
|
|
146
|
+
*/
|
|
147
|
+
async function requireTarget(workspaceId, memberId) {
|
|
148
|
+
const target = await repository.findMember(dependencies.db, workspaceId, memberId);
|
|
149
|
+
if (target === undefined) {
|
|
150
|
+
throw AppError.notFound('Member not found');
|
|
151
|
+
}
|
|
152
|
+
return target;
|
|
153
|
+
}
|
|
154
|
+
function sendInviteEmail(to, token, urlTemplate) {
|
|
155
|
+
return dependencies.email.send({
|
|
156
|
+
to,
|
|
157
|
+
subject: 'You have been invited to a Kelpie workspace',
|
|
158
|
+
body: `Accept the invitation within seven days:\n\n${urlTemplate.replace('{token}', token)}`,
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
/** The same membership with the name and email a reader needs, after a write. */
|
|
162
|
+
async function requireMemberWithUser(workspaceId, memberId) {
|
|
163
|
+
const member = await repository.findMemberWithUser(dependencies.db, workspaceId, memberId);
|
|
164
|
+
if (member === undefined) {
|
|
165
|
+
throw new Error(`Member ${memberId} has no user row, which the join makes impossible`);
|
|
166
|
+
}
|
|
167
|
+
return member;
|
|
168
|
+
}
|
|
169
|
+
async function requireInvite(workspaceId, inviteId) {
|
|
170
|
+
const invite = await repository.findInvite(dependencies.db, workspaceId, inviteId);
|
|
171
|
+
if (invite === undefined) {
|
|
172
|
+
throw AppError.notFound('Invitation not found');
|
|
173
|
+
}
|
|
174
|
+
return invite;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Moves ownership to `target` and leaves the outgoing owner an admin.
|
|
178
|
+
*
|
|
179
|
+
* One transaction, because a workspace with two owners or none is a state no
|
|
180
|
+
* other code is written to survive.
|
|
181
|
+
*/
|
|
182
|
+
async function transferOwnership(workspaceId, currentOwner, target) {
|
|
183
|
+
const now = dependencies.now();
|
|
184
|
+
return dependencies.transaction(async ({ tx }) => {
|
|
185
|
+
await repository.updateMemberRole(tx, currentOwner.id, 'admin', now);
|
|
186
|
+
await repository.updateMemberRole(tx, target.id, 'owner', now);
|
|
187
|
+
const updated = await repository.findMemberWithUser(tx, workspaceId, target.id);
|
|
188
|
+
if (updated === undefined) {
|
|
189
|
+
throw new Error(`Member ${target.id} vanished during an ownership transfer`);
|
|
190
|
+
}
|
|
191
|
+
return updated;
|
|
192
|
+
});
|
|
193
|
+
}
|
|
194
|
+
return {
|
|
195
|
+
async create(actor, input) {
|
|
196
|
+
const now = dependencies.now();
|
|
197
|
+
const workspaceId = dependencies.createId('workspace');
|
|
198
|
+
const memberId = dependencies.createId('teamMember');
|
|
199
|
+
return dependencies.transaction(async ({ tx, events }) => {
|
|
200
|
+
let workspace;
|
|
201
|
+
try {
|
|
202
|
+
workspace = await repository.insertWorkspace(tx, {
|
|
203
|
+
id: workspaceId,
|
|
204
|
+
name: input.name,
|
|
205
|
+
slug: input.slug,
|
|
206
|
+
timezone: input.timezone,
|
|
207
|
+
});
|
|
208
|
+
}
|
|
209
|
+
catch (error) {
|
|
210
|
+
if (postgresErrorCode(error) === UNIQUE_VIOLATION) {
|
|
211
|
+
throw AppError.conflict('That workspace address is taken', [
|
|
212
|
+
{ field: 'slug', message: 'Already in use' },
|
|
213
|
+
]);
|
|
214
|
+
}
|
|
215
|
+
throw error;
|
|
216
|
+
}
|
|
217
|
+
await repository.insertMember(tx, {
|
|
218
|
+
id: memberId,
|
|
219
|
+
workspaceId,
|
|
220
|
+
userId: actor.userId,
|
|
221
|
+
role: 'owner',
|
|
222
|
+
joinedAt: now,
|
|
223
|
+
});
|
|
224
|
+
await repository.insertHandbookPages(tx, STARTER_HANDBOOK_PAGES.map((page, index) => ({
|
|
225
|
+
id: dependencies.createId('handbookPage'),
|
|
226
|
+
workspaceId,
|
|
227
|
+
title: page.title,
|
|
228
|
+
slug: page.slug,
|
|
229
|
+
sortOrder: index,
|
|
230
|
+
body: starterHandbookBody(page.title),
|
|
231
|
+
updatedBy: memberId,
|
|
232
|
+
})));
|
|
233
|
+
await repository.insertPipelineStages(tx, Object.entries(STARTER_PIPELINE_STAGES).flatMap(([kind, stages]) => stages.map((stage, index) => ({
|
|
234
|
+
id: dependencies.createId('pipelineStage'),
|
|
235
|
+
workspaceId,
|
|
236
|
+
kind,
|
|
237
|
+
slug: stage.slug,
|
|
238
|
+
label: stage.label,
|
|
239
|
+
open: stage.open,
|
|
240
|
+
sortOrder: index,
|
|
241
|
+
}))));
|
|
242
|
+
// The session that created the workspace should land in it.
|
|
243
|
+
await authRepository.setActiveWorkspace(tx, actor.sessionId, workspaceId);
|
|
244
|
+
events.emit('workspace.created', { workspaceId, slug: workspace.slug });
|
|
245
|
+
events.emit('member.joined', { workspaceId, memberId, userId: actor.userId });
|
|
246
|
+
return toWorkspaceView(workspace);
|
|
247
|
+
});
|
|
248
|
+
},
|
|
249
|
+
async get(actor, workspaceId) {
|
|
250
|
+
await requireMembership(actor, workspaceId, 'member');
|
|
251
|
+
const workspace = await repository.findWorkspace(dependencies.db, workspaceId);
|
|
252
|
+
if (workspace === undefined) {
|
|
253
|
+
throw AppError.notFound('Workspace not found');
|
|
254
|
+
}
|
|
255
|
+
return toWorkspaceView(workspace);
|
|
256
|
+
},
|
|
257
|
+
async update(actor, workspaceId, changes) {
|
|
258
|
+
await requireMembership(actor, workspaceId, 'admin');
|
|
259
|
+
let updated;
|
|
260
|
+
try {
|
|
261
|
+
updated = await repository.updateWorkspace(dependencies.db, workspaceId, {
|
|
262
|
+
...changes,
|
|
263
|
+
updatedAt: dependencies.now(),
|
|
264
|
+
});
|
|
265
|
+
}
|
|
266
|
+
catch (error) {
|
|
267
|
+
if (postgresErrorCode(error) === UNIQUE_VIOLATION) {
|
|
268
|
+
throw AppError.conflict('That workspace address is taken', [
|
|
269
|
+
{ field: 'slug', message: 'Already in use' },
|
|
270
|
+
]);
|
|
271
|
+
}
|
|
272
|
+
throw error;
|
|
273
|
+
}
|
|
274
|
+
if (updated === undefined) {
|
|
275
|
+
throw AppError.notFound('Workspace not found');
|
|
276
|
+
}
|
|
277
|
+
return toWorkspaceView(updated);
|
|
278
|
+
},
|
|
279
|
+
async remove(actor, workspaceId, confirmSlug) {
|
|
280
|
+
// Owner only. A workspace key resolves as an admin and can never reach
|
|
281
|
+
// this, which is deliberate: an agent's credential does not get to end the
|
|
282
|
+
// workspace it lives in.
|
|
283
|
+
await requireMembership(actor, workspaceId, 'owner');
|
|
284
|
+
const workspace = await repository.findWorkspace(dependencies.db, workspaceId);
|
|
285
|
+
if (workspace === undefined) {
|
|
286
|
+
throw AppError.notFound('Workspace not found');
|
|
287
|
+
}
|
|
288
|
+
if (confirmSlug !== workspace.slug) {
|
|
289
|
+
throw AppError.validationFailed('Confirm the deletion by naming the workspace', [
|
|
290
|
+
{ field: 'slug', message: `Expected "${workspace.slug}"` },
|
|
291
|
+
]);
|
|
292
|
+
}
|
|
293
|
+
await dependencies.transaction(async ({ tx, events }) => {
|
|
294
|
+
await repository.deleteWorkspace(tx, workspaceId);
|
|
295
|
+
events.emit('workspace.deleted', { workspaceId, slug: workspace.slug });
|
|
296
|
+
});
|
|
297
|
+
},
|
|
298
|
+
async listMembers(actor, workspaceId) {
|
|
299
|
+
await requireMembership(actor, workspaceId, 'member');
|
|
300
|
+
const records = await repository.listMembers(dependencies.db, workspaceId);
|
|
301
|
+
return records.map(toMemberView);
|
|
302
|
+
},
|
|
303
|
+
async setMemberRole(actor, workspaceId, memberId, role) {
|
|
304
|
+
const caller = await requireMembership(actor, workspaceId, 'admin');
|
|
305
|
+
const target = await requireTarget(workspaceId, memberId);
|
|
306
|
+
if (role === 'owner') {
|
|
307
|
+
if (caller.role !== 'owner') {
|
|
308
|
+
throw new AppError('forbidden', 'Only the owner can hand ownership to somebody else');
|
|
309
|
+
}
|
|
310
|
+
const currentOwner = await repository.findOwner(dependencies.db, workspaceId);
|
|
311
|
+
if (currentOwner === undefined) {
|
|
312
|
+
throw new Error(`Workspace ${workspaceId} has an owner-role caller but no owner row`);
|
|
313
|
+
}
|
|
314
|
+
if (currentOwner.id === target.id) {
|
|
315
|
+
return toMemberView(await requireMemberWithUser(workspaceId, target.id));
|
|
316
|
+
}
|
|
317
|
+
return toMemberView(await transferOwnership(workspaceId, currentOwner, target));
|
|
318
|
+
}
|
|
319
|
+
// Demoting the owner by naming their row would leave the workspace without
|
|
320
|
+
// one. Transferring is the only way ownership moves, and it fills the seat
|
|
321
|
+
// in the same write that empties it.
|
|
322
|
+
if (target.role === 'owner') {
|
|
323
|
+
throw AppError.conflict('The owner cannot be demoted. Give ownership to another member instead');
|
|
324
|
+
}
|
|
325
|
+
await repository.updateMemberRole(dependencies.db, target.id, role, dependencies.now());
|
|
326
|
+
return toMemberView(await requireMemberWithUser(workspaceId, target.id));
|
|
327
|
+
},
|
|
328
|
+
async removeMember(actor, workspaceId, memberId) {
|
|
329
|
+
await requireMembership(actor, workspaceId, 'admin');
|
|
330
|
+
const target = await requireTarget(workspaceId, memberId);
|
|
331
|
+
if (target.role === 'owner') {
|
|
332
|
+
throw AppError.conflict('The owner cannot be removed. Give ownership to another member first');
|
|
333
|
+
}
|
|
334
|
+
// `schema.md`: removing a member is restricted while they own records.
|
|
335
|
+
// Reported before the delete so every referencing type can be named, which
|
|
336
|
+
// is what the caller needs to know what to reassign.
|
|
337
|
+
const references = await repository.countMemberReferences(dependencies.db, target.id);
|
|
338
|
+
if (references.length > 0) {
|
|
339
|
+
throw AppError.conflict('This member still owns records. Reassign them first', references.map((reference) => ({
|
|
340
|
+
field: reference.type,
|
|
341
|
+
message: `Owns ${String(reference.count)}`,
|
|
342
|
+
})));
|
|
343
|
+
}
|
|
344
|
+
try {
|
|
345
|
+
await dependencies.transaction(async ({ tx, events }) => {
|
|
346
|
+
await repository.deleteMember(tx, target.id);
|
|
347
|
+
events.emit('member.removed', { workspaceId, memberId: target.id, userId: target.userId });
|
|
348
|
+
});
|
|
349
|
+
}
|
|
350
|
+
catch (error) {
|
|
351
|
+
// A record assigned to them between the count and this delete. The
|
|
352
|
+
// constraint answers the same question the count did, so the caller gets
|
|
353
|
+
// the same refusal rather than a 500; it just cannot name the type.
|
|
354
|
+
if (isReferenceViolation(error)) {
|
|
355
|
+
throw AppError.conflict('This member owns records that were assigned while removing them');
|
|
356
|
+
}
|
|
357
|
+
throw error;
|
|
358
|
+
}
|
|
359
|
+
},
|
|
360
|
+
async invite(actor, workspaceId, email, role, urlTemplate) {
|
|
361
|
+
const inviter = await requireMembership(actor, workspaceId, 'admin');
|
|
362
|
+
const address = email.trim().toLowerCase();
|
|
363
|
+
const now = dependencies.now();
|
|
364
|
+
// Both refusals come before the seat check, so an address that could never
|
|
365
|
+
// be invited is told that rather than told the workspace is full.
|
|
366
|
+
await requireStranger(workspaceId, address);
|
|
367
|
+
const existing = await repository.listInvitesForEmail(dependencies.db, workspaceId, address);
|
|
368
|
+
// Open, not merely present: an expired invitation cannot be accepted, so
|
|
369
|
+
// refusing on one would leave an address permanently un-invitable by
|
|
370
|
+
// anyone who did not think to look for the Resend button.
|
|
371
|
+
if (existing.some((invitation) => invitation.expiresAt > now)) {
|
|
372
|
+
throw AppError.conflict('That address has already been invited to this workspace', [
|
|
373
|
+
{ field: 'email', message: 'Already invited' },
|
|
374
|
+
]);
|
|
375
|
+
}
|
|
376
|
+
await requireSeat(workspaceId);
|
|
377
|
+
const token = newToken();
|
|
378
|
+
const invite = await dependencies.transaction(async ({ tx, events }) => {
|
|
379
|
+
// The expired invitations this one replaces. Kept to one row per address
|
|
380
|
+
// so the list never shows the same person twice, which is the confusion
|
|
381
|
+
// the guards above exist to remove.
|
|
382
|
+
if (existing.length > 0) {
|
|
383
|
+
await repository.deleteInvitesForEmail(tx, workspaceId, address);
|
|
384
|
+
}
|
|
385
|
+
const created = await repository.insertInvite(tx, {
|
|
386
|
+
id: dependencies.createId('invite'),
|
|
387
|
+
workspaceId,
|
|
388
|
+
email: address,
|
|
389
|
+
role,
|
|
390
|
+
invitedBy: inviter.memberId,
|
|
391
|
+
status: 'pending',
|
|
392
|
+
tokenHash: hashToken(token),
|
|
393
|
+
expiresAt: new Date(now.getTime() + INVITE_LIFETIME_MS),
|
|
394
|
+
});
|
|
395
|
+
events.emit('member.invited', { workspaceId, inviteId: created.id, email: created.email });
|
|
396
|
+
return created;
|
|
397
|
+
});
|
|
398
|
+
// Sent after commit, so a rolled-back invite never reaches an inbox.
|
|
399
|
+
await sendInviteEmail(invite.email, token, urlTemplate);
|
|
400
|
+
return toInviteView(invite, now);
|
|
401
|
+
},
|
|
402
|
+
async listInvites(actor, workspaceId) {
|
|
403
|
+
await requireMembership(actor, workspaceId, 'admin');
|
|
404
|
+
const records = await repository.listInvites(dependencies.db, workspaceId);
|
|
405
|
+
const now = dependencies.now();
|
|
406
|
+
return records.map((record) => toInviteView(record, now));
|
|
407
|
+
},
|
|
408
|
+
async resendInvite(actor, workspaceId, inviteId, urlTemplate) {
|
|
409
|
+
await requireMembership(actor, workspaceId, 'admin');
|
|
410
|
+
const invite = await requireInvite(workspaceId, inviteId);
|
|
411
|
+
// The row may predate the guard `invite()` applies at creation: somebody
|
|
412
|
+
// who joined since then would get a fresh, working-looking link whose
|
|
413
|
+
// accept can only answer 409.
|
|
414
|
+
await requireStranger(workspaceId, invite.email);
|
|
415
|
+
// A new token, not the old one again: the address in the first email may
|
|
416
|
+
// have been forwarded anywhere, and reissuing retires it.
|
|
417
|
+
const now = dependencies.now();
|
|
418
|
+
const token = newToken();
|
|
419
|
+
const updated = await repository.updateInvite(dependencies.db, invite.id, {
|
|
420
|
+
tokenHash: hashToken(token),
|
|
421
|
+
expiresAt: new Date(now.getTime() + INVITE_LIFETIME_MS),
|
|
422
|
+
status: 'pending',
|
|
423
|
+
updatedAt: now,
|
|
424
|
+
});
|
|
425
|
+
if (updated === undefined) {
|
|
426
|
+
throw AppError.notFound('Invitation not found');
|
|
427
|
+
}
|
|
428
|
+
await sendInviteEmail(updated.email, token, urlTemplate);
|
|
429
|
+
return toInviteView(updated, now);
|
|
430
|
+
},
|
|
431
|
+
async revokeInvite(actor, workspaceId, inviteId) {
|
|
432
|
+
await requireMembership(actor, workspaceId, 'admin');
|
|
433
|
+
const invite = await requireInvite(workspaceId, inviteId);
|
|
434
|
+
// Deleted rather than marked: the row is what the token resolves through,
|
|
435
|
+
// so removing it is what actually stops the link in the sent email.
|
|
436
|
+
await repository.deleteInvite(dependencies.db, invite.id);
|
|
437
|
+
},
|
|
438
|
+
async acceptInvite(actor, token) {
|
|
439
|
+
const now = dependencies.now();
|
|
440
|
+
const invite = await repository.findInviteByTokenHash(dependencies.db, hashToken(token));
|
|
441
|
+
if (invite === undefined || invite.status !== 'pending' || invite.expiresAt <= now) {
|
|
442
|
+
throw AppError.unauthorized('That invitation is invalid or has expired');
|
|
443
|
+
}
|
|
444
|
+
const existing = await authRepository.findMembership(dependencies.db, invite.workspaceId, actor.userId);
|
|
445
|
+
// The invitation is left alone. A link is forwarded often enough that the
|
|
446
|
+
// address on this one may not be the caller's, and revoking somebody
|
|
447
|
+
// else's invitation because you clicked their link would be worse than
|
|
448
|
+
// the refusal.
|
|
449
|
+
if (existing !== undefined) {
|
|
450
|
+
throw AppError.conflict('You already belong to that workspace');
|
|
451
|
+
}
|
|
452
|
+
const joiner = await authRepository.findUserById(dependencies.db, actor.userId);
|
|
453
|
+
if (joiner === undefined) {
|
|
454
|
+
throw new Error(`Session ${actor.sessionId} outlived the user row behind it`);
|
|
455
|
+
}
|
|
456
|
+
// Ownership is never invited, only created or transferred. The column's
|
|
457
|
+
// check constraint says the same; this is the service-side half of it.
|
|
458
|
+
const role = invite.role === 'admin' ? 'admin' : 'member';
|
|
459
|
+
const memberId = dependencies.createId('teamMember');
|
|
460
|
+
return dependencies.transaction(async ({ tx, events }) => {
|
|
461
|
+
try {
|
|
462
|
+
await repository.insertMember(tx, {
|
|
463
|
+
id: memberId,
|
|
464
|
+
workspaceId: invite.workspaceId,
|
|
465
|
+
userId: actor.userId,
|
|
466
|
+
role,
|
|
467
|
+
joinedAt: now,
|
|
468
|
+
});
|
|
469
|
+
}
|
|
470
|
+
catch (error) {
|
|
471
|
+
// The membership check above answers this for every caller who is not
|
|
472
|
+
// racing a second accept of their own. This is what catches that one.
|
|
473
|
+
if (postgresErrorCode(error) === UNIQUE_VIOLATION) {
|
|
474
|
+
throw AppError.conflict('You already belong to that workspace');
|
|
475
|
+
}
|
|
476
|
+
throw error;
|
|
477
|
+
}
|
|
478
|
+
await repository.deleteInvite(tx, invite.id);
|
|
479
|
+
// Any other invitation to the joiner's own address, which their joining
|
|
480
|
+
// has just killed: accepting one is now the refusal above, and until it
|
|
481
|
+
// expires it holds a seat and lists them beside their own membership.
|
|
482
|
+
// Accepting a token addressed to somebody else is how one survives the
|
|
483
|
+
// line before it.
|
|
484
|
+
await repository.deleteInvitesForEmail(tx, invite.workspaceId, joiner.email);
|
|
485
|
+
await authRepository.setActiveWorkspace(tx, actor.sessionId, invite.workspaceId);
|
|
486
|
+
const workspace = await repository.findWorkspace(tx, invite.workspaceId);
|
|
487
|
+
if (workspace === undefined) {
|
|
488
|
+
throw AppError.notFound('Workspace not found');
|
|
489
|
+
}
|
|
490
|
+
events.emit('member.joined', {
|
|
491
|
+
workspaceId: invite.workspaceId,
|
|
492
|
+
memberId,
|
|
493
|
+
userId: actor.userId,
|
|
494
|
+
});
|
|
495
|
+
return toWorkspaceView(workspace);
|
|
496
|
+
});
|
|
497
|
+
},
|
|
498
|
+
async listModuleSettings(actor, workspaceId) {
|
|
499
|
+
await requireMembership(actor, workspaceId, 'member');
|
|
500
|
+
return Promise.all(dependencies.toggleableModuleIds.map(async (moduleId) => {
|
|
501
|
+
const entitlement = await dependencies.entitlements.check(workspaceId, moduleCapabilityName(moduleId));
|
|
502
|
+
return {
|
|
503
|
+
moduleId,
|
|
504
|
+
enabled: entitlement.kind === 'flag' ? entitlement.granted : true,
|
|
505
|
+
locked: dependencies.moduleConfigOverrides?.[moduleId] !== undefined,
|
|
506
|
+
};
|
|
507
|
+
}));
|
|
508
|
+
},
|
|
509
|
+
async setModuleEnabled(actor, workspaceId, moduleId, enabled) {
|
|
510
|
+
await requireMembership(actor, workspaceId, 'admin');
|
|
511
|
+
if (!dependencies.toggleableModuleIds.includes(moduleId)) {
|
|
512
|
+
throw AppError.notFound('Module not found');
|
|
513
|
+
}
|
|
514
|
+
if (dependencies.moduleConfigOverrides?.[moduleId] !== undefined) {
|
|
515
|
+
throw AppError.conflict('This module is locked by the deployment configuration');
|
|
516
|
+
}
|
|
517
|
+
await repository.upsertModuleSetting(dependencies.db, {
|
|
518
|
+
id: dependencies.createId('moduleSetting'),
|
|
519
|
+
workspaceId,
|
|
520
|
+
moduleId,
|
|
521
|
+
enabled,
|
|
522
|
+
updatedAt: dependencies.now(),
|
|
523
|
+
});
|
|
524
|
+
return { moduleId, enabled, locked: false };
|
|
525
|
+
},
|
|
526
|
+
};
|
|
527
|
+
}
|
|
528
|
+
//# sourceMappingURL=service.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"service.js","sourceRoot":"","sources":["../../../src/modules/workspace/service.ts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AAE,CAAC,QAAQ,CAAC,KAAK,SAAS;iBACrE,CAAA;YACH,CAAC,CAAC,CACH,CAAA;QACH,CAAC;QAED,KAAK,CAAC,gBAAgB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,OAAO;YAC1D,MAAM,iBAAiB,CAAC,KAAK,EAAE,WAAW,EAAE,OAAO,CAAC,CAAA;YAEpD,IAAI,CAAC,YAAY,CAAC,mBAAmB,CAAC,QAAQ,CAAC,QAAQ,CAAC,EAAE,CAAC;gBACzD,MAAM,QAAQ,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAA;YAC7C,CAAC;YAED,IAAI,YAAY,CAAC,qBAAqB,EAAE,CAAC,QAAQ,CAAC,KAAK,SAAS,EAAE,CAAC;gBACjE,MAAM,QAAQ,CAAC,QAAQ,CAAC,uDAAuD,CAAC,CAAA;YAClF,CAAC;YAED,MAAM,UAAU,CAAC,mBAAmB,CAAC,YAAY,CAAC,EAAE,EAAE;gBACpD,EAAE,EAAE,YAAY,CAAC,QAAQ,CAAC,eAAe,CAAC;gBAC1C,WAAW;gBACX,QAAQ;gBACR,OAAO;gBACP,SAAS,EAAE,YAAY,CAAC,GAAG,EAAE;aAC9B,CAAC,CAAA;YAEF,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,CAAA;QAC7C,CAAC;KACF,CAAA;AACH,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a new workspace starts with, per `onboarding.md` step 4 and the seeding
|
|
3
|
+
* rule in `schema.md`.
|
|
4
|
+
*
|
|
5
|
+
* Both lists are data, not migrations: they are per-workspace rows a workspace
|
|
6
|
+
* owner can then rename, reorder, or delete.
|
|
7
|
+
*/
|
|
8
|
+
export interface StarterHandbookPage {
|
|
9
|
+
readonly title: string;
|
|
10
|
+
readonly slug: string;
|
|
11
|
+
}
|
|
12
|
+
/** Bodies start as stubs. Teams write them; agents read whatever is there. */
|
|
13
|
+
export declare const STARTER_HANDBOOK_PAGES: readonly StarterHandbookPage[];
|
|
14
|
+
export declare function starterHandbookBody(title: string): string;
|
|
15
|
+
export interface StarterStage {
|
|
16
|
+
readonly slug: string;
|
|
17
|
+
readonly label: string;
|
|
18
|
+
readonly open: boolean;
|
|
19
|
+
}
|
|
20
|
+
/** `open: false` hides a stage from the Open scope filter; it is not a delete. */
|
|
21
|
+
export declare const STARTER_PIPELINE_STAGES: Readonly<Record<string, readonly StarterStage[]>>;
|
|
22
|
+
//# sourceMappingURL=starters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"starters.d.ts","sourceRoot":"","sources":["../../../src/modules/workspace/starters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACtB;AAED,8EAA8E;AAC9E,eAAO,MAAM,sBAAsB,EAAE,SAAS,mBAAmB,EAWhE,CAAA;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAA;IACtB,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAA;CACvB;AAED,kFAAkF;AAClF,eAAO,MAAM,uBAAuB,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,CAAC,CA8BrF,CAAA"}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a new workspace starts with, per `onboarding.md` step 4 and the seeding
|
|
3
|
+
* rule in `schema.md`.
|
|
4
|
+
*
|
|
5
|
+
* Both lists are data, not migrations: they are per-workspace rows a workspace
|
|
6
|
+
* owner can then rename, reorder, or delete.
|
|
7
|
+
*/
|
|
8
|
+
/** Bodies start as stubs. Teams write them; agents read whatever is there. */
|
|
9
|
+
export const STARTER_HANDBOOK_PAGES = [
|
|
10
|
+
{ title: 'About us', slug: 'about-us' },
|
|
11
|
+
{ title: 'Product', slug: 'product' },
|
|
12
|
+
{ title: 'Ideal customer profile', slug: 'ideal-customer-profile' },
|
|
13
|
+
{ title: 'Voice and tone', slug: 'voice-and-tone' },
|
|
14
|
+
{ title: 'Pricing', slug: 'pricing' },
|
|
15
|
+
{ title: 'How we sell', slug: 'how-we-sell' },
|
|
16
|
+
{ title: 'Competitive landscape', slug: 'competitive-landscape' },
|
|
17
|
+
{ title: 'Team and roles', slug: 'team-and-roles' },
|
|
18
|
+
{ title: 'Tools and stack', slug: 'tools-and-stack' },
|
|
19
|
+
{ title: 'Agent FAQ', slug: 'agent-faq' },
|
|
20
|
+
];
|
|
21
|
+
export function starterHandbookBody(title) {
|
|
22
|
+
return `# ${title}\n\nWrite this page.`;
|
|
23
|
+
}
|
|
24
|
+
/** `open: false` hides a stage from the Open scope filter; it is not a delete. */
|
|
25
|
+
export const STARTER_PIPELINE_STAGES = {
|
|
26
|
+
deal: [
|
|
27
|
+
{ slug: 'qualifying', label: 'Qualifying', open: true },
|
|
28
|
+
{ slug: 'proposal', label: 'Proposal', open: true },
|
|
29
|
+
{ slug: 'negotiation', label: 'Negotiation', open: true },
|
|
30
|
+
{ slug: 'won', label: 'Won', open: false },
|
|
31
|
+
{ slug: 'lost', label: 'Lost', open: false },
|
|
32
|
+
],
|
|
33
|
+
opportunity: [
|
|
34
|
+
{ slug: 'identified', label: 'Identified', open: true },
|
|
35
|
+
{ slug: 'applied', label: 'Applied', open: true },
|
|
36
|
+
{ slug: 'interview', label: 'Interview', open: true },
|
|
37
|
+
{ slug: 'won', label: 'Won', open: false },
|
|
38
|
+
{ slug: 'passed', label: 'Passed', open: false },
|
|
39
|
+
],
|
|
40
|
+
raise: [
|
|
41
|
+
{ slug: 'researching', label: 'Researching', open: true },
|
|
42
|
+
{ slug: 'intro', label: 'Intro', open: true },
|
|
43
|
+
{ slug: 'meeting', label: 'Meeting', open: true },
|
|
44
|
+
{ slug: 'diligence', label: 'Diligence', open: true },
|
|
45
|
+
{ slug: 'term_sheet', label: 'Term sheet', open: true },
|
|
46
|
+
{ slug: 'closed', label: 'Closed', open: false },
|
|
47
|
+
{ slug: 'passed', label: 'Passed', open: false },
|
|
48
|
+
],
|
|
49
|
+
partnership: [
|
|
50
|
+
{ slug: 'exploring', label: 'Exploring', open: true },
|
|
51
|
+
{ slug: 'active', label: 'Active', open: true },
|
|
52
|
+
{ slug: 'paused', label: 'Paused', open: true },
|
|
53
|
+
{ slug: 'ended', label: 'Ended', open: false },
|
|
54
|
+
],
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=starters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"starters.js","sourceRoot":"","sources":["../../../src/modules/workspace/starters.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAOH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,sBAAsB,GAAmC;IACpE,EAAE,KAAK,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,EAAE;IACvC,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;IACrC,EAAE,KAAK,EAAE,wBAAwB,EAAE,IAAI,EAAE,wBAAwB,EAAE;IACnE,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB,EAAE;IACnD,EAAE,KAAK,EAAE,SAAS,EAAE,IAAI,EAAE,SAAS,EAAE;IACrC,EAAE,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,aAAa,EAAE;IAC7C,EAAE,KAAK,EAAE,uBAAuB,EAAE,IAAI,EAAE,uBAAuB,EAAE;IACjE,EAAE,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,gBAAgB,EAAE;IACnD,EAAE,KAAK,EAAE,iBAAiB,EAAE,IAAI,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