runline 0.34.0 → 0.36.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/auth/errors.d.ts +3 -3
- package/dist/auth/errors.js +3 -3
- package/dist/core/engine.js +12 -8
- package/dist/credentials/aws-plugin.d.ts +79 -0
- package/dist/credentials/aws-plugin.js +179 -0
- package/dist/credentials/aws.d.ts +41 -0
- package/dist/credentials/aws.js +213 -0
- package/dist/credentials/broker.d.ts +11 -0
- package/dist/credentials/broker.js +222 -0
- package/dist/credentials/plugin.d.ts +255 -0
- package/dist/{plugins/_shared/credentials.js → credentials/plugin.js} +40 -12
- package/dist/credentials/policy.d.ts +11 -3
- package/dist/credentials/policy.js +22 -3
- package/dist/credentials/registry.d.ts +14 -0
- package/dist/credentials/registry.js +60 -2
- package/dist/credentials/sigv4.d.ts +47 -0
- package/dist/credentials/sigv4.js +145 -0
- package/dist/credentials/transport.d.ts +9 -0
- package/dist/credentials/transport.js +106 -26
- package/dist/credentials/types.d.ts +73 -4
- package/dist/index.d.ts +9 -2
- package/dist/index.js +6 -1
- package/dist/plugin/schema.d.ts +16 -4
- package/dist/plugin/schema.js +28 -5
- package/dist/plugin/types.d.ts +8 -0
- package/dist/plugins/_shared/base64.js +30 -0
- package/dist/plugins/_shared/googleAuth.js +65 -6
- package/dist/plugins/_shared/googleCredentials.js +41 -9
- package/dist/plugins/_shared/localFile.js +40 -0
- package/dist/plugins/_shared/mediaFile.js +16 -13
- package/dist/plugins/_shared/microsoftAuth.js +22 -9
- package/dist/plugins/_shared/microsoftCredentials.js +13 -9
- package/dist/plugins/_shared/shiftCloud.js +14 -19
- package/dist/plugins/_shared/shiftCredentials.js +1 -2
- package/dist/plugins/_shared/shiftUpload.js +14 -10
- package/dist/plugins/actionNetwork/src/credentials.js +1 -1
- package/dist/plugins/actionNetwork/src/index.js +1 -1
- package/dist/plugins/activeCampaign/src/credentials.js +1 -1
- package/dist/plugins/activeCampaign/src/index.js +1 -1
- package/dist/plugins/adalo/src/credentials.js +1 -1
- package/dist/plugins/adalo/src/index.js +1 -1
- package/dist/plugins/affinity/src/credentials.js +1 -1
- package/dist/plugins/affinity/src/index.js +1 -1
- package/dist/plugins/agentMail/src/credentials.js +35 -0
- package/dist/plugins/agentMail/src/drafts.js +137 -0
- package/dist/plugins/agentMail/src/inboxes.js +95 -0
- package/dist/plugins/agentMail/src/index.js +35 -0
- package/dist/plugins/agentMail/src/messages.js +154 -0
- package/dist/plugins/agentMail/src/schemas.js +156 -0
- package/dist/plugins/agentMail/src/shared.js +202 -0
- package/dist/plugins/agentMail/src/threads.js +75 -0
- package/dist/plugins/agileCrm/src/credentials.js +1 -1
- package/dist/plugins/agileCrm/src/index.js +1 -1
- package/dist/plugins/airtable/src/credentials.js +1 -1
- package/dist/plugins/airtable/src/index.js +1 -1
- package/dist/plugins/airtop/src/credentials.js +1 -1
- package/dist/plugins/airtop/src/index.js +1 -1
- package/dist/plugins/apiTemplateIo/src/credentials.js +1 -1
- package/dist/plugins/apiTemplateIo/src/index.js +1 -1
- package/dist/plugins/asana/src/credentials.js +1 -1
- package/dist/plugins/asana/src/index.js +1 -1
- package/dist/plugins/autopilot/src/credentials.js +1 -1
- package/dist/plugins/autopilot/src/index.js +1 -1
- package/dist/plugins/bambooHr/src/credentials.js +1 -1
- package/dist/plugins/bambooHr/src/index.js +1 -1
- package/dist/plugins/bannerbear/src/credentials.js +1 -1
- package/dist/plugins/bannerbear/src/index.js +1 -1
- package/dist/plugins/baserow/src/credentials.js +1 -1
- package/dist/plugins/baserow/src/index.js +1 -1
- package/dist/plugins/beeminder/src/credentials.js +1 -1
- package/dist/plugins/beeminder/src/index.js +1 -1
- package/dist/plugins/bitly/src/credentials.js +1 -1
- package/dist/plugins/bitly/src/index.js +1 -1
- package/dist/plugins/bitwarden/src/credentials.js +1 -1
- package/dist/plugins/bitwarden/src/index.js +1 -1
- package/dist/plugins/box/src/credentials.js +1 -1
- package/dist/plugins/box/src/index.js +1 -1
- package/dist/plugins/brandfetch/src/credentials.js +1 -1
- package/dist/plugins/brandfetch/src/index.js +1 -1
- package/dist/plugins/brevo/src/credentials.js +1 -1
- package/dist/plugins/brevo/src/index.js +1 -1
- package/dist/plugins/bubble/src/credentials.js +1 -1
- package/dist/plugins/bubble/src/index.js +1 -1
- package/dist/plugins/chargebee/src/credentials.js +1 -1
- package/dist/plugins/chargebee/src/index.js +1 -1
- package/dist/plugins/circleci/src/credentials.js +1 -1
- package/dist/plugins/circleci/src/index.js +1 -1
- package/dist/plugins/ciscoWebex/src/credentials.js +1 -1
- package/dist/plugins/ciscoWebex/src/index.js +1 -1
- package/dist/plugins/clearbit/src/credentials.js +1 -1
- package/dist/plugins/clearbit/src/index.js +1 -1
- package/dist/plugins/clickup/src/credentials.js +1 -1
- package/dist/plugins/clickup/src/index.js +1 -1
- package/dist/plugins/clockify/src/credentials.js +1 -1
- package/dist/plugins/clockify/src/index.js +1 -1
- package/dist/plugins/cloudflare/src/credentials.js +1 -1
- package/dist/plugins/cloudflare/src/index.js +1 -1
- package/dist/plugins/cockpit/src/credentials.js +1 -1
- package/dist/plugins/cockpit/src/index.js +1 -1
- package/dist/plugins/coda/src/credentials.js +1 -1
- package/dist/plugins/coda/src/index.js +1 -1
- package/dist/plugins/coingecko/src/credentials.js +1 -1
- package/dist/plugins/coingecko/src/index.js +1 -1
- package/dist/plugins/contentful/src/credentials.js +1 -1
- package/dist/plugins/contentful/src/index.js +1 -1
- package/dist/plugins/convertkit/src/credentials.js +1 -1
- package/dist/plugins/convertkit/src/index.js +1 -1
- package/dist/plugins/copper/src/credentials.js +1 -1
- package/dist/plugins/copper/src/index.js +1 -1
- package/dist/plugins/cortex/src/credentials.js +1 -1
- package/dist/plugins/cortex/src/index.js +1 -1
- package/dist/plugins/currents/src/credentials.js +1 -1
- package/dist/plugins/currents/src/index.js +1 -1
- package/dist/plugins/customerIo/src/credentials.js +1 -1
- package/dist/plugins/customerIo/src/index.js +1 -1
- package/dist/plugins/databricks/src/credentials.js +1 -1
- package/dist/plugins/databricks/src/index.js +1 -1
- package/dist/plugins/deepl/src/credentials.js +1 -1
- package/dist/plugins/deepl/src/index.js +1 -1
- package/dist/plugins/demio/src/credentials.js +1 -1
- package/dist/plugins/demio/src/index.js +1 -1
- package/dist/plugins/dhl/src/credentials.js +1 -1
- package/dist/plugins/dhl/src/index.js +1 -1
- package/dist/plugins/discord/src/credentials.js +1 -1
- package/dist/plugins/discord/src/index.js +1 -1
- package/dist/plugins/discourse/src/credentials.js +1 -1
- package/dist/plugins/discourse/src/index.js +1 -1
- package/dist/plugins/disqus/src/credentials.js +1 -1
- package/dist/plugins/disqus/src/index.js +1 -1
- package/dist/plugins/drift/src/credentials.js +1 -1
- package/dist/plugins/drift/src/index.js +1 -1
- package/dist/plugins/dropbox/src/credentials.js +1 -1
- package/dist/plugins/dropbox/src/index.js +1 -1
- package/dist/plugins/dropcontact/src/credentials.js +1 -1
- package/dist/plugins/dropcontact/src/index.js +1 -1
- package/dist/plugins/egoi/src/credentials.js +1 -1
- package/dist/plugins/egoi/src/index.js +1 -1
- package/dist/plugins/elasticsearch/src/credentials.js +1 -1
- package/dist/plugins/elasticsearch/src/index.js +1 -1
- package/dist/plugins/elevenlabs/src/credentials.js +1 -1
- package/dist/plugins/elevenlabs/src/shared.js +30 -46
- package/dist/plugins/elevenlabs/src/workflows.js +1 -1
- package/dist/plugins/emelia/src/credentials.js +1 -1
- package/dist/plugins/emelia/src/index.js +1 -1
- package/dist/plugins/erpnext/src/credentials.js +1 -1
- package/dist/plugins/erpnext/src/index.js +1 -1
- package/dist/plugins/facebookGraph/src/credentials.js +1 -1
- package/dist/plugins/facebookGraph/src/index.js +1 -2
- package/dist/plugins/fal/src/credentials.js +1 -1
- package/dist/plugins/fal/src/index.js +1 -1
- package/dist/plugins/fal/src/shared.js +1 -1
- package/dist/plugins/freshdesk/src/credentials.js +1 -1
- package/dist/plugins/freshdesk/src/index.js +1 -1
- package/dist/plugins/freshservice/src/credentials.js +1 -1
- package/dist/plugins/freshservice/src/index.js +1 -1
- package/dist/plugins/freshworksCrm/src/credentials.js +1 -1
- package/dist/plugins/freshworksCrm/src/index.js +1 -1
- package/dist/plugins/getresponse/src/credentials.js +1 -1
- package/dist/plugins/getresponse/src/index.js +1 -1
- package/dist/plugins/gett/src/credentials.js +1 -2
- package/dist/plugins/gett/src/index.js +1 -1
- package/dist/plugins/gett/src/login.js +1 -1
- package/dist/plugins/gett/src/session.js +1 -1
- package/dist/plugins/gett/src/shared.js +1 -2
- package/dist/plugins/ghost/src/credentials.js +1 -1
- package/dist/plugins/ghost/src/index.js +1 -1
- package/dist/plugins/github/src/credentials.js +1 -1
- package/dist/plugins/github/src/index.js +1 -1
- package/dist/plugins/gitlab/src/credentials.js +1 -1
- package/dist/plugins/gitlab/src/index.js +1 -1
- package/dist/plugins/gmail/src/index.js +23 -86
- package/dist/plugins/gong/src/credentials.js +1 -1
- package/dist/plugins/gong/src/index.js +1 -1
- package/dist/plugins/googleAppsScript/src/index.js +14 -2
- package/dist/plugins/googleCalendar/src/index.js +7 -40
- package/dist/plugins/googleContacts/src/index.js +3 -33
- package/dist/plugins/googleDocs/src/index.js +2 -33
- package/dist/plugins/googleDocs/src/shared.js +1 -1
- package/dist/plugins/googleDrive/src/index.js +20 -46
- package/dist/plugins/googleImage/src/credentials.js +1 -1
- package/dist/plugins/googleImage/src/index.js +2 -2
- package/dist/plugins/googleSheets/src/index.js +3 -35
- package/dist/plugins/googleSlides/src/index.js +3 -33
- package/dist/plugins/googleTasks/src/index.js +3 -33
- package/dist/plugins/gotify/src/credentials.js +1 -1
- package/dist/plugins/gotify/src/index.js +1 -1
- package/dist/plugins/gotowebinar/src/credentials.js +1 -1
- package/dist/plugins/gotowebinar/src/index.js +1 -1
- package/dist/plugins/grafana/src/credentials.js +1 -1
- package/dist/plugins/grafana/src/index.js +1 -1
- package/dist/plugins/graphql/src/credentials.js +1 -1
- package/dist/plugins/graphql/src/index.js +1 -1
- package/dist/plugins/grist/src/credentials.js +1 -1
- package/dist/plugins/grist/src/index.js +1 -1
- package/dist/plugins/halopsa/src/credentials.js +1 -2
- package/dist/plugins/halopsa/src/index.js +1 -1
- package/dist/plugins/harvest/src/credentials.js +1 -1
- package/dist/plugins/harvest/src/index.js +1 -1
- package/dist/plugins/helpscout/src/credentials.js +1 -1
- package/dist/plugins/helpscout/src/index.js +1 -1
- package/dist/plugins/highlevel/src/credentials.js +1 -1
- package/dist/plugins/highlevel/src/index.js +9 -3
- package/dist/plugins/homeAssistant/src/credentials.js +1 -1
- package/dist/plugins/homeAssistant/src/index.js +1 -1
- package/dist/plugins/hubspot/src/credentials.js +1 -1
- package/dist/plugins/hubspot/src/index.js +1 -1
- package/dist/plugins/humanticAi/src/credentials.js +1 -1
- package/dist/plugins/humanticAi/src/index.js +1 -1
- package/dist/plugins/hunter/src/credentials.js +1 -1
- package/dist/plugins/hunter/src/index.js +1 -1
- package/dist/plugins/intercom/src/credentials.js +1 -1
- package/dist/plugins/intercom/src/index.js +1 -1
- package/dist/plugins/iterable/src/credentials.js +1 -1
- package/dist/plugins/iterable/src/index.js +1 -1
- package/dist/plugins/jenkins/src/credentials.js +1 -1
- package/dist/plugins/jenkins/src/index.js +1 -1
- package/dist/plugins/jira/src/credentials.js +1 -1
- package/dist/plugins/jira/src/index.js +1 -1
- package/dist/plugins/keap/src/credentials.js +1 -1
- package/dist/plugins/keap/src/index.js +1 -1
- package/dist/plugins/kobotoolbox/src/credentials.js +1 -1
- package/dist/plugins/kobotoolbox/src/index.js +1 -1
- package/dist/plugins/lemlist/src/credentials.js +1 -1
- package/dist/plugins/lemlist/src/index.js +1 -1
- package/dist/plugins/linear/src/credentials.js +1 -1
- package/dist/plugins/linear/src/shared.js +1 -1
- package/dist/plugins/lingvanex/src/credentials.js +1 -1
- package/dist/plugins/lingvanex/src/index.js +1 -1
- package/dist/plugins/linkedin/src/credentials.js +1 -1
- package/dist/plugins/linkedin/src/index.js +1 -1
- package/dist/plugins/lonescale/src/credentials.js +1 -1
- package/dist/plugins/lonescale/src/index.js +1 -1
- package/dist/plugins/magento/src/credentials.js +1 -1
- package/dist/plugins/magento/src/index.js +1 -1
- package/dist/plugins/mailcheck/src/credentials.js +1 -1
- package/dist/plugins/mailcheck/src/index.js +1 -1
- package/dist/plugins/mailchimp/src/credentials.js +1 -1
- package/dist/plugins/mailchimp/src/index.js +1 -1
- package/dist/plugins/mailerlite/src/credentials.js +1 -1
- package/dist/plugins/mailerlite/src/index.js +1 -1
- package/dist/plugins/mailgun/src/credentials.js +1 -1
- package/dist/plugins/mailgun/src/index.js +1 -1
- package/dist/plugins/mailjet/src/credentials.js +1 -1
- package/dist/plugins/mailjet/src/index.js +1 -1
- package/dist/plugins/mandrill/src/credentials.js +1 -1
- package/dist/plugins/mandrill/src/index.js +1 -1
- package/dist/plugins/marketstack/src/credentials.js +1 -1
- package/dist/plugins/marketstack/src/index.js +1 -1
- package/dist/plugins/matrix/src/credentials.js +1 -1
- package/dist/plugins/matrix/src/index.js +1 -1
- package/dist/plugins/mattermost/src/credentials.js +1 -1
- package/dist/plugins/mattermost/src/index.js +1 -1
- package/dist/plugins/mautic/src/credentials.js +1 -1
- package/dist/plugins/mautic/src/index.js +1 -1
- package/dist/plugins/medium/src/credentials.js +1 -1
- package/dist/plugins/medium/src/index.js +1 -1
- package/dist/plugins/messagebird/src/credentials.js +1 -1
- package/dist/plugins/messagebird/src/index.js +1 -1
- package/dist/plugins/metabase/src/credentials.js +1 -1
- package/dist/plugins/metabase/src/index.js +1 -1
- package/dist/plugins/microsoftCalendar/src/index.js +2 -7
- package/dist/plugins/microsoftFiles/src/index.js +17 -9
- package/dist/plugins/microsoftMail/src/index.js +2 -7
- package/dist/plugins/misp/src/credentials.js +1 -1
- package/dist/plugins/misp/src/index.js +1 -1
- package/dist/plugins/mocean/src/credentials.js +1 -1
- package/dist/plugins/mocean/src/index.js +1 -1
- package/dist/plugins/monday/src/credentials.js +1 -1
- package/dist/plugins/monday/src/index.js +1 -1
- package/dist/plugins/monicaCrm/src/credentials.js +1 -1
- package/dist/plugins/monicaCrm/src/index.js +1 -1
- package/dist/plugins/msg91/src/credentials.js +1 -1
- package/dist/plugins/msg91/src/index.js +1 -1
- package/dist/plugins/nasa/src/credentials.js +1 -1
- package/dist/plugins/nasa/src/index.js +1 -1
- package/dist/plugins/netlify/src/credentials.js +1 -1
- package/dist/plugins/netlify/src/index.js +1 -1
- package/dist/plugins/netscalerAdc/src/credentials.js +1 -1
- package/dist/plugins/netscalerAdc/src/index.js +1 -1
- package/dist/plugins/nextcloud/src/credentials.js +1 -2
- package/dist/plugins/nextcloud/src/index.js +1 -1
- package/dist/plugins/nocodb/src/credentials.js +1 -1
- package/dist/plugins/nocodb/src/index.js +1 -1
- package/dist/plugins/notion/src/credentials.js +1 -1
- package/dist/plugins/notion/src/index.js +1 -1
- package/dist/plugins/npm/src/credentials.js +1 -1
- package/dist/plugins/npm/src/index.js +1 -1
- package/dist/plugins/odoo/src/credentials.js +1 -1
- package/dist/plugins/odoo/src/index.js +1 -2
- package/dist/plugins/okta/src/credentials.js +1 -1
- package/dist/plugins/okta/src/index.js +1 -2
- package/dist/plugins/oneSimpleApi/src/credentials.js +1 -1
- package/dist/plugins/oneSimpleApi/src/index.js +1 -1
- package/dist/plugins/onfleet/src/credentials.js +1 -1
- package/dist/plugins/onfleet/src/index.js +1 -1
- package/dist/plugins/openai/src/credentials.js +1 -1
- package/dist/plugins/openai/src/index.js +2 -2
- package/dist/plugins/openweathermap/src/credentials.js +1 -1
- package/dist/plugins/openweathermap/src/index.js +1 -1
- package/dist/plugins/oura/src/credentials.js +1 -1
- package/dist/plugins/oura/src/index.js +1 -1
- package/dist/plugins/paddle/src/credentials.js +1 -1
- package/dist/plugins/paddle/src/index.js +1 -1
- package/dist/plugins/pagerduty/src/credentials.js +1 -1
- package/dist/plugins/pagerduty/src/index.js +1 -1
- package/dist/plugins/parallel/src/credentials.js +1 -1
- package/dist/plugins/parallel/src/index.js +15 -1
- package/dist/plugins/paypal/src/credentials.js +1 -1
- package/dist/plugins/paypal/src/index.js +1 -1
- package/dist/plugins/peekalink/src/credentials.js +1 -1
- package/dist/plugins/peekalink/src/index.js +1 -1
- package/dist/plugins/phantombuster/src/credentials.js +1 -1
- package/dist/plugins/phantombuster/src/index.js +1 -1
- package/dist/plugins/philipsHue/src/credentials.js +1 -1
- package/dist/plugins/philipsHue/src/index.js +1 -1
- package/dist/plugins/pipedrive/src/credentials.js +1 -1
- package/dist/plugins/pipedrive/src/index.js +1 -1
- package/dist/plugins/plaud/src/shared.js +1 -2
- package/dist/plugins/plivo/src/credentials.js +1 -1
- package/dist/plugins/plivo/src/index.js +1 -1
- package/dist/plugins/posthog/src/credentials.js +1 -1
- package/dist/plugins/posthog/src/index.js +1 -1
- package/dist/plugins/profitwell/src/credentials.js +1 -1
- package/dist/plugins/profitwell/src/index.js +1 -1
- package/dist/plugins/pushbullet/src/credentials.js +1 -1
- package/dist/plugins/pushbullet/src/index.js +1 -1
- package/dist/plugins/pushcut/src/credentials.js +1 -1
- package/dist/plugins/pushcut/src/index.js +1 -1
- package/dist/plugins/pushover/src/credentials.js +1 -1
- package/dist/plugins/pushover/src/index.js +1 -1
- package/dist/plugins/quickbase/src/credentials.js +1 -1
- package/dist/plugins/quickbase/src/index.js +1 -1
- package/dist/plugins/quickbooks/src/credentials.js +1 -1
- package/dist/plugins/quickbooks/src/index.js +1 -1
- package/dist/plugins/raindrop/src/credentials.js +1 -1
- package/dist/plugins/raindrop/src/index.js +1 -1
- package/dist/plugins/recraft/src/credentials.js +1 -1
- package/dist/plugins/recraft/src/index.js +2 -2
- package/dist/plugins/reddit/src/credentials.js +1 -1
- package/dist/plugins/reddit/src/index.js +1 -1
- package/dist/plugins/replicate/src/credentials.js +1 -1
- package/dist/plugins/replicate/src/index.js +2 -2
- package/dist/plugins/rocketchat/src/credentials.js +1 -1
- package/dist/plugins/rocketchat/src/index.js +1 -1
- package/dist/plugins/rundeck/src/credentials.js +1 -1
- package/dist/plugins/rundeck/src/index.js +1 -1
- package/dist/plugins/salesforce/src/credentials.js +1 -2
- package/dist/plugins/salesforce/src/shared.js +1 -2
- package/dist/plugins/salesforce/src/sobjects.js +1 -1
- package/dist/plugins/salesmate/src/credentials.js +1 -1
- package/dist/plugins/salesmate/src/index.js +1 -1
- package/dist/plugins/securityScorecard/src/credentials.js +1 -1
- package/dist/plugins/securityScorecard/src/index.js +1 -1
- package/dist/plugins/segment/src/credentials.js +1 -1
- package/dist/plugins/segment/src/index.js +1 -1
- package/dist/plugins/sendgrid/src/credentials.js +1 -1
- package/dist/plugins/sendgrid/src/index.js +1 -2
- package/dist/plugins/sendy/src/credentials.js +1 -1
- package/dist/plugins/sendy/src/index.js +1 -1
- package/dist/plugins/sentry/src/credentials.js +1 -1
- package/dist/plugins/sentry/src/index.js +1 -1
- package/dist/plugins/servicenow/src/credentials.js +1 -1
- package/dist/plugins/servicenow/src/index.js +1 -1
- package/dist/plugins/shiftAtlas/src/graph.js +2 -1
- package/dist/plugins/shiftAtlas/src/shared.js +1 -1
- package/dist/plugins/shiftBwm/src/shared.js +2 -4
- package/dist/plugins/shiftCrm/src/access.js +2 -1
- package/dist/plugins/shiftCrm/src/accounts.js +2 -1
- package/dist/plugins/shiftCrm/src/imports.js +2 -1
- package/dist/plugins/shiftCrm/src/opportunities.js +2 -1
- package/dist/plugins/shiftCrm/src/people.js +2 -1
- package/dist/plugins/shiftCrm/src/records.js +2 -1
- package/dist/plugins/shiftCrm/src/shared.js +1 -1
- package/dist/plugins/shiftCrm/src/tasks.js +2 -1
- package/dist/plugins/shiftObjects/src/objects.js +3 -2
- package/dist/plugins/shiftOcr/src/index.js +10 -4
- package/dist/plugins/shiftPages/src/pages.js +2 -1
- package/dist/plugins/shiftPages/src/shared.js +3 -2
- package/dist/plugins/shiftTranscription/src/shared.js +1 -1
- package/dist/plugins/shiftTranscription/src/transcription.js +3 -2
- package/dist/plugins/shiftWork/src/issue-views.js +2 -1
- package/dist/plugins/shiftWork/src/issues.js +2 -1
- package/dist/plugins/shiftWork/src/projects.js +2 -1
- package/dist/plugins/shiftWork/src/shared.js +1 -1
- package/dist/plugins/shopify/src/credentials.js +1 -1
- package/dist/plugins/shopify/src/index.js +1 -1
- package/dist/plugins/signl4/src/credentials.js +1 -1
- package/dist/plugins/signl4/src/index.js +1 -1
- package/dist/plugins/slack/src/credentials.js +1 -1
- package/dist/plugins/slack/src/index.js +1 -1
- package/dist/plugins/sms77/src/credentials.js +1 -1
- package/dist/plugins/sms77/src/index.js +1 -1
- package/dist/plugins/splunk/src/credentials.js +1 -1
- package/dist/plugins/splunk/src/index.js +1 -1
- package/dist/plugins/spotify/src/credentials.js +1 -1
- package/dist/plugins/spotify/src/index.js +1 -1
- package/dist/plugins/stackby/src/credentials.js +1 -1
- package/dist/plugins/stackby/src/index.js +1 -1
- package/dist/plugins/steel/src/auth.js +1 -1
- package/dist/plugins/steel/src/browser.js +1 -1
- package/dist/plugins/steel/src/captchas.js +1 -1
- package/dist/plugins/steel/src/extensions.js +1 -1
- package/dist/plugins/steel/src/files.js +1 -1
- package/dist/plugins/steel/src/profiles.js +1 -1
- package/dist/plugins/steel/src/sessions.js +1 -1
- package/dist/plugins/steel/src/shared.js +1 -1
- package/dist/plugins/storyblok/src/credentials.js +1 -1
- package/dist/plugins/storyblok/src/index.js +1 -1
- package/dist/plugins/strapi/src/credentials.js +1 -1
- package/dist/plugins/strapi/src/index.js +1 -1
- package/dist/plugins/strava/src/credentials.js +1 -1
- package/dist/plugins/strava/src/index.js +1 -1
- package/dist/plugins/stripe/src/credentials.js +1 -1
- package/dist/plugins/stripe/src/index.js +1 -1
- package/dist/plugins/supabase/src/credentials.js +1 -1
- package/dist/plugins/supabase/src/index.js +1 -1
- package/dist/plugins/syncromsp/src/credentials.js +1 -1
- package/dist/plugins/syncromsp/src/index.js +1 -1
- package/dist/plugins/tapfiliate/src/credentials.js +1 -1
- package/dist/plugins/tapfiliate/src/index.js +1 -1
- package/dist/plugins/telegram/src/credentials.js +1 -1
- package/dist/plugins/telegram/src/index.js +1 -1
- package/dist/plugins/thehive/src/credentials.js +1 -1
- package/dist/plugins/thehive/src/index.js +1 -1
- package/dist/plugins/thehiveProject/src/credentials.js +1 -1
- package/dist/plugins/thehiveProject/src/index.js +1 -1
- package/dist/plugins/todoist/src/credentials.js +1 -1
- package/dist/plugins/todoist/src/index.js +1 -1
- package/dist/plugins/together/src/credentials.js +1 -1
- package/dist/plugins/together/src/index.js +2 -2
- package/dist/plugins/travisci/src/credentials.js +1 -1
- package/dist/plugins/travisci/src/index.js +1 -1
- package/dist/plugins/trello/src/credentials.js +1 -1
- package/dist/plugins/trello/src/index.js +1 -1
- package/dist/plugins/twake/src/credentials.js +1 -1
- package/dist/plugins/twake/src/index.js +1 -1
- package/dist/plugins/twilio/src/credentials.js +1 -1
- package/dist/plugins/twilio/src/index.js +1 -1
- package/dist/plugins/twist/src/credentials.js +1 -1
- package/dist/plugins/twist/src/index.js +1 -1
- package/dist/plugins/twitter/src/credentials.js +1 -1
- package/dist/plugins/twitter/src/index.js +1 -1
- package/dist/plugins/typesafe/src/credentials.js +1 -1
- package/dist/plugins/typesafe/src/shared.js +1 -1
- package/dist/plugins/unleashedSoftware/src/credentials.js +1 -1
- package/dist/plugins/unleashedSoftware/src/index.js +1 -1
- package/dist/plugins/uplead/src/credentials.js +1 -1
- package/dist/plugins/uplead/src/index.js +1 -1
- package/dist/plugins/uproc/src/credentials.js +1 -1
- package/dist/plugins/uproc/src/index.js +1 -1
- package/dist/plugins/uptimerobot/src/credentials.js +1 -1
- package/dist/plugins/uptimerobot/src/index.js +1 -1
- package/dist/plugins/urlscanio/src/credentials.js +1 -1
- package/dist/plugins/urlscanio/src/index.js +1 -1
- package/dist/plugins/vercel/src/credentials.js +1 -1
- package/dist/plugins/vercel/src/deployments.js +1 -1
- package/dist/plugins/vercel/src/env.js +1 -1
- package/dist/plugins/vercel/src/projects.js +1 -1
- package/dist/plugins/vercel/src/shared.js +1 -2
- package/dist/plugins/vero/src/credentials.js +1 -1
- package/dist/plugins/vero/src/index.js +1 -1
- package/dist/plugins/vonage/src/credentials.js +1 -1
- package/dist/plugins/vonage/src/index.js +1 -1
- package/dist/plugins/wekan/src/credentials.js +1 -1
- package/dist/plugins/wekan/src/index.js +1 -1
- package/dist/plugins/wolt/src/account.js +1 -1
- package/dist/plugins/wolt/src/credentials.js +1 -1
- package/dist/plugins/wolt/src/index.js +1 -1
- package/dist/plugins/wolt/src/shared.js +1 -2
- package/dist/plugins/woocommerce/src/credentials.js +1 -1
- package/dist/plugins/woocommerce/src/index.js +1 -1
- package/dist/plugins/wordpress/src/credentials.js +1 -1
- package/dist/plugins/wordpress/src/index.js +1 -1
- package/dist/plugins/xai/src/credentials.js +1 -1
- package/dist/plugins/xai/src/index.js +2 -2
- package/dist/plugins/xero/src/credentials.js +1 -1
- package/dist/plugins/xero/src/index.js +1 -1
- package/dist/plugins/yourls/src/credentials.js +1 -1
- package/dist/plugins/yourls/src/index.js +1 -1
- package/dist/plugins/zammad/src/credentials.js +1 -1
- package/dist/plugins/zammad/src/index.js +1 -1
- package/dist/plugins/zendesk/src/credentials.js +1 -1
- package/dist/plugins/zendesk/src/index.js +1 -1
- package/dist/plugins/zoho/src/credentials.js +1 -1
- package/dist/plugins/zoho/src/index.js +1 -1
- package/dist/plugins/zoom/src/credentials.js +1 -1
- package/dist/plugins/zoom/src/index.js +1 -1
- package/dist/plugins/zulip/src/credentials.js +1 -1
- package/dist/plugins/zulip/src/index.js +1 -1
- package/package.json +4 -2
- package/dist/plugins/_shared/credentialAdapter.js +0 -152
- package/dist/tests/helpers/engine-harness.d.ts +0 -1
- package/dist/tests/helpers/engine-harness.js +0 -236
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson } from "
|
|
1
|
+
import { credentialJson, } from "runline";
|
|
2
2
|
import { plivoCredential } from "./credentials.js";
|
|
3
3
|
/** A Plivo JSON call beneath the account; Plivo's resource paths end in /. */
|
|
4
4
|
function apiRequest(ctx, resource, body) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { httpsBase, staticCredential } from "
|
|
1
|
+
import { httpsBase, staticCredential } from "runline";
|
|
2
2
|
/**
|
|
3
3
|
* A project API key, added by the transport as the api_key field of every
|
|
4
4
|
* JSON capture call, on the connection's own PostHog instance. The
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { profitwellCredential } from "./credentials.js";
|
|
3
3
|
function apiRequest(ctx, path, qs) {
|
|
4
4
|
return credentialJson(ctx, profitwellCredential, "profitwell", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { staticCredential } from "
|
|
1
|
+
import { staticCredential } from "runline";
|
|
2
2
|
/** An access token in the Access-Token header, to Pushbullet's one API origin. */
|
|
3
3
|
export const pushbulletCredential = staticCredential({
|
|
4
4
|
id: "pushbullet",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { pushbulletCredential } from "./credentials.js";
|
|
3
3
|
function apiRequest(ctx, method, path, body, qs) {
|
|
4
4
|
return credentialJson(ctx, pushbulletCredential, "pushbullet", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { staticCredential } from "
|
|
1
|
+
import { staticCredential } from "runline";
|
|
2
2
|
/** An application token, added by the transport as the token field of Pushover's form body. */
|
|
3
3
|
export const pushoverCredential = staticCredential({
|
|
4
4
|
id: "pushover",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { staticCredential } from "
|
|
1
|
+
import { staticCredential } from "runline";
|
|
2
2
|
/** A user token, sent as "QB-USER-TOKEN {token}" in Authorization, to QuickBase's
|
|
3
3
|
* one API origin. The realm hostname rides along as a public caller header. */
|
|
4
4
|
export const quickbaseCredential = staticCredential({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { quickbaseCredential } from "./credentials.js";
|
|
3
3
|
function apiRequest(ctx, method, endpoint, body, qs) {
|
|
4
4
|
return credentialJson(ctx, quickbaseCredential, "quickbase", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hostLabel, staticCredential } from "
|
|
1
|
+
import { hostLabel, staticCredential } from "runline";
|
|
2
2
|
/** An OAuth2 access token, sent as a bearer to the company's own realm path on
|
|
3
3
|
* Intuit's production or sandbox host, chosen by the sandbox flag. */
|
|
4
4
|
export const quickbooksCredential = staticCredential({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { quickbooksCredential } from "./credentials.js";
|
|
3
3
|
function api(ctx, method, endpoint, body, qs) {
|
|
4
4
|
return credentialJson(ctx, quickbooksCredential, "quickbooks", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { raindropCredential } from "./credentials.js";
|
|
3
3
|
function apiRequest(ctx, method, endpoint, body) {
|
|
4
4
|
return credentialJson(ctx, raindropCredential, "raindrop", {
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* legacy `style` knob — pass `styleId` against your own custom
|
|
14
14
|
* style if you've set one up.
|
|
15
15
|
*/
|
|
16
|
-
import { credentialJson, multipartBody } from "
|
|
16
|
+
import { credentialJson, multipartBody } from "runline";
|
|
17
17
|
import { readImageInput, SEND_FILE_NOTE, writeImageFile, } from "../../_shared/mediaFile.js";
|
|
18
18
|
import { recraftCredential } from "./credentials.js";
|
|
19
19
|
export default function recraft(rl) {
|
|
@@ -154,7 +154,7 @@ export default function recraft(rl) {
|
|
|
154
154
|
if (typeof p.prompt !== "string" || p.prompt.length === 0) {
|
|
155
155
|
throw new Error("recraft: prompt is required");
|
|
156
156
|
}
|
|
157
|
-
const img = readImageInput(p.imagePath, "recraft");
|
|
157
|
+
const img = await readImageInput(p.imagePath, "recraft");
|
|
158
158
|
const form = new FormData();
|
|
159
159
|
form.append("image", new Blob([img.bytes], { type: img.mimeType }), img.fileName);
|
|
160
160
|
form.append("prompt", p.prompt);
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
* downloaded to local files so callers can deliver them directly.
|
|
19
19
|
*/
|
|
20
20
|
import { Buffer } from "node:buffer";
|
|
21
|
-
import { credentialJson, pathSegments, pathWithin, } from "
|
|
21
|
+
import { credentialJson, pathSegments, pathWithin, } from "runline";
|
|
22
22
|
import { readImageInput, SEND_FILE_NOTE, writeMediaFile, } from "../../_shared/mediaFile.js";
|
|
23
23
|
import { parseSize } from "../../_shared/parseSize.js";
|
|
24
24
|
import { replicateCredential } from "./credentials.js";
|
|
@@ -224,7 +224,7 @@ export default function replicate(rl) {
|
|
|
224
224
|
if (typeof p.prompt !== "string" || p.prompt.length === 0) {
|
|
225
225
|
throw new Error("replicate: prompt is required");
|
|
226
226
|
}
|
|
227
|
-
const img = readImageInput(p.imagePath, "replicate");
|
|
227
|
+
const img = await readImageInput(p.imagePath, "replicate");
|
|
228
228
|
const model = p.model ?? "black-forest-labs/flux-kontext-pro";
|
|
229
229
|
const imageKey = p.imageInputKey ?? "input_image";
|
|
230
230
|
const { images, failures } = await runPrediction({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { httpsBase, staticCredential } from "
|
|
1
|
+
import { httpsBase, staticCredential } from "runline";
|
|
2
2
|
/**
|
|
3
3
|
* A personal auth token in the X-Auth-Token header. Its public companion,
|
|
4
4
|
* the X-User-Id identifier, rides as an allowed header.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { httpsBase, staticCredential } from "
|
|
1
|
+
import { httpsBase, staticCredential } from "runline";
|
|
2
2
|
/**
|
|
3
3
|
* An API token, appended by the transport as the authtoken query parameter
|
|
4
4
|
* on the connection's own Rundeck server beneath /api/.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { rundeckCredential } from "./credentials.js";
|
|
3
3
|
function apiRequest(ctx, method, path, body, qs) {
|
|
4
4
|
return credentialJson(ctx, rundeckCredential, "rundeck", {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AuthError, } from "runline";
|
|
2
|
-
import { configChoice, grantSchema, httpsBase, staticCredential, } from "../../_shared/credentials.js";
|
|
1
|
+
import { AuthError, configChoice, grantSchema, httpsBase, staticCredential, } from "runline";
|
|
3
2
|
/**
|
|
4
3
|
* A path beneath the org's My Domain URL. A Lightning UI host serves no
|
|
5
4
|
* API, and is refused as invalid_credentials.
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AuthError } from "runline";
|
|
2
|
-
import { credentialJson } from "../../_shared/credentials.js";
|
|
1
|
+
import { AuthError, credentialJson, } from "runline";
|
|
3
2
|
import { salesforceCredential } from "./credentials.js";
|
|
4
3
|
export const DEFAULT_API_VERSION = "v59.0";
|
|
5
4
|
/** The connection's REST API version, as `vNN.N`; anything else is refused. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { salesmateCredential } from "./credentials.js";
|
|
3
3
|
function api(ctx, method, endpoint, body, qs) {
|
|
4
4
|
return credentialJson(ctx, salesmateCredential, "salesmate", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { securityScorecardCredential } from "./credentials.js";
|
|
3
3
|
function apiRequest(ctx, method, path, body, qs) {
|
|
4
4
|
return credentialJson(ctx, securityScorecardCredential, "securityScorecard", {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import { AuthError, } from "runline";
|
|
2
|
-
import { credentialOk, pathSegment } from "../../_shared/credentials.js";
|
|
1
|
+
import { AuthError, credentialOk, pathSegment, } from "runline";
|
|
3
2
|
import { sendgridCredential } from "./credentials.js";
|
|
4
3
|
/** A JSON request whose response headers stay readable (mail.send's x-message-id). */
|
|
5
4
|
async function apiRequest(ctx, method, endpoint, body, qs) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { httpsBase, staticCredential } from "
|
|
1
|
+
import { httpsBase, staticCredential } from "runline";
|
|
2
2
|
/**
|
|
3
3
|
* An API key, added by the transport as the api_key field of every form
|
|
4
4
|
* call to the connection's own Sendy installation. The installation URL
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialOk } from "
|
|
1
|
+
import { credentialOk, } from "runline";
|
|
2
2
|
import { sendyCredential } from "./credentials.js";
|
|
3
3
|
/** A Sendy form call; Sendy answers in plain text, `boolean` asking for 1 on success. */
|
|
4
4
|
async function apiRequest(ctx, endpoint, body) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { sentryCredential } from "./credentials.js";
|
|
3
3
|
async function apiRequest(ctx, method, path, body, qs) {
|
|
4
4
|
return credentialJson(ctx, sentryCredential, "sentry", {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { hostLabel, staticCredential } from "
|
|
1
|
+
import { hostLabel, staticCredential } from "runline";
|
|
2
2
|
/** A username-password pair, sent as HTTP Basic to the instance subdomain. */
|
|
3
3
|
export const servicenowCredential = staticCredential({
|
|
4
4
|
id: "servicenow",
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { credentialJson, pathSegment } from "
|
|
1
|
+
import { credentialJson, pathSegment, } from "runline";
|
|
2
2
|
import { servicenowCredential } from "./credentials.js";
|
|
3
3
|
function api(ctx, method, path, body, query) {
|
|
4
4
|
return credentialJson(ctx, servicenowCredential, "servicenow", {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { ATLAS_BASE, cursorSchema, enumSchema, GRAPH_ACTOR_KIND, GRAPH_ASSIGNMENT_ROLE, GRAPH_BINDING_EXECUTOR, GRAPH_BINDING_STATUS, GRAPH_CHANGE_ENTITY_TYPE, GRAPH_EVIDENCE_KIND, GRAPH_JOURNEY_STATUS, GRAPH_RELATION_KIND, GRAPH_TASK_MODE, idSchema,
|
|
3
|
+
import { ATLAS_BASE, cursorSchema, enumSchema, GRAPH_ACTOR_KIND, GRAPH_ASSIGNMENT_ROLE, GRAPH_BINDING_EXECUTOR, GRAPH_BINDING_STATUS, GRAPH_CHANGE_ENTITY_TYPE, GRAPH_EVIDENCE_KIND, GRAPH_JOURNEY_STATUS, GRAPH_RELATION_KIND, GRAPH_TASK_MODE, idSchema, request, STRICT_OBJECT, STRICT_UPDATE_OBJECT, } from "./shared.js";
|
|
3
4
|
/**
|
|
4
5
|
* The operational graph behind the Atlas view: a business spec of how
|
|
5
6
|
* a company operates, in its own language. Four fixed levels — line →
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shiftClient } from "../../_shared/shiftCredentials.js";
|
|
2
|
-
export { cursorSchema, enumSchema, idSchema,
|
|
2
|
+
export { cursorSchema, enumSchema, idSchema, STRICT_OBJECT, STRICT_UPDATE_OBJECT, } from "../../_shared/shiftCloud.js";
|
|
3
3
|
export const { credential: shiftAtlasCredential, request } = shiftClient("shiftAtlas");
|
|
4
4
|
/** Base path of the operational graph service in the Shift cloud API. */
|
|
5
5
|
export const ATLAS_BASE = "/v1/services/operational-graph";
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { AuthError } from "runline";
|
|
1
|
+
import { AuthError, brokerFor, errorIdentifier, failureMessage, } from "runline";
|
|
2
2
|
import * as t from "typebox";
|
|
3
|
-
import { credentialBroker } from "../../_shared/credentialAdapter.js";
|
|
4
|
-
import { errorIdentifier, failureMessage } from "../../_shared/credentials.js";
|
|
5
3
|
import { SHIFT_API_URL, STRICT_OBJECT } from "../../_shared/shiftCloud.js";
|
|
6
4
|
import { shiftCredential, shiftPath } from "../../_shared/shiftCredentials.js";
|
|
7
5
|
import { BusinessWorldModelClient, BwmClientError, } from "./vendor/client.js";
|
|
@@ -20,7 +18,7 @@ function brokeredFetch(ctx) {
|
|
|
20
18
|
const url = new URL(input);
|
|
21
19
|
if (url.origin !== SHIFT_API_URL)
|
|
22
20
|
throw new AuthError("request_not_allowed");
|
|
23
|
-
return
|
|
21
|
+
return brokerFor(ctx, shiftBwmCredential).request({
|
|
24
22
|
target: "api",
|
|
25
23
|
path: `${shiftPath(url.pathname)}${url.search}`,
|
|
26
24
|
method: (init?.method ?? "GET"),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { CRM_ACCESS_ROLE, CRM_BASE, enumSchema, idSchema,
|
|
3
|
+
import { CRM_ACCESS_ROLE, CRM_BASE, enumSchema, idSchema, request, STRICT_OBJECT, } from "./shared.js";
|
|
3
4
|
export function registerAccessActions(rl) {
|
|
4
5
|
rl.registerAction("access.me", {
|
|
5
6
|
access: "read",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { CRM_BASE, createRecordFields, idSchema, paginationFields,
|
|
3
|
+
import { CRM_BASE, createRecordFields, idSchema, paginationFields, request, STRICT_OBJECT, STRICT_UPDATE_OBJECT, updateRecordFields, } from "./shared.js";
|
|
3
4
|
const accountListFields = {
|
|
4
5
|
search: t.Optional(t.String({ minLength: 1, pattern: "\\S", description: "Name search" })),
|
|
5
6
|
accountType: t.Optional(t.String({ minLength: 1, description: "Account type filter" })),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { CRM_BASE, idSchema,
|
|
3
|
+
import { CRM_BASE, idSchema, recordTypeSchema, request, STRICT_OBJECT, } from "./shared.js";
|
|
3
4
|
export function registerImportActions(rl) {
|
|
4
5
|
rl.registerAction("import.create", {
|
|
5
6
|
access: "write",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { CRM_BASE, CRM_PIPELINE_OUTCOME, createRecordFields, enumSchema, idSchema, nullableTimestamp, paginationFields,
|
|
3
|
+
import { CRM_BASE, CRM_PIPELINE_OUTCOME, createRecordFields, enumSchema, idSchema, nullableTimestamp, paginationFields, request, STRICT_OBJECT, STRICT_UPDATE_OBJECT, timestampSchema, updateRecordFields, } from "./shared.js";
|
|
3
4
|
const opportunityListFields = {
|
|
4
5
|
accountId: t.Optional(idSchema("Filter by account record ID")),
|
|
5
6
|
pipelineId: t.Optional(idSchema("Filter by pipeline ID")),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { assertTimeOrder, CRM_BASE, CRM_IDENTITY_KIND, createRecordFields, enumSchema, idSchema, paginationFields,
|
|
3
|
+
import { assertTimeOrder, CRM_BASE, CRM_IDENTITY_KIND, createRecordFields, enumSchema, idSchema, paginationFields, request, STRICT_OBJECT, STRICT_UPDATE_OBJECT, timestampSchema, updateRecordFields, } from "./shared.js";
|
|
3
4
|
const personListFields = {
|
|
4
5
|
search: t.Optional(t.String({ minLength: 1, pattern: "\\S", description: "Name search" })),
|
|
5
6
|
accountId: t.Optional(idSchema("Filter by affiliated account record ID")),
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { CRM_BASE, CRM_PROPERTY_DATA_TYPE, enumSchema, idSchema,
|
|
3
|
+
import { CRM_BASE, CRM_PROPERTY_DATA_TYPE, enumSchema, idSchema, recordTypeSchema, request, STRICT_OBJECT, } from "./shared.js";
|
|
3
4
|
export function registerRecordActions(rl) {
|
|
4
5
|
rl.registerAction("record.changeEvents", {
|
|
5
6
|
access: "read",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as t from "typebox";
|
|
2
2
|
import { cursorSchema, enumSchema, idSchema, timestampSchema, } from "../../_shared/shiftCloud.js";
|
|
3
|
-
export { enumSchema, idSchema,
|
|
3
|
+
export { enumSchema, idSchema, STRICT_OBJECT, STRICT_UPDATE_OBJECT, timestampSchema, } from "../../_shared/shiftCloud.js";
|
|
4
4
|
export { request } from "./credentials.js";
|
|
5
5
|
export const CRM_BASE = "/v1/crm";
|
|
6
6
|
export const CRM_ACCESS_ROLE = ["user", "admin"];
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { CRM_BASE, CRM_TASK_PRIORITY, CRM_TASK_STATUS, createRecordFields, enumSchema, idSchema, nullableTimestamp, paginationFields,
|
|
3
|
+
import { CRM_BASE, CRM_TASK_PRIORITY, CRM_TASK_STATUS, createRecordFields, enumSchema, idSchema, nullableTimestamp, paginationFields, request, STRICT_OBJECT, STRICT_UPDATE_OBJECT, timestampSchema, updateRecordFields, } from "./shared.js";
|
|
3
4
|
const taskListFields = {
|
|
4
5
|
linkedRecordId: t.Optional(idSchema("Filter by linked CRM record ID")),
|
|
5
6
|
status: t.Optional(enumSchema("Task status", CRM_TASK_STATUS)),
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { writeFile } from "node:fs/promises";
|
|
2
2
|
import { basename } from "node:path";
|
|
3
|
+
import { pathSegment } from "runline";
|
|
3
4
|
import * as t from "typebox";
|
|
4
|
-
import { enumSchema,
|
|
5
|
+
import { enumSchema, STRICT_OBJECT } from "../../_shared/shiftCloud.js";
|
|
5
6
|
import { GENERAL_MEDIA_TYPES, mediaTypeFromPath, putThroughGrant, SIGNED_UPLOAD_MAX_BYTES, statUploadFile, } from "../../_shared/shiftUpload.js";
|
|
6
7
|
import { request } from "./credentials.js";
|
|
7
8
|
const OBJECTS_BASE = "/v1/services/objects";
|
|
@@ -84,7 +85,7 @@ export function registerObjectActions(rl) {
|
|
|
84
85
|
metadata: fields.metadata,
|
|
85
86
|
}),
|
|
86
87
|
});
|
|
87
|
-
await putThroughGrant(created.upload, fields.path, contentType,
|
|
88
|
+
await putThroughGrant(created.upload, fields.path, contentType, "Object upload");
|
|
88
89
|
return request(ctx, `${OBJECTS_BASE}/objects/${pathSegment(created.object.id)}/complete`, { method: "POST" });
|
|
89
90
|
},
|
|
90
91
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { readFile } from "node:fs/promises";
|
|
2
1
|
import { basename, extname } from "node:path";
|
|
2
|
+
import { pathSegment } from "runline";
|
|
3
3
|
import * as t from "typebox";
|
|
4
|
-
import {
|
|
4
|
+
import { readLocalFile } from "../../_shared/localFile.js";
|
|
5
|
+
import { STRICT_OBJECT } from "../../_shared/shiftCloud.js";
|
|
5
6
|
import { putThroughGrant, SIGNED_UPLOAD_MAX_BYTES, statUploadFile, } from "../../_shared/shiftUpload.js";
|
|
6
7
|
import { request, shiftOcrCredential } from "./credentials.js";
|
|
7
8
|
/**
|
|
@@ -44,7 +45,12 @@ async function documentFromPath(ctx, path) {
|
|
|
44
45
|
const mediaType = (imageType ?? documentType);
|
|
45
46
|
const sizeBytes = await statUploadFile(path, SIGNED_UPLOAD_MAX_BYTES);
|
|
46
47
|
if (sizeBytes <= MAX_INLINE_BYTES) {
|
|
47
|
-
const
|
|
48
|
+
const bytes = await readLocalFile(path, {
|
|
49
|
+
subject: "File",
|
|
50
|
+
maxBytes: MAX_INLINE_BYTES,
|
|
51
|
+
oversize: "File grew past the inline limit while reading; retry",
|
|
52
|
+
});
|
|
53
|
+
const url = `data:${mediaType};base64,${bytes.toString("base64")}`;
|
|
48
54
|
return imageType
|
|
49
55
|
? { type: "image", url }
|
|
50
56
|
: { type: "document", url, name: basename(path) };
|
|
@@ -59,7 +65,7 @@ async function documentFromPath(ctx, path) {
|
|
|
59
65
|
filename: basename(path),
|
|
60
66
|
}),
|
|
61
67
|
});
|
|
62
|
-
await putThroughGrant(created.upload, path, mediaType
|
|
68
|
+
await putThroughGrant(created.upload, path, mediaType);
|
|
63
69
|
await request(ctx, `/v1/services/objects/objects/${pathSegment(created.object.id)}/complete`, { method: "POST" });
|
|
64
70
|
return { type: "object", objectId: created.object.id };
|
|
65
71
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { enumSchema, idSchema, PAGE_STATUS, PAGE_TYPE, PAGE_VISIBILITY, pageRenderUrl,
|
|
3
|
+
import { enumSchema, idSchema, PAGE_STATUS, PAGE_TYPE, PAGE_VISIBILITY, pageRenderUrl, request, STRICT_OBJECT, timestampSchema, } from "./shared.js";
|
|
3
4
|
const PageSlug = t.String({
|
|
4
5
|
minLength: 1,
|
|
5
6
|
maxLength: 120,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { pathSegment } from "runline";
|
|
2
|
+
import { baseUrl } from "../../_shared/shiftCloud.js";
|
|
2
3
|
import { shiftClient } from "../../_shared/shiftCredentials.js";
|
|
3
|
-
export { enumSchema, idSchema,
|
|
4
|
+
export { enumSchema, idSchema, STRICT_OBJECT, timestampSchema, } from "../../_shared/shiftCloud.js";
|
|
4
5
|
export const { credential: shiftPagesCredential, request } = shiftClient("shiftPages");
|
|
5
6
|
export const PAGE_STATUS = ["draft", "published", "archived"];
|
|
6
7
|
export const PAGE_TYPE = [
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { shiftClient } from "../../_shared/shiftCredentials.js";
|
|
2
|
-
export { enumSchema,
|
|
2
|
+
export { enumSchema, STRICT_OBJECT, } from "../../_shared/shiftCloud.js";
|
|
3
3
|
/** The longest server-held wait /await accepts: waitSeconds is capped at 120. */
|
|
4
4
|
export const MAX_AWAIT_WAIT_MS = 120_000;
|
|
5
5
|
/**
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
3
|
import { AUDIO_VIDEO_MEDIA_TYPES, putThroughGrant, requireMediaType, SIGNED_UPLOAD_MAX_BYTES, statUploadFile, } from "../../_shared/shiftUpload.js";
|
|
3
|
-
import { enumSchema,
|
|
4
|
+
import { enumSchema, request, STRICT_OBJECT, TRANSCRIPT_FORMAT, TRANSCRIPTION_LANGUAGE, } from "./shared.js";
|
|
4
5
|
/** Transcript previews returned into the sandbox are capped, not truncated silently. */
|
|
5
6
|
const MAX_TRANSCRIPT_BYTES = 2 * 1024 * 1024;
|
|
6
7
|
const Id = t.String({ minLength: 1, pattern: "\\S" });
|
|
@@ -48,7 +49,7 @@ export function registerTranscriptionActions(rl) {
|
|
|
48
49
|
sizeBytes,
|
|
49
50
|
}),
|
|
50
51
|
});
|
|
51
|
-
await putThroughGrant(created.upload, fields.path, contentType,
|
|
52
|
+
await putThroughGrant(created.upload, fields.path, contentType, "Media upload");
|
|
52
53
|
await request(ctx, `/v1/services/transcription/assets/${pathSegment(created.asset.id)}/complete`, { method: "POST" });
|
|
53
54
|
const job = await request(ctx, "/v1/services/transcription/jobs", {
|
|
54
55
|
method: "POST",
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { cursorSchema, enumSchema, ISSUE_PRIORITY, ISSUE_STATUS, ISSUE_VIEW_GROUP, ISSUE_VIEW_LAYOUT, ISSUE_VIEW_SORT, ISSUE_VIEW_VISIBILITY, idSchema,
|
|
3
|
+
import { cursorSchema, enumSchema, ISSUE_PRIORITY, ISSUE_STATUS, ISSUE_VIEW_GROUP, ISSUE_VIEW_LAYOUT, ISSUE_VIEW_SORT, ISSUE_VIEW_VISIBILITY, idSchema, request, STRICT_OBJECT, STRICT_UPDATE_OBJECT, timestampSchema, } from "./shared.js";
|
|
3
4
|
const viewFields = {
|
|
4
5
|
name: t.String({
|
|
5
6
|
minLength: 1,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { cursorSchema, enumSchema, ISSUE_PRIORITY, ISSUE_SOURCE, ISSUE_STATUS, idSchema,
|
|
3
|
+
import { cursorSchema, enumSchema, ISSUE_PRIORITY, ISSUE_SOURCE, ISSUE_STATUS, idSchema, request, STRICT_OBJECT, STRICT_UPDATE_OBJECT, timestampSchema, } from "./shared.js";
|
|
3
4
|
const issueFields = {
|
|
4
5
|
title: t.String({
|
|
5
6
|
minLength: 1,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import { pathSegment } from "runline";
|
|
1
2
|
import * as t from "typebox";
|
|
2
|
-
import { cursorSchema, enumSchema, idSchema, PROJECT_STATUS,
|
|
3
|
+
import { cursorSchema, enumSchema, idSchema, PROJECT_STATUS, request, STRICT_OBJECT, STRICT_UPDATE_OBJECT, timestampSchema, } from "./shared.js";
|
|
3
4
|
const projectListFields = {
|
|
4
5
|
status: t.Optional(enumSchema("Project status", PROJECT_STATUS)),
|
|
5
6
|
leadUserId: t.Optional(idSchema("Lead user ID")),
|