@noodleseed/one 0.68.0 → 0.69.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/dist/agents.d.ts +8 -3
- package/dist/agents.d.ts.map +1 -1
- package/dist/agents.js +20 -14
- package/dist/agents.js.map +1 -1
- package/dist/cli.js +2 -2
- package/dist/cli.js.map +1 -1
- package/dist/commands/analytics-ops.d.ts +3 -1
- package/dist/commands/analytics-ops.d.ts.map +1 -1
- package/dist/commands/analytics-ops.js +31 -5
- package/dist/commands/analytics-ops.js.map +1 -1
- package/dist/commands/catalog-data-resources.d.ts.map +1 -1
- package/dist/commands/catalog-data-resources.js +10 -0
- package/dist/commands/catalog-data-resources.js.map +1 -1
- package/dist/commands/envs-ops.d.ts +1 -0
- package/dist/commands/envs-ops.d.ts.map +1 -1
- package/dist/commands/envs-ops.js +49 -1
- package/dist/commands/envs-ops.js.map +1 -1
- package/dist/commands/project-setup.d.ts +3 -2
- package/dist/commands/project-setup.d.ts.map +1 -1
- package/dist/commands/project-setup.js +5 -5
- package/dist/commands/project-setup.js.map +1 -1
- package/dist/commands/resource-shared.d.ts +11 -0
- package/dist/commands/resource-shared.d.ts.map +1 -1
- package/dist/commands/resource-shared.js.map +1 -1
- package/dist/deploy.js +1 -1
- package/dist/deploy.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js +4 -0
- package/node_modules/@noodle-borg/agent-kit/dist/curated/error-fixes.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js +8 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/example-files.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js +10 -0
- package/node_modules/@noodle-borg/agent-kit/dist/generated/surface.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js +7 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-authoring-refs.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js +1 -1
- package/node_modules/@noodle-borg/agent-kit/dist/skill-embedded-assistant-ref.js.map +1 -1
- package/node_modules/@noodle-borg/agent-kit/package.json +1 -1
- package/node_modules/@noodle-borg/authoring/dist/connection-types.d.ts +52 -0
- package/node_modules/@noodle-borg/authoring/dist/connection-types.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/connection-types.js +35 -0
- package/node_modules/@noodle-borg/authoring/dist/connection-types.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/connections.d.ts +26 -0
- package/node_modules/@noodle-borg/authoring/dist/connections.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/connections.js +63 -0
- package/node_modules/@noodle-borg/authoring/dist/connections.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/connectors.d.ts +18 -7
- package/node_modules/@noodle-borg/authoring/dist/connectors.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/connectors.js +26 -4
- package/node_modules/@noodle-borg/authoring/dist/connectors.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/gmail.d.ts +7 -0
- package/node_modules/@noodle-borg/authoring/dist/gmail.d.ts.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/gmail.js +257 -0
- package/node_modules/@noodle-borg/authoring/dist/gmail.js.map +1 -0
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts +2 -0
- package/node_modules/@noodle-borg/authoring/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/index.js +2 -0
- package/node_modules/@noodle-borg/authoring/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/platform.d.ts +1 -1
- package/node_modules/@noodle-borg/authoring/dist/react/components.d.ts +2 -2
- package/node_modules/@noodle-borg/authoring/dist/react/native-components.d.ts +2 -2
- package/node_modules/@noodle-borg/authoring/dist/recording.d.ts +2 -0
- package/node_modules/@noodle-borg/authoring/dist/recording.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/recording.js +6 -0
- package/node_modules/@noodle-borg/authoring/dist/recording.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.d.ts.map +1 -1
- package/node_modules/@noodle-borg/authoring/dist/server.js +4 -1
- package/node_modules/@noodle-borg/authoring/dist/server.js.map +1 -1
- package/node_modules/@noodle-borg/authoring/package.json +1 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts +43 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.js +4 -1
- package/node_modules/@noodle-borg/compiler/dist/artifact/types.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/catalog/types.d.ts +15 -0
- package/node_modules/@noodle-borg/compiler/dist/catalog/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.js +3 -1
- package/node_modules/@noodle-borg/compiler/dist/compile.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/confirmation-flow.d.ts +3 -3
- package/node_modules/@noodle-borg/compiler/dist/confirmation-flow.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/confirmation-flow.js +16 -17
- package/node_modules/@noodle-borg/compiler/dist/confirmation-flow.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/context-compile.d.ts +2 -4
- package/node_modules/@noodle-borg/compiler/dist/context-compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/context-compile.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts +1 -1
- package/node_modules/@noodle-borg/compiler/dist/errors.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.d.ts +17 -5
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js +89 -0
- package/node_modules/@noodle-borg/compiler/dist/fulfilment-emit.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts +3 -2
- package/node_modules/@noodle-borg/compiler/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/index.js +1 -0
- package/node_modules/@noodle-borg/compiler/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts +66 -16
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js +47 -4
- package/node_modules/@noodle-borg/compiler/dist/manifest/schema.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/compile.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/compile.js +3 -0
- package/node_modules/@noodle-borg/connector-defs/dist/compile.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/credential-profiles.d.ts +6 -0
- package/node_modules/@noodle-borg/connector-defs/dist/credential-profiles.d.ts.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/credential-profiles.js +25 -0
- package/node_modules/@noodle-borg/connector-defs/dist/credential-profiles.js.map +1 -0
- package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/schema.d.ts +89 -0
- package/node_modules/@noodle-borg/connector-defs/dist/schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-defs/dist/schema.js +42 -1
- package/node_modules/@noodle-borg/connector-defs/dist/schema.js.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.d.ts.map +1 -1
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.js +5 -4
- package/node_modules/@noodle-borg/connector-http/dist/http-connector.js.map +1 -1
- package/node_modules/@noodle-borg/external-credential-provider/README.md +18 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/assertion.d.ts +36 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/assertion.d.ts.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/assertion.js +72 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/assertion.js.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/contract.d.ts +82 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/contract.d.ts.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/contract.js +126 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/contract.js.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/index.d.ts +4 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/index.d.ts.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/index.js +4 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/index.js.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/provider.d.ts +15 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/provider.d.ts.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/provider.js +24 -0
- package/node_modules/@noodle-borg/external-credential-provider/dist/provider.js.map +1 -0
- package/node_modules/@noodle-borg/external-credential-provider/package.json +33 -0
- package/node_modules/@noodle-borg/module/dist/contract.d.ts +14 -0
- package/node_modules/@noodle-borg/module/dist/contract.d.ts.map +1 -1
- package/node_modules/@noodle-borg/module/dist/contract.js.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/tool-interaction.d.ts.map +1 -1
- package/node_modules/@noodle-borg/protocol/dist/tool-interaction.js +1 -8
- package/node_modules/@noodle-borg/protocol/dist/tool-interaction.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/map.d.ts +8 -4
- package/node_modules/@noodle-borg/runtime/dist/broker/map.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/map.js +35 -5
- package/node_modules/@noodle-borg/runtime/dist/broker/map.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/types.d.ts +34 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/broker/types.js +38 -0
- package/node_modules/@noodle-borg/runtime/dist/broker/types.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/confirmation-analysis.d.ts +28 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-analysis.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-analysis.js +143 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-analysis.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-continuation.d.ts +6 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-continuation.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-continuation.js +56 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation-continuation.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/confirmation.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/confirmation.js +71 -74
- package/node_modules/@noodle-borg/runtime/dist/confirmation.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/connector/types.d.ts +3 -1
- package/node_modules/@noodle-borg/runtime/dist/connector/types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/connector/types.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/connector-snapshot.d.ts +8 -0
- package/node_modules/@noodle-borg/runtime/dist/connector-snapshot.d.ts.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/connector-snapshot.js +89 -0
- package/node_modules/@noodle-borg/runtime/dist/connector-snapshot.js.map +1 -0
- package/node_modules/@noodle-borg/runtime/dist/execute.d.ts +2 -0
- package/node_modules/@noodle-borg/runtime/dist/execute.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/execute.js +24 -0
- package/node_modules/@noodle-borg/runtime/dist/execute.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.d.ts +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.js +1 -1
- package/node_modules/@noodle-borg/runtime/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/result.d.ts +8 -0
- package/node_modules/@noodle-borg/runtime/dist/result.d.ts.map +1 -1
- package/node_modules/@noodle-borg/runtime/dist/result.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.d.ts +15 -0
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.js +66 -0
- package/node_modules/@noodle-borg/service/dist/credential-binding-index.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-options.d.ts +13 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-options.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-options.js +26 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker-options.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker.d.ts +5 -0
- package/node_modules/@noodle-borg/service/dist/credential-broker.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-broker.js +43 -45
- package/node_modules/@noodle-borg/service/dist/credential-broker.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/credential-probes.d.ts +13 -0
- package/node_modules/@noodle-borg/service/dist/credential-probes.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/credential-probes.js +88 -0
- package/node_modules/@noodle-borg/service/dist/credential-probes.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.d.ts +12 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.js +111 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-binding-broker.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.d.ts +82 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.js +184 -0
- package/node_modules/@noodle-borg/service/dist/external-credential-exchange.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/index.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/index.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/index.js +1 -0
- package/node_modules/@noodle-borg/service/dist/index.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry-state.d.ts +3 -1
- package/node_modules/@noodle-borg/service/dist/registry-state.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry-state.js +27 -2
- package/node_modules/@noodle-borg/service/dist/registry-state.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry-types.d.ts +7 -0
- package/node_modules/@noodle-borg/service/dist/registry-types.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/registry.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/registry.js +23 -27
- package/node_modules/@noodle-borg/service/dist/registry.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/contracts.d.ts +16 -0
- package/node_modules/@noodle-borg/service/dist/routes/contracts.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/contracts.js +16 -0
- package/node_modules/@noodle-borg/service/dist/routes/contracts.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/environment-mutation-dispatch.d.ts +19 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-mutation-dispatch.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-mutation-dispatch.js +16 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-mutation-dispatch.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-production.d.ts +8 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-production.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-production.js +46 -0
- package/node_modules/@noodle-borg/service/dist/routes/environment-production.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/paths.d.ts +1 -0
- package/node_modules/@noodle-borg/service/dist/routes/paths.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/routes/paths.js +3 -0
- package/node_modules/@noodle-borg/service/dist/routes/paths.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve-options.d.ts +8 -0
- package/node_modules/@noodle-borg/service/dist/serve-options.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/serve.js +3 -0
- package/node_modules/@noodle-borg/service/dist/serve.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/service.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/service.js +13 -0
- package/node_modules/@noodle-borg/service/dist/service.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/environment-production.d.ts +9 -0
- package/node_modules/@noodle-borg/service/dist/store/environment-production.d.ts.map +1 -0
- package/node_modules/@noodle-borg/service/dist/store/environment-production.js +2 -0
- package/node_modules/@noodle-borg/service/dist/store/environment-production.js.map +1 -0
- package/node_modules/@noodle-borg/service/dist/store/in-memory.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/in-memory.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/in-memory.js +31 -2
- package/node_modules/@noodle-borg/service/dist/store/in-memory.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/json-file.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/json-file.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/json-file.js +64 -2
- package/node_modules/@noodle-borg/service/dist/store/json-file.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-envs.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-envs.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-envs.js +53 -7
- package/node_modules/@noodle-borg/service/dist/store/postgres-envs.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js +48 -0
- package/node_modules/@noodle-borg/service/dist/store/postgres-schema.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts +2 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/postgres.js +8 -2
- package/node_modules/@noodle-borg/service/dist/store/postgres.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/records.d.ts +5 -2
- package/node_modules/@noodle-borg/service/dist/store/records.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store/records.js +18 -4
- package/node_modules/@noodle-borg/service/dist/store/records.js.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store.d.ts +8 -2
- package/node_modules/@noodle-borg/service/dist/store.d.ts.map +1 -1
- package/node_modules/@noodle-borg/service/dist/store.js.map +1 -1
- package/node_modules/@noodle-borg/service/package.json +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
export { clientCredentials, externalExchange, managedSecret } from './connection-types.js';
|
|
2
|
+
const NAME = /^[a-z0-9_]+$/;
|
|
3
|
+
/** Name one logical connection. The id is stable app configuration, not a provider account id. */
|
|
4
|
+
export function connection(id, source) {
|
|
5
|
+
if (!NAME.test(id)) {
|
|
6
|
+
throw new Error(`connection id "${id}" must use lowercase letters, numbers, and underscores`);
|
|
7
|
+
}
|
|
8
|
+
return { id, source };
|
|
9
|
+
}
|
|
10
|
+
export function bind(connector, options) {
|
|
11
|
+
if (!NAME.test(options.profile)) {
|
|
12
|
+
throw new Error(`credential profile "${options.profile}" must use lowercase letters, numbers, and underscores`);
|
|
13
|
+
}
|
|
14
|
+
return {
|
|
15
|
+
id: connector.id,
|
|
16
|
+
version: connector.version,
|
|
17
|
+
operations: connector.operations,
|
|
18
|
+
...(connector.credentialProfiles !== undefined
|
|
19
|
+
? { credentialProfiles: connector.credentialProfiles }
|
|
20
|
+
: {}),
|
|
21
|
+
...(connector.definitions !== undefined ? { definitions: connector.definitions } : {}),
|
|
22
|
+
...(connector.httpDef !== undefined ? { httpDef: connector.httpDef } : {}),
|
|
23
|
+
binding: { profile: options.profile, connection: options.connection },
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
/** Internal manifest projection: clone readonly author inputs to the mutable generated schema shape. */
|
|
27
|
+
export function toManifestConnectionBinding(binding) {
|
|
28
|
+
const source = binding.connection.source;
|
|
29
|
+
return {
|
|
30
|
+
profile: binding.profile,
|
|
31
|
+
connection: {
|
|
32
|
+
id: binding.connection.id,
|
|
33
|
+
source: source.kind === 'clientCredentials'
|
|
34
|
+
? {
|
|
35
|
+
kind: 'clientCredentials',
|
|
36
|
+
tokenUrl: source.tokenUrl,
|
|
37
|
+
clientId: source.clientId,
|
|
38
|
+
clientSecret: source.clientSecret,
|
|
39
|
+
...(source.scopes !== undefined ? { scopes: [...source.scopes] } : {}),
|
|
40
|
+
...(source.audience !== undefined ? { audience: source.audience } : {}),
|
|
41
|
+
...(source.authMethod !== undefined ? { authMethod: source.authMethod } : {}),
|
|
42
|
+
}
|
|
43
|
+
: source.kind === 'managedSecret'
|
|
44
|
+
? {
|
|
45
|
+
kind: 'managedSecret',
|
|
46
|
+
secret: source.secret,
|
|
47
|
+
...(source.scopes !== undefined ? { scopes: [...source.scopes] } : {}),
|
|
48
|
+
...(source.audience !== undefined ? { audience: source.audience } : {}),
|
|
49
|
+
}
|
|
50
|
+
: { kind: 'externalExchange' },
|
|
51
|
+
},
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
export function toManifestConnectorRef(connector) {
|
|
55
|
+
return {
|
|
56
|
+
id: connector.id,
|
|
57
|
+
version: connector.version,
|
|
58
|
+
...(connector.binding !== undefined
|
|
59
|
+
? { binding: toManifestConnectionBinding(connector.binding) }
|
|
60
|
+
: {}),
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=connections.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connections.js","sourceRoot":"","sources":["../src/connections.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAE3F,MAAM,IAAI,GAAG,cAAc,CAAC;AAE5B,kGAAkG;AAClG,MAAM,UAAU,UAAU,CAAC,EAAU,EAAE,MAAwB;IAC7D,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,kBAAkB,EAAE,wDAAwD,CAAC,CAAC;IAChG,CAAC;IACD,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,CAAC;AACxB,CAAC;AAQD,MAAM,UAAU,IAAI,CAClB,SAAmC,EACnC,OAAsF;IAEtF,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC;QAChC,MAAM,IAAI,KAAK,CACb,uBAAuB,OAAO,CAAC,OAAO,wDAAwD,CAC/F,CAAC;IACJ,CAAC;IACD,OAAO;QACL,EAAE,EAAE,SAAS,CAAC,EAAE;QAChB,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,UAAU,EAAE,SAAS,CAAC,U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E,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;oBACvE,GAAG,CAAC,MAAM,CAAC,UAAU,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,UAAU,EAAE,MAAM,CAAC,UAAU,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC9E;gBACH,CAAC,CAAC,MAAM,CAAC,IAAI,KAAK,eAAe;oBAC/B,CAAC,CAAC;wBACE,IAAI,EAAE,eAAe;wBACrB,MAAM,EAAE,MAAM,CAAC,MAAM;wBACrB,GAAG,CAAC,MAAM,CAAC,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;wBACtE,GAAG,CAAC,MAAM,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;qBACxE;oBACH,CAAC,CAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE;SACrC;KACF,CAAC;AACJ,CAAC;AAED,MAAM,UAAU,sBAAsB,CAAC,SAAuB;IAK5D,OAAO;QACL,EAAE,EAAE,SAAS,CAAC,EAAE;QAChB,OAAO,EAAE,SAAS,CAAC,OAAO;QAC1B,GAAG,CAAC,SAAS,CAAC,OAAO,KAAK,SAAS;YACjC,CAAC,CAAC,EAAE,OAAO,EAAE,2BAA2B,CAAC,SAAS,CAAC,OAAO,CAAC,EAAE;YAC7D,CAAC,CAAC,EAAE,CAAC;KACR,CAAC;AACJ,CAAC"}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { type JsonSchema, type OperationSignature } from '@noodle-borg/compiler';
|
|
2
|
-
import { type ConnectorFile, type HttpConnectorDef } from '@noodle-borg/connector-defs';
|
|
2
|
+
import { type ConnectorFile, type CredentialProfileDef, type HttpConnectorDef } from '@noodle-borg/connector-defs';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { type ConfigRef } from './config.js';
|
|
5
|
+
import type { ConnectionBinding } from './connection-types.js';
|
|
5
6
|
/** What a builder accepts for an operation's input/output: Zod (canonical) or a raw JSON Schema object. */
|
|
6
7
|
type OperationIoOptions = z.ZodType | JsonSchema;
|
|
7
8
|
/**
|
|
@@ -80,8 +81,12 @@ export type HttpConnectorOptions = Omit<HttpConnectorDef['http'], 'baseUrl' | 'a
|
|
|
80
81
|
readonly baseUrl: string | ConfigRef;
|
|
81
82
|
readonly auth?: HttpAuthOptions;
|
|
82
83
|
} & {
|
|
84
|
+
readonly credentialProfiles?: HttpConnectorDef['credentialProfiles'];
|
|
83
85
|
readonly operations: Readonly<Record<string, HttpOperationOptionsWithRefs>>;
|
|
84
86
|
};
|
|
87
|
+
type DeclaredCredentialProfileKeys<Options extends HttpConnectorOptions> = Options extends {
|
|
88
|
+
readonly credentialProfiles: infer Profiles;
|
|
89
|
+
} ? Extract<keyof Profiles, string> : never;
|
|
85
90
|
export interface ConnectorOperationOptions {
|
|
86
91
|
readonly type: OperationSignature['type'];
|
|
87
92
|
/** Zod object schema (canonical) or a raw JSON Schema 2020-12 object. */
|
|
@@ -124,10 +129,13 @@ export interface ConnectorOpDefinition {
|
|
|
124
129
|
readonly limits?: ComputeLimits;
|
|
125
130
|
readonly calls?: Readonly<Record<string, string>>;
|
|
126
131
|
}
|
|
127
|
-
export interface ConnectorRef {
|
|
132
|
+
export interface ConnectorRef<CredentialProfileKey extends string = string> {
|
|
128
133
|
readonly id: string;
|
|
129
134
|
readonly version: string;
|
|
130
135
|
readonly operations: Readonly<Record<string, OperationSignature>>;
|
|
136
|
+
readonly binding?: ConnectionBinding<CredentialProfileKey>;
|
|
137
|
+
/** Credential profiles retained for type-safe binding; omitted for connectors without profiles. */
|
|
138
|
+
readonly credentialProfiles?: Readonly<Record<CredentialProfileKey, CredentialProfileDef>>;
|
|
131
139
|
/** Per-operation fulfilment (present for operations declared with `.compute()`), used to emit a catalog. */
|
|
132
140
|
readonly definitions?: Readonly<Record<string, ConnectorOpDefinition>>;
|
|
133
141
|
/** HTTP fulfilment (present for connectors declared with `.http()`), emitted to the catalog verbatim. */
|
|
@@ -144,24 +152,27 @@ export declare function connector(id: string): {
|
|
|
144
152
|
};
|
|
145
153
|
/** Validate a catalog document against the canonical schema, throwing a precise author-time error. */
|
|
146
154
|
export declare function validateCatalog(file: unknown): ConnectorFile;
|
|
147
|
-
export declare class ConnectorBuilder implements ConnectorRef {
|
|
155
|
+
export declare class ConnectorBuilder<CredentialProfileKey extends string = never> implements ConnectorRef<CredentialProfileKey> {
|
|
148
156
|
readonly id: string;
|
|
149
157
|
readonly version: string;
|
|
150
158
|
readonly operations: Readonly<Record<string, OperationSignature>>;
|
|
151
159
|
readonly definitions: Readonly<Record<string, ConnectorOpDefinition>>;
|
|
152
160
|
readonly httpDef?: HttpConnectorDef;
|
|
153
|
-
|
|
161
|
+
readonly credentialProfiles?: Readonly<Record<CredentialProfileKey, CredentialProfileDef>>;
|
|
162
|
+
constructor(id: string, version: string, operations?: Readonly<Record<string, OperationSignature>>, definitions?: Readonly<Record<string, ConnectorOpDefinition>>, httpDef?: HttpConnectorDef, credentialProfiles?: Readonly<Record<CredentialProfileKey, CredentialProfileDef>>);
|
|
163
|
+
/** Declare the credential profiles supported by a curated signature ref or compute connector. */
|
|
164
|
+
credentials<const Profiles extends Readonly<Record<string, CredentialProfileDef>>>(profiles: Profiles): ConnectorBuilder<Extract<keyof Profiles, string>>;
|
|
154
165
|
/** Declare an operation by signature only (fulfilment supplied elsewhere, e.g. a catalog by `id@version`). */
|
|
155
|
-
operation(name: string, options: ConnectorOperationOptions): ConnectorBuilder
|
|
166
|
+
operation(name: string, options: ConnectorOperationOptions): ConnectorBuilder<CredentialProfileKey>;
|
|
156
167
|
/**
|
|
157
168
|
* Declare this as an **HTTP connector**: transport (`baseUrl`/`allowedOrigins`), `bearer`/`apiKey` auth
|
|
158
169
|
* naming a secret reference, and `${...}`-mapped operations. The connector carries its own fulfilment
|
|
159
170
|
* (mirroring how `.compute()` carries its `code`) and is emitted to the catalog when `.use()`/
|
|
160
171
|
* `.provides()`-d. The typed options are validated against the canonical schema at author time.
|
|
161
172
|
*/
|
|
162
|
-
http(options:
|
|
173
|
+
http<const Options extends HttpConnectorOptions>(options: Options): ConnectorBuilder<DeclaredCredentialProfileKeys<Options>>;
|
|
163
174
|
/** Declare a sandboxed-compute operation: `run` is your function, shipped as the connector's `code`. */
|
|
164
|
-
compute(name: string, options: ComputeOperationOptions): ConnectorBuilder
|
|
175
|
+
compute(name: string, options: ComputeOperationOptions): ConnectorBuilder<CredentialProfileKey>;
|
|
165
176
|
}
|
|
166
177
|
export {};
|
|
167
178
|
//# sourceMappingURL=connectors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../src/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,aAAa,
|
|
1
|
+
{"version":3,"file":"connectors.d.ts","sourceRoot":"","sources":["../src/connectors.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,UAAU,EAEf,KAAK,kBAAkB,EACxB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,oBAAoB,EAEzB,KAAK,gBAAgB,EACtB,MAAM,6BAA6B,CAAC;AACrC,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,KAAK,SAAS,EAAyD,MAAM,aAAa,CAAC;AACpG,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D,2GAA2G;AAC3G,KAAK,kBAAkB,GAAG,CAAC,CAAC,OAAO,GAAG,UAAU,CAAC;AAoCjD;;;;GAIG;AACH,KAAK,eAA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= {}, httpDef, credentialProfiles) {
|
|
52
53
|
this.id = id;
|
|
53
54
|
this.version = version;
|
|
54
55
|
this.operations = operations;
|
|
@@ -56,6 +57,20 @@ export class ConnectorBuilder {
|
|
|
56
57
|
// Assign conditionally (not `= undefined`) to satisfy exactOptionalPropertyTypes.
|
|
57
58
|
if (httpDef !== undefined)
|
|
58
59
|
this.httpDef = httpDef;
|
|
60
|
+
const declaredProfiles = credentialProfiles ?? httpDef?.credentialProfiles;
|
|
61
|
+
if (declaredProfiles !== undefined) {
|
|
62
|
+
this.credentialProfiles = declaredProfiles;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
/** Declare the credential profiles supported by a curated signature ref or compute connector. */
|
|
66
|
+
credentials(profiles) {
|
|
67
|
+
if (this.httpDef !== undefined) {
|
|
68
|
+
throw new Error(`connector "${this.id}" is HTTP — declare credentialProfiles inside .http(...)`);
|
|
69
|
+
}
|
|
70
|
+
if (this.credentialProfiles !== undefined) {
|
|
71
|
+
throw new Error(`connector "${this.id}" already declares credential profiles`);
|
|
72
|
+
}
|
|
73
|
+
return new ConnectorBuilder(this.id, this.version, this.operations, this.definitions, undefined, { ...profiles });
|
|
59
74
|
}
|
|
60
75
|
/** Declare an operation by signature only (fulfilment supplied elsewhere, e.g. a catalog by `id@version`). */
|
|
61
76
|
operation(name, options) {
|
|
@@ -66,7 +81,7 @@ export class ConnectorBuilder {
|
|
|
66
81
|
input: toOperationIoSchema(options.input, 'input', `${this.id}.${name}`),
|
|
67
82
|
output: toOperationIoSchema(options.output, 'output', `${this.id}.${name}`),
|
|
68
83
|
},
|
|
69
|
-
}, this.definitions, this.httpDef);
|
|
84
|
+
}, this.definitions, this.httpDef, this.credentialProfiles);
|
|
70
85
|
}
|
|
71
86
|
/**
|
|
72
87
|
* Declare this as an **HTTP connector**: transport (`baseUrl`/`allowedOrigins`), `bearer`/`apiKey` auth
|
|
@@ -75,6 +90,9 @@ export class ConnectorBuilder {
|
|
|
75
90
|
* `.provides()`-d. The typed options are validated against the canonical schema at author time.
|
|
76
91
|
*/
|
|
77
92
|
http(options) {
|
|
93
|
+
if (this.credentialProfiles !== undefined) {
|
|
94
|
+
throw new Error(`connector "${this.id}" already uses .credentials(...) — HTTP connectors declare credentialProfiles inside .http(...)`);
|
|
95
|
+
}
|
|
78
96
|
if (Object.keys(this.definitions).length > 0) {
|
|
79
97
|
throw new Error(`connector "${this.id}" already has .compute() operations — a connector is HTTP or compute, not both`);
|
|
80
98
|
}
|
|
@@ -84,6 +102,9 @@ export class ConnectorBuilder {
|
|
|
84
102
|
id: this.id,
|
|
85
103
|
version: this.version,
|
|
86
104
|
kind: 'custom',
|
|
105
|
+
...(options.credentialProfiles !== undefined
|
|
106
|
+
? { credentialProfiles: options.credentialProfiles }
|
|
107
|
+
: {}),
|
|
87
108
|
http,
|
|
88
109
|
operations,
|
|
89
110
|
};
|
|
@@ -118,7 +139,7 @@ export class ConnectorBuilder {
|
|
|
118
139
|
...(options.limits ? { limits: options.limits } : {}),
|
|
119
140
|
...(options.calls ? { calls: options.calls } : {}),
|
|
120
141
|
},
|
|
121
|
-
});
|
|
142
|
+
}, undefined, this.credentialProfiles);
|
|
122
143
|
}
|
|
123
144
|
}
|
|
124
145
|
function rejectUnsafeActionRetry(id, options) {
|
|
@@ -133,8 +154,9 @@ function normalizeHttpOptions(id, options) {
|
|
|
133
154
|
for (const [name, operation] of Object.entries(options.operations)) {
|
|
134
155
|
operations[name] = normalizeOperation(id, name, operation);
|
|
135
156
|
}
|
|
157
|
+
const { credentialProfiles: _credentialProfiles, ...httpOptions } = options;
|
|
136
158
|
const normalized = {
|
|
137
|
-
...
|
|
159
|
+
...httpOptions,
|
|
138
160
|
baseUrl: normalizeVariableOrString(options.baseUrl, `connectors.${id}.http.baseUrl`),
|
|
139
161
|
...(options.allowedOrigins !== undefined ? { allowedOrigins: options.allowedOrigins } : {}),
|
|
140
162
|
...(options.auth !== undefined
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":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IACnF,CAAC;IACD,IAAI,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC;QACzB,OAAO,MAAM,CAAC,WAAW,CACvB,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,EAAE,EAAE,CAAC;YACzC,GAAG;YACH,mBAAmB,CAAC,IAAI,EAAE,GAAG,IAAI,IAAI,GAAG,EAAE,CAAC;SAC5C,CAAC,CACH,CAAC;IACJ,CAAC;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAED,SAAS,aAAa,CAAC,KAAc;IACnC,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,KAAK,KAAK,IAAI;QACd,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,MAAM,CAAC,SAAS,IAAI,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,CAC7F,CAAC;AACJ,CAAC;AAED;;;;GAIG;AACH,SAAS,YAAY,CAAC,EAAgD;IACpE,MAAM,GAAG,GAAG,EAAE,CAAC,QAAQ,EAAE,CAAC,IAAI,EAAE,CAAC;IACjC,IAAI,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC;QAAE,OAAO,GAAG,CAAC;IACjE,+EAA+E;IAC/E,OAAO,YAAY,GAAG,EAAE,CAAC;AAC3B,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { type ConnectorBuilder } from './connectors.js';
|
|
2
|
+
/**
|
|
3
|
+
* Build Noodle's curated Gmail REST connector. It declares transport and credential requirements only;
|
|
4
|
+
* applications bind it to one or more logical connections with `bind(...)`.
|
|
5
|
+
*/
|
|
6
|
+
export declare function gmailConnector(): ConnectorBuilder<'user_oauth'>;
|
|
7
|
+
//# sourceMappingURL=gmail.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmail.d.ts","sourceRoot":"","sources":["../src/gmail.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,gBAAgB,EAAa,MAAM,iBAAiB,CAAC;AA8DnE;;;GAGG;AACH,wBAAgB,cAAc,IAAI,gBAAgB,CAAC,YAAY,CAAC,CAyM/D"}
|
|
@@ -0,0 +1,257 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { connector } from './connectors.js';
|
|
3
|
+
const ORIGIN = 'https://gmail.googleapis.com';
|
|
4
|
+
const PROFILE = 'user_oauth';
|
|
5
|
+
const READONLY = 'https://www.googleapis.com/auth/gmail.readonly';
|
|
6
|
+
const COMPOSE = 'https://www.googleapis.com/auth/gmail.compose';
|
|
7
|
+
const SEND = 'https://www.googleapis.com/auth/gmail.send';
|
|
8
|
+
const MODIFY = 'https://www.googleapis.com/auth/gmail.modify';
|
|
9
|
+
const SETTINGS = 'https://www.googleapis.com/auth/gmail.settings.basic';
|
|
10
|
+
const responseData = z.object({ data: z.unknown() });
|
|
11
|
+
const responseMap = { data: '${response}' };
|
|
12
|
+
const identifier = z.string().min(1);
|
|
13
|
+
const rawMessage = z
|
|
14
|
+
.string()
|
|
15
|
+
.regex(/^(?=.+)(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2}(?:==)?|[A-Za-z0-9_-]{3}=?|[A-Za-z0-9_-]{4})?$/, 'expected RFC 4648 base64url bytes');
|
|
16
|
+
const vacationProperties = {
|
|
17
|
+
responseSubject: { type: 'string', minLength: 1 },
|
|
18
|
+
responseBodyPlainText: { type: 'string', minLength: 1 },
|
|
19
|
+
responseBodyHtml: { type: 'string', minLength: 1 },
|
|
20
|
+
restrictToContacts: { type: 'boolean' },
|
|
21
|
+
restrictToDomain: { type: 'boolean' },
|
|
22
|
+
startTime: { type: 'string', pattern: '^\\d{1,19}$', maxLength: 19 },
|
|
23
|
+
endTime: { type: 'string', pattern: '^\\d{1,19}$', maxLength: 19 },
|
|
24
|
+
};
|
|
25
|
+
const vacationSettingsInput = {
|
|
26
|
+
type: 'object',
|
|
27
|
+
additionalProperties: false,
|
|
28
|
+
properties: { enableAutoReply: { type: 'boolean' }, ...vacationProperties },
|
|
29
|
+
required: ['enableAutoReply'],
|
|
30
|
+
oneOf: [
|
|
31
|
+
{
|
|
32
|
+
properties: { enableAutoReply: { const: false } },
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
properties: { enableAutoReply: { const: true } },
|
|
36
|
+
anyOf: [
|
|
37
|
+
{ required: ['responseSubject'] },
|
|
38
|
+
{ required: ['responseBodyPlainText'] },
|
|
39
|
+
{ required: ['responseBodyHtml'] },
|
|
40
|
+
],
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
};
|
|
44
|
+
function credentials(scope) {
|
|
45
|
+
return {
|
|
46
|
+
profiles: [PROFILE],
|
|
47
|
+
scopes: [scope],
|
|
48
|
+
audience: ORIGIN,
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Build Noodle's curated Gmail REST connector. It declares transport and credential requirements only;
|
|
53
|
+
* applications bind it to one or more logical connections with `bind(...)`.
|
|
54
|
+
*/
|
|
55
|
+
export function gmailConnector() {
|
|
56
|
+
return connector('gmail')
|
|
57
|
+
.version('1.0.0')
|
|
58
|
+
.http({
|
|
59
|
+
baseUrl: ORIGIN,
|
|
60
|
+
allowedOrigins: [ORIGIN],
|
|
61
|
+
credentialProfiles: { user_oauth: { kind: 'bearer' } },
|
|
62
|
+
operations: {
|
|
63
|
+
search_messages: {
|
|
64
|
+
type: 'read',
|
|
65
|
+
method: 'GET',
|
|
66
|
+
path: '/gmail/v1/users/me/messages',
|
|
67
|
+
query: ['q', 'maxResults', 'pageToken', 'includeSpamTrash'],
|
|
68
|
+
input: z.object({
|
|
69
|
+
q: z.string().optional(),
|
|
70
|
+
maxResults: z.number().int().min(1).max(500).optional(),
|
|
71
|
+
pageToken: z.string().optional(),
|
|
72
|
+
includeSpamTrash: z.boolean().optional(),
|
|
73
|
+
}),
|
|
74
|
+
output: responseData,
|
|
75
|
+
response: responseMap,
|
|
76
|
+
credentials: credentials(READONLY),
|
|
77
|
+
},
|
|
78
|
+
get_message: {
|
|
79
|
+
type: 'read',
|
|
80
|
+
method: 'GET',
|
|
81
|
+
path: '/gmail/v1/users/me/messages/${args.message_id}',
|
|
82
|
+
query: ['format'],
|
|
83
|
+
input: z.object({
|
|
84
|
+
message_id: identifier,
|
|
85
|
+
format: z.enum(['minimal', 'full', 'raw', 'metadata']).optional(),
|
|
86
|
+
}),
|
|
87
|
+
output: responseData,
|
|
88
|
+
response: responseMap,
|
|
89
|
+
credentials: credentials(READONLY),
|
|
90
|
+
},
|
|
91
|
+
get_thread: {
|
|
92
|
+
type: 'read',
|
|
93
|
+
method: 'GET',
|
|
94
|
+
path: '/gmail/v1/users/me/threads/${args.thread_id}',
|
|
95
|
+
query: ['format'],
|
|
96
|
+
input: z.object({
|
|
97
|
+
thread_id: identifier,
|
|
98
|
+
format: z.enum(['minimal', 'full', 'metadata']).optional(),
|
|
99
|
+
}),
|
|
100
|
+
output: responseData,
|
|
101
|
+
response: responseMap,
|
|
102
|
+
credentials: credentials(READONLY),
|
|
103
|
+
},
|
|
104
|
+
list_drafts: {
|
|
105
|
+
type: 'read',
|
|
106
|
+
method: 'GET',
|
|
107
|
+
path: '/gmail/v1/users/me/drafts',
|
|
108
|
+
query: ['q', 'maxResults', 'pageToken', 'includeSpamTrash'],
|
|
109
|
+
input: z.object({
|
|
110
|
+
q: z.string().optional(),
|
|
111
|
+
maxResults: z.number().int().min(1).max(500).optional(),
|
|
112
|
+
pageToken: z.string().optional(),
|
|
113
|
+
includeSpamTrash: z.boolean().optional(),
|
|
114
|
+
}),
|
|
115
|
+
output: responseData,
|
|
116
|
+
response: responseMap,
|
|
117
|
+
credentials: credentials(READONLY),
|
|
118
|
+
},
|
|
119
|
+
get_draft: {
|
|
120
|
+
type: 'read',
|
|
121
|
+
method: 'GET',
|
|
122
|
+
path: '/gmail/v1/users/me/drafts/${args.draft_id}',
|
|
123
|
+
query: ['format'],
|
|
124
|
+
input: z.object({
|
|
125
|
+
draft_id: identifier,
|
|
126
|
+
format: z.enum(['minimal', 'full', 'raw', 'metadata']).optional(),
|
|
127
|
+
}),
|
|
128
|
+
output: responseData,
|
|
129
|
+
response: responseMap,
|
|
130
|
+
credentials: credentials(READONLY),
|
|
131
|
+
},
|
|
132
|
+
create_draft: {
|
|
133
|
+
type: 'action',
|
|
134
|
+
method: 'POST',
|
|
135
|
+
path: '/gmail/v1/users/me/drafts',
|
|
136
|
+
input: z.object({ raw: rawMessage }),
|
|
137
|
+
request: { message: { raw: '${args.raw}' } },
|
|
138
|
+
output: responseData,
|
|
139
|
+
response: responseMap,
|
|
140
|
+
credentials: credentials(COMPOSE),
|
|
141
|
+
},
|
|
142
|
+
update_draft: {
|
|
143
|
+
type: 'action',
|
|
144
|
+
method: 'PUT',
|
|
145
|
+
path: '/gmail/v1/users/me/drafts/${args.draft_id}',
|
|
146
|
+
input: z.object({ draft_id: identifier, raw: rawMessage }),
|
|
147
|
+
request: {
|
|
148
|
+
message: { raw: '${args.raw}' },
|
|
149
|
+
},
|
|
150
|
+
output: responseData,
|
|
151
|
+
response: responseMap,
|
|
152
|
+
credentials: credentials(COMPOSE),
|
|
153
|
+
},
|
|
154
|
+
send_draft: {
|
|
155
|
+
type: 'action',
|
|
156
|
+
method: 'POST',
|
|
157
|
+
path: '/gmail/v1/users/me/drafts/send',
|
|
158
|
+
input: z.object({ draft_id: identifier }),
|
|
159
|
+
request: { id: '${args.draft_id}' },
|
|
160
|
+
output: responseData,
|
|
161
|
+
response: responseMap,
|
|
162
|
+
credentials: credentials(COMPOSE),
|
|
163
|
+
},
|
|
164
|
+
modify_message_labels: {
|
|
165
|
+
type: 'action',
|
|
166
|
+
method: 'POST',
|
|
167
|
+
path: '/gmail/v1/users/me/messages/${args.message_id}/modify',
|
|
168
|
+
input: {
|
|
169
|
+
type: 'object',
|
|
170
|
+
additionalProperties: false,
|
|
171
|
+
properties: {
|
|
172
|
+
message_id: { type: 'string', minLength: 1 },
|
|
173
|
+
addLabelIds: {
|
|
174
|
+
type: 'array',
|
|
175
|
+
minItems: 1,
|
|
176
|
+
maxItems: 100,
|
|
177
|
+
items: { type: 'string', minLength: 1 },
|
|
178
|
+
},
|
|
179
|
+
removeLabelIds: {
|
|
180
|
+
type: 'array',
|
|
181
|
+
minItems: 1,
|
|
182
|
+
maxItems: 100,
|
|
183
|
+
items: { type: 'string', minLength: 1 },
|
|
184
|
+
},
|
|
185
|
+
},
|
|
186
|
+
required: ['message_id'],
|
|
187
|
+
anyOf: [{ required: ['addLabelIds'] }, { required: ['removeLabelIds'] }],
|
|
188
|
+
},
|
|
189
|
+
request: {
|
|
190
|
+
addLabelIds: '${args.addLabelIds}',
|
|
191
|
+
removeLabelIds: '${args.removeLabelIds}',
|
|
192
|
+
},
|
|
193
|
+
output: responseData,
|
|
194
|
+
response: responseMap,
|
|
195
|
+
credentials: credentials(MODIFY),
|
|
196
|
+
},
|
|
197
|
+
archive_message: {
|
|
198
|
+
type: 'action',
|
|
199
|
+
method: 'POST',
|
|
200
|
+
path: '/gmail/v1/users/me/messages/${args.message_id}/modify',
|
|
201
|
+
input: z.object({ message_id: identifier }),
|
|
202
|
+
request: { removeLabelIds: ['INBOX'] },
|
|
203
|
+
output: responseData,
|
|
204
|
+
response: responseMap,
|
|
205
|
+
credentials: credentials(MODIFY),
|
|
206
|
+
},
|
|
207
|
+
send_message: {
|
|
208
|
+
type: 'action',
|
|
209
|
+
method: 'POST',
|
|
210
|
+
path: '/gmail/v1/users/me/messages/send',
|
|
211
|
+
input: z.object({ raw: rawMessage, threadId: identifier.optional() }),
|
|
212
|
+
request: { raw: '${args.raw}', threadId: '${args.threadId}' },
|
|
213
|
+
output: responseData,
|
|
214
|
+
response: responseMap,
|
|
215
|
+
credentials: credentials(SEND),
|
|
216
|
+
},
|
|
217
|
+
trash_message: {
|
|
218
|
+
type: 'action',
|
|
219
|
+
method: 'POST',
|
|
220
|
+
path: '/gmail/v1/users/me/messages/${args.message_id}/trash',
|
|
221
|
+
input: z.object({ message_id: identifier }),
|
|
222
|
+
output: responseData,
|
|
223
|
+
response: responseMap,
|
|
224
|
+
credentials: credentials(MODIFY),
|
|
225
|
+
},
|
|
226
|
+
get_vacation: {
|
|
227
|
+
type: 'read',
|
|
228
|
+
method: 'GET',
|
|
229
|
+
path: '/gmail/v1/users/me/settings/vacation',
|
|
230
|
+
input: z.object({}),
|
|
231
|
+
output: responseData,
|
|
232
|
+
response: responseMap,
|
|
233
|
+
credentials: credentials(SETTINGS),
|
|
234
|
+
},
|
|
235
|
+
update_vacation: {
|
|
236
|
+
type: 'action',
|
|
237
|
+
method: 'PUT',
|
|
238
|
+
path: '/gmail/v1/users/me/settings/vacation',
|
|
239
|
+
input: vacationSettingsInput,
|
|
240
|
+
request: {
|
|
241
|
+
enableAutoReply: '${args.enableAutoReply}',
|
|
242
|
+
responseSubject: '${args.responseSubject}',
|
|
243
|
+
responseBodyPlainText: '${args.responseBodyPlainText}',
|
|
244
|
+
responseBodyHtml: '${args.responseBodyHtml}',
|
|
245
|
+
restrictToContacts: '${args.restrictToContacts}',
|
|
246
|
+
restrictToDomain: '${args.restrictToDomain}',
|
|
247
|
+
startTime: '${args.startTime}',
|
|
248
|
+
endTime: '${args.endTime}',
|
|
249
|
+
},
|
|
250
|
+
output: responseData,
|
|
251
|
+
response: responseMap,
|
|
252
|
+
credentials: credentials(SETTINGS),
|
|
253
|
+
},
|
|
254
|
+
},
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
//# sourceMappingURL=gmail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmail.js","sourceRoot":"","sources":["../src/gmail.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAyB,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAEnE,MAAM,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
@@ -3,9 +3,11 @@ import { z } from 'zod';
|
|
|
3
3
|
export type { PackagedAssetReference } from '@noodle-borg/compiler';
|
|
4
4
|
export { type AssistantLabels, type AssistantLayoutMode, type AssistantPosition, type AssistantPresentationOptions, type AssistantPresentationTone, type AssistantThemeMode, type AssistantUiOptions, type EmbeddedAssistantConfig, type EmbeddedAssistantOptions, embeddedAssistant, type OpenAICompatibleModel, type OpenAICompatibleModelInput, openAICompatible, } from './assistant.js';
|
|
5
5
|
export { type ConfigRef, type ConfigRefKind, secret, variable, } from './config.js';
|
|
6
|
+
export { type BoundConnectorRef, bind, type ConnectionBinding, type ConnectionRef, type ConnectionSource, clientCredentials, connection, externalExchange, managedSecret, } from './connections.js';
|
|
6
7
|
export { type ComputeHost, type ComputeLimits, type ComputeOperationOptions, ConnectorBuilder, type ConnectorCatalogDoc, type ConnectorOpDefinition, type ConnectorOperationOptions, type ConnectorRef, connector, type HttpConnectorOptions, } from './connectors.js';
|
|
7
8
|
export type { AmbientContextOptions, AmbientProviderContext, ServerContextOptions, } from './context.js';
|
|
8
9
|
export { type CustomerAuth, type CustomerAuthClaimMap, customerAuth, type FederatedOidcIssuer, } from './customer-auth.js';
|
|
10
|
+
export { gmailConnector } from './gmail.js';
|
|
9
11
|
export { type HandoffPurpose, type HandoffSession, type HandoffStateHandleLink, handoffSession, } from './handoff.js';
|
|
10
12
|
export { noodlePlatform, noodlePlatformCatalog } from './platform.js';
|
|
11
13
|
export { type Cond, type ConnectorClient, type Ref, type SymbolicScope, when, } from './recording.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAC;AACnF,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,YAAY,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AACpE,OAAO,EACL,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1
|
import { z } from 'zod';
|
|
2
2
|
export { embeddedAssistant, openAICompatible, } from './assistant.js';
|
|
3
3
|
export { secret, variable, } from './config.js';
|
|
4
|
+
export { bind, clientCredentials, connection, externalExchange, managedSecret, } from './connections.js';
|
|
4
5
|
export { ConnectorBuilder, connector, } from './connectors.js';
|
|
5
6
|
export { customerAuth, } from './customer-auth.js';
|
|
7
|
+
export { gmailConnector } from './gmail.js';
|
|
6
8
|
export { handoffSession, } from './handoff.js';
|
|
7
9
|
export { noodlePlatform, noodlePlatformCatalog } from './platform.js';
|
|
8
10
|
export { when, } from './recording.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAUL,iBAAiB,EAGjB,gBAAgB,GACjB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAGL,MAAM,EACN,QAAQ,GACT,MAAM,aAAa,CAAC;AACrB,OAAO,EAIL,gBAAgB,EAKhB,SAAS,GAEV,MAAM,iBAAiB,CAAC;AAMzB,OAAO,EAGL,YAAY,GAEb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAIL,cAAc,GACf,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtE,OAAO,EAKL,IAAI,GACL,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,WAAW,EACX,KAAK,EAGL,kBAAkB,EAGlB,MAAM,EAIN,QAAQ,EAIR,MAAM,EAIN,IAAI,EAIJ,YAAY,GACb,MAAM,aAAa,CAAC;AAErB,OAAO,EAAE,CAAC,EAAE,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,OAAO,EAUL,iBAAiB,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