@pikku/addon-onfleet 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts +67 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js +78 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-addon-types.gen.ts +106 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts +2 -0
- package/dist/.pikku/addon/pikku-package.gen.d.ts.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.js +10 -0
- package/dist/.pikku/addon/pikku-package.gen.js.map +1 -0
- package/dist/.pikku/addon/pikku-package.gen.ts +11 -0
- package/dist/.pikku/agent/pikku-agent-map.gen.d.ts +4 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts +47 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.d.ts.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js +18 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.js.map +1 -0
- package/dist/.pikku/agent/pikku-agent-types.gen.ts +82 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts +112 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.d.ts.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js +60 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.js.map +1 -0
- package/dist/.pikku/channel/pikku-channel-types.gen.ts +177 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts +7 -0
- package/dist/.pikku/console/pikku-node-types.gen.d.ts.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.js +2 -0
- package/dist/.pikku/console/pikku-node-types.gen.js.map +1 -0
- package/dist/.pikku/console/pikku-node-types.gen.ts +8 -0
- package/dist/.pikku/credentials/pikku-credentials-meta.gen.json +10 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts +15 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.d.ts.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js +13 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.js.map +1 -0
- package/dist/.pikku/credentials/pikku-credentials.gen.ts +23 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts +490 -0
- package/dist/.pikku/function/pikku-function-types.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.js +334 -0
- package/dist/.pikku/function/pikku-function-types.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-function-types.gen.ts +754 -0
- package/dist/.pikku/function/pikku-functions-meta-verbose.gen.json +1063 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js +7 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.json +693 -0
- package/dist/.pikku/function/pikku-functions-meta.gen.ts +7 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts +2 -0
- package/dist/.pikku/function/pikku-functions.gen.d.ts.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.js +80 -0
- package/dist/.pikku/function/pikku-functions.gen.js.map +1 -0
- package/dist/.pikku/function/pikku-functions.gen.ts +80 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts +120 -0
- package/dist/.pikku/http/pikku-http-types.gen.d.ts.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.js +72 -0
- package/dist/.pikku/http/pikku-http-types.gen.js.map +1 -0
- package/dist/.pikku/http/pikku-http-types.gen.ts +147 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts +131 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.d.ts.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js +38 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.js.map +1 -0
- package/dist/.pikku/mcp/pikku-mcp-types.gen.ts +183 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.js +9 -0
- package/dist/.pikku/pikku-bootstrap.gen.js.map +1 -0
- package/dist/.pikku/pikku-bootstrap.gen.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts +8 -0
- package/dist/.pikku/pikku-meta-service.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.js +10 -0
- package/dist/.pikku/pikku-meta-service.gen.js.map +1 -0
- package/dist/.pikku/pikku-meta-service.gen.ts +10 -0
- package/dist/.pikku/pikku-services.gen.d.ts +35 -0
- package/dist/.pikku/pikku-services.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-services.gen.js +30 -0
- package/dist/.pikku/pikku-services.gen.js.map +1 -0
- package/dist/.pikku/pikku-services.gen.ts +42 -0
- package/dist/.pikku/pikku-types.gen.d.ts +12 -0
- package/dist/.pikku/pikku-types.gen.d.ts.map +1 -0
- package/dist/.pikku/pikku-types.gen.js +17 -0
- package/dist/.pikku/pikku-types.gen.js.map +1 -0
- package/dist/.pikku/pikku-types.gen.ts +21 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts +24 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.d.ts.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js +17 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.js.map +1 -0
- package/dist/.pikku/queue/pikku-queue-types.gen.ts +27 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.gen.d.ts +316 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-map.internal.gen.d.ts +353 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts +2 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.d.ts.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js +7 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.js.map +1 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.json +39 -0
- package/dist/.pikku/rpc/pikku-rpc-wirings-meta.internal.gen.ts +6 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts +22 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.d.ts.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js +17 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.js.map +1 -0
- package/dist/.pikku/scheduler/pikku-scheduler-types.gen.ts +25 -0
- package/dist/.pikku/schemas/register.gen.d.ts +2 -0
- package/dist/.pikku/schemas/register.gen.d.ts.map +1 -0
- package/dist/.pikku/schemas/register.gen.js +145 -0
- package/dist/.pikku/schemas/register.gen.js.map +1 -0
- package/dist/.pikku/schemas/register.gen.ts +283 -0
- package/dist/.pikku/schemas/schemas/AdminCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AdminCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AdminDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AdminDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AdminGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AdminUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/AdminUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContainerAddTaskInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContainerAddTaskOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContainerGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContainerGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContainerUpdateTaskInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/ContainerUpdateTaskOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/CredentialSchema_onfleet.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DestinationCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DestinationCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DestinationGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/DestinationGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/HubCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/HubCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/HubGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/HubUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/HubUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrganizationGetDelegateeInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrganizationGetDelegateeOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/OrganizationGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RecipientCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RecipientCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RecipientGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RecipientGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RecipientUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/RecipientUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskCloneInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskCloneOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskCompleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskCompleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TaskUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamAutoDispatchInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamAutoDispatchOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamGetTimeEstimatesInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamGetTimeEstimatesOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/TeamUpdateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/VariableSchema_ONFLEET_BASE_URL.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerCreateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerCreateOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerDeleteInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerDeleteOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerGetAllOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerGetInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerGetOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerGetScheduleInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerGetScheduleOutput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerUpdateInput.schema.json +1 -0
- package/dist/.pikku/schemas/schemas/WorkerUpdateOutput.schema.json +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts +6 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js +5 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secret-types.gen.ts +5 -0
- package/dist/.pikku/secrets/pikku-secrets-meta.gen.json +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts +12 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.d.ts.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js +11 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.js.map +1 -0
- package/dist/.pikku/secrets/pikku-secrets.gen.ts +21 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts +114 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.d.ts.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js +34 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.js.map +1 -0
- package/dist/.pikku/trigger/pikku-trigger-types.gen.ts +160 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts +6 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js +5 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variable-types.gen.ts +5 -0
- package/dist/.pikku/variables/pikku-variables-meta.gen.json +10 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts +15 -0
- package/dist/.pikku/variables/pikku-variables.gen.d.ts.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.js +13 -0
- package/dist/.pikku/variables/pikku-variables.gen.js.map +1 -0
- package/dist/.pikku/variables/pikku-variables.gen.ts +23 -0
- package/dist/.pikku/workflow/pikku-workflow-map.gen.d.ts +38 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts +90 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js +18 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-types.gen.ts +167 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts +2 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js +7 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings-meta.gen.ts +9 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.d.ts.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js +5 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.js.map +1 -0
- package/dist/.pikku/workflow/pikku-workflow-wirings.gen.ts +3 -0
- package/dist/src/functions/adminCreate.function.d.ts +17 -0
- package/dist/src/functions/adminCreate.function.d.ts.map +1 -0
- package/dist/src/functions/adminCreate.function.js +16 -0
- package/dist/src/functions/adminCreate.function.js.map +1 -0
- package/dist/src/functions/adminDelete.function.d.ts +13 -0
- package/dist/src/functions/adminDelete.function.d.ts.map +1 -0
- package/dist/src/functions/adminDelete.function.js +15 -0
- package/dist/src/functions/adminDelete.function.js.map +1 -0
- package/dist/src/functions/adminGetAll.function.d.ts +4 -0
- package/dist/src/functions/adminGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/adminGetAll.function.js +11 -0
- package/dist/src/functions/adminGetAll.function.js.map +1 -0
- package/dist/src/functions/adminUpdate.function.d.ts +17 -0
- package/dist/src/functions/adminUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/adminUpdate.function.js +16 -0
- package/dist/src/functions/adminUpdate.function.js.map +1 -0
- package/dist/src/functions/containerAddTask.function.d.ts +17 -0
- package/dist/src/functions/containerAddTask.function.d.ts.map +1 -0
- package/dist/src/functions/containerAddTask.function.js +16 -0
- package/dist/src/functions/containerAddTask.function.js.map +1 -0
- package/dist/src/functions/containerGet.function.d.ts +13 -0
- package/dist/src/functions/containerGet.function.d.ts.map +1 -0
- package/dist/src/functions/containerGet.function.js +15 -0
- package/dist/src/functions/containerGet.function.js.map +1 -0
- package/dist/src/functions/containerUpdateTask.function.d.ts +17 -0
- package/dist/src/functions/containerUpdateTask.function.d.ts.map +1 -0
- package/dist/src/functions/containerUpdateTask.function.js +16 -0
- package/dist/src/functions/containerUpdateTask.function.js.map +1 -0
- package/dist/src/functions/destinationCreate.function.d.ts +13 -0
- package/dist/src/functions/destinationCreate.function.d.ts.map +1 -0
- package/dist/src/functions/destinationCreate.function.js +15 -0
- package/dist/src/functions/destinationCreate.function.js.map +1 -0
- package/dist/src/functions/destinationGet.function.d.ts +13 -0
- package/dist/src/functions/destinationGet.function.d.ts.map +1 -0
- package/dist/src/functions/destinationGet.function.js +15 -0
- package/dist/src/functions/destinationGet.function.js.map +1 -0
- package/dist/src/functions/hubCreate.function.d.ts +13 -0
- package/dist/src/functions/hubCreate.function.d.ts.map +1 -0
- package/dist/src/functions/hubCreate.function.js +15 -0
- package/dist/src/functions/hubCreate.function.js.map +1 -0
- package/dist/src/functions/hubGetAll.function.d.ts +4 -0
- package/dist/src/functions/hubGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/hubGetAll.function.js +11 -0
- package/dist/src/functions/hubGetAll.function.js.map +1 -0
- package/dist/src/functions/hubUpdate.function.d.ts +17 -0
- package/dist/src/functions/hubUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/hubUpdate.function.js +16 -0
- package/dist/src/functions/hubUpdate.function.js.map +1 -0
- package/dist/src/functions/organizationGet.function.d.ts +4 -0
- package/dist/src/functions/organizationGet.function.d.ts.map +1 -0
- package/dist/src/functions/organizationGet.function.js +11 -0
- package/dist/src/functions/organizationGet.function.js.map +1 -0
- package/dist/src/functions/organizationGetDelegatee.function.d.ts +13 -0
- package/dist/src/functions/organizationGetDelegatee.function.d.ts.map +1 -0
- package/dist/src/functions/organizationGetDelegatee.function.js +15 -0
- package/dist/src/functions/organizationGetDelegatee.function.js.map +1 -0
- package/dist/src/functions/recipientCreate.function.d.ts +17 -0
- package/dist/src/functions/recipientCreate.function.d.ts.map +1 -0
- package/dist/src/functions/recipientCreate.function.js +16 -0
- package/dist/src/functions/recipientCreate.function.js.map +1 -0
- package/dist/src/functions/recipientGet.function.d.ts +13 -0
- package/dist/src/functions/recipientGet.function.d.ts.map +1 -0
- package/dist/src/functions/recipientGet.function.js +15 -0
- package/dist/src/functions/recipientGet.function.js.map +1 -0
- package/dist/src/functions/recipientUpdate.function.d.ts +17 -0
- package/dist/src/functions/recipientUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/recipientUpdate.function.js +16 -0
- package/dist/src/functions/recipientUpdate.function.js.map +1 -0
- package/dist/src/functions/taskClone.function.d.ts +13 -0
- package/dist/src/functions/taskClone.function.d.ts.map +1 -0
- package/dist/src/functions/taskClone.function.js +15 -0
- package/dist/src/functions/taskClone.function.js.map +1 -0
- package/dist/src/functions/taskComplete.function.d.ts +17 -0
- package/dist/src/functions/taskComplete.function.d.ts.map +1 -0
- package/dist/src/functions/taskComplete.function.js +16 -0
- package/dist/src/functions/taskComplete.function.js.map +1 -0
- package/dist/src/functions/taskCreate.function.d.ts +17 -0
- package/dist/src/functions/taskCreate.function.d.ts.map +1 -0
- package/dist/src/functions/taskCreate.function.js +16 -0
- package/dist/src/functions/taskCreate.function.js.map +1 -0
- package/dist/src/functions/taskDelete.function.d.ts +13 -0
- package/dist/src/functions/taskDelete.function.d.ts.map +1 -0
- package/dist/src/functions/taskDelete.function.js +15 -0
- package/dist/src/functions/taskDelete.function.js.map +1 -0
- package/dist/src/functions/taskGet.function.d.ts +13 -0
- package/dist/src/functions/taskGet.function.d.ts.map +1 -0
- package/dist/src/functions/taskGet.function.js +15 -0
- package/dist/src/functions/taskGet.function.js.map +1 -0
- package/dist/src/functions/taskGetAll.function.d.ts +4 -0
- package/dist/src/functions/taskGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/taskGetAll.function.js +11 -0
- package/dist/src/functions/taskGetAll.function.js.map +1 -0
- package/dist/src/functions/taskUpdate.function.d.ts +17 -0
- package/dist/src/functions/taskUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/taskUpdate.function.js +16 -0
- package/dist/src/functions/taskUpdate.function.js.map +1 -0
- package/dist/src/functions/teamAutoDispatch.function.d.ts +13 -0
- package/dist/src/functions/teamAutoDispatch.function.d.ts.map +1 -0
- package/dist/src/functions/teamAutoDispatch.function.js +15 -0
- package/dist/src/functions/teamAutoDispatch.function.js.map +1 -0
- package/dist/src/functions/teamCreate.function.d.ts +13 -0
- package/dist/src/functions/teamCreate.function.d.ts.map +1 -0
- package/dist/src/functions/teamCreate.function.js +15 -0
- package/dist/src/functions/teamCreate.function.js.map +1 -0
- package/dist/src/functions/teamDelete.function.d.ts +13 -0
- package/dist/src/functions/teamDelete.function.d.ts.map +1 -0
- package/dist/src/functions/teamDelete.function.js +15 -0
- package/dist/src/functions/teamDelete.function.js.map +1 -0
- package/dist/src/functions/teamGet.function.d.ts +13 -0
- package/dist/src/functions/teamGet.function.d.ts.map +1 -0
- package/dist/src/functions/teamGet.function.js +15 -0
- package/dist/src/functions/teamGet.function.js.map +1 -0
- package/dist/src/functions/teamGetAll.function.d.ts +4 -0
- package/dist/src/functions/teamGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/teamGetAll.function.js +11 -0
- package/dist/src/functions/teamGetAll.function.js.map +1 -0
- package/dist/src/functions/teamGetTimeEstimates.function.d.ts +13 -0
- package/dist/src/functions/teamGetTimeEstimates.function.d.ts.map +1 -0
- package/dist/src/functions/teamGetTimeEstimates.function.js +15 -0
- package/dist/src/functions/teamGetTimeEstimates.function.js.map +1 -0
- package/dist/src/functions/teamUpdate.function.d.ts +17 -0
- package/dist/src/functions/teamUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/teamUpdate.function.js +16 -0
- package/dist/src/functions/teamUpdate.function.js.map +1 -0
- package/dist/src/functions/workerCreate.function.d.ts +17 -0
- package/dist/src/functions/workerCreate.function.d.ts.map +1 -0
- package/dist/src/functions/workerCreate.function.js +16 -0
- package/dist/src/functions/workerCreate.function.js.map +1 -0
- package/dist/src/functions/workerDelete.function.d.ts +13 -0
- package/dist/src/functions/workerDelete.function.d.ts.map +1 -0
- package/dist/src/functions/workerDelete.function.js +15 -0
- package/dist/src/functions/workerDelete.function.js.map +1 -0
- package/dist/src/functions/workerGet.function.d.ts +13 -0
- package/dist/src/functions/workerGet.function.d.ts.map +1 -0
- package/dist/src/functions/workerGet.function.js +15 -0
- package/dist/src/functions/workerGet.function.js.map +1 -0
- package/dist/src/functions/workerGetAll.function.d.ts +4 -0
- package/dist/src/functions/workerGetAll.function.d.ts.map +1 -0
- package/dist/src/functions/workerGetAll.function.js +11 -0
- package/dist/src/functions/workerGetAll.function.js.map +1 -0
- package/dist/src/functions/workerGetSchedule.function.d.ts +13 -0
- package/dist/src/functions/workerGetSchedule.function.d.ts.map +1 -0
- package/dist/src/functions/workerGetSchedule.function.js +15 -0
- package/dist/src/functions/workerGetSchedule.function.js.map +1 -0
- package/dist/src/functions/workerUpdate.function.d.ts +17 -0
- package/dist/src/functions/workerUpdate.function.d.ts.map +1 -0
- package/dist/src/functions/workerUpdate.function.js +16 -0
- package/dist/src/functions/workerUpdate.function.js.map +1 -0
- package/dist/src/index.d.ts +38 -0
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +38 -0
- package/dist/src/index.js.map +1 -0
- package/dist/src/onfleet-api.service.d.ts +10 -0
- package/dist/src/onfleet-api.service.d.ts.map +1 -0
- package/dist/src/onfleet-api.service.js +308 -0
- package/dist/src/onfleet-api.service.js.map +1 -0
- package/dist/src/onfleet.credential.d.ts +5 -0
- package/dist/src/onfleet.credential.d.ts.map +1 -0
- package/dist/src/onfleet.credential.js +13 -0
- package/dist/src/onfleet.credential.js.map +1 -0
- package/dist/src/onfleet.types.d.ts +7 -0
- package/dist/src/onfleet.types.d.ts.map +1 -0
- package/dist/src/onfleet.types.js +8 -0
- package/dist/src/onfleet.types.js.map +1 -0
- package/dist/src/onfleet.variable.d.ts +5 -0
- package/dist/src/onfleet.variable.d.ts.map +1 -0
- package/dist/src/onfleet.variable.js +11 -0
- package/dist/src/onfleet.variable.js.map +1 -0
- package/dist/src/services.d.ts +2 -0
- package/dist/src/services.d.ts.map +1 -0
- package/dist/src/services.js +14 -0
- package/dist/src/services.js.map +1 -0
- package/package.json +39 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
import { wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue';
|
|
8
|
+
/**
|
|
9
|
+
* Registers a queue worker with the Pikku framework.
|
|
10
|
+
* Workers process background jobs from queues.
|
|
11
|
+
*
|
|
12
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
13
|
+
*/
|
|
14
|
+
export const wireQueueWorker = (queueWorker) => {
|
|
15
|
+
wireQueueWorkerCore(queueWorker);
|
|
16
|
+
};
|
|
17
|
+
//# sourceMappingURL=pikku-queue-types.gen.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pikku-queue-types.gen.js","sourceRoot":"","sources":["../../../.pikku/queue/pikku-queue-types.gen.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH;;GAEG;AAEH,OAAO,EAAmB,eAAe,IAAI,mBAAmB,EAAE,MAAM,mBAAmB,CAAA;AAW3F;;;;;GAKG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,WAAkC,EAAE,EAAE;IACpE,mBAAmB,CAAC,WAAkB,CAAC,CAAA;AACzC,CAAC,CAAA"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* Queue-specific type definitions for tree-shaking optimization
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
import { CoreQueueWorker, wireQueueWorker as wireQueueWorkerCore } from '@pikku/core/queue'
|
|
9
|
+
import type { PikkuFunctionConfig } from '../function/pikku-function-types.gen.js'
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Type definition for queue workers that process background jobs.
|
|
13
|
+
*
|
|
14
|
+
* @template In - Input type for the queue job
|
|
15
|
+
* @template Out - Output type for the queue job
|
|
16
|
+
*/
|
|
17
|
+
type QueueWiring<In, Out> = CoreQueueWorker<PikkuFunctionConfig<In, Out, 'session' | 'rpc'>>
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Registers a queue worker with the Pikku framework.
|
|
21
|
+
* Workers process background jobs from queues.
|
|
22
|
+
*
|
|
23
|
+
* @param queueWorker - Queue worker definition with job handler
|
|
24
|
+
*/
|
|
25
|
+
export const wireQueueWorker = (queueWorker: QueueWiring<any, any>) => {
|
|
26
|
+
wireQueueWorkerCore(queueWorker as any)
|
|
27
|
+
}
|
|
@@ -0,0 +1,316 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
export type AdminCreateInput = {
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
email?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export type AdminCreateOutput = {
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export type AdminDeleteInput = {
|
|
20
|
+
adminId: string;
|
|
21
|
+
}
|
|
22
|
+
export type AdminDeleteOutput = {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
export type AdminGetAllOutput = {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export type AdminUpdateInput = {
|
|
29
|
+
adminId: string;
|
|
30
|
+
name?: string | undefined;
|
|
31
|
+
}
|
|
32
|
+
export type AdminUpdateOutput = {
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export type ContainerAddTaskInput = {
|
|
36
|
+
containerId: string;
|
|
37
|
+
tasks?: string[] | undefined;
|
|
38
|
+
}
|
|
39
|
+
export type ContainerAddTaskOutput = {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
export type ContainerGetInput = {
|
|
43
|
+
containerId: string;
|
|
44
|
+
}
|
|
45
|
+
export type ContainerGetOutput = {
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
}
|
|
48
|
+
export type ContainerUpdateTaskInput = {
|
|
49
|
+
containerId: string;
|
|
50
|
+
tasks?: string[] | undefined;
|
|
51
|
+
}
|
|
52
|
+
export type ContainerUpdateTaskOutput = {
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
}
|
|
55
|
+
export type CredentialSchema_onfleet = {
|
|
56
|
+
/** Onfleet API key */
|
|
57
|
+
apiKey: string;
|
|
58
|
+
}
|
|
59
|
+
export type DestinationCreateInput = {
|
|
60
|
+
address?: string | undefined;
|
|
61
|
+
}
|
|
62
|
+
export type DestinationCreateOutput = {
|
|
63
|
+
[key: string]: unknown;
|
|
64
|
+
}
|
|
65
|
+
export type DestinationGetInput = {
|
|
66
|
+
destinationId: string;
|
|
67
|
+
}
|
|
68
|
+
export type DestinationGetOutput = {
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
}
|
|
71
|
+
export type HubCreateInput = {
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
}
|
|
74
|
+
export type HubCreateOutput = {
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
}
|
|
77
|
+
export type HubGetAllOutput = {
|
|
78
|
+
[key: string]: unknown;
|
|
79
|
+
}
|
|
80
|
+
export type HubUpdateInput = {
|
|
81
|
+
hubId: string;
|
|
82
|
+
name?: string | undefined;
|
|
83
|
+
}
|
|
84
|
+
export type HubUpdateOutput = {
|
|
85
|
+
[key: string]: unknown;
|
|
86
|
+
}
|
|
87
|
+
export type OrganizationGetDelegateeInput = {
|
|
88
|
+
organizationId: string;
|
|
89
|
+
}
|
|
90
|
+
export type OrganizationGetDelegateeOutput = {
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
}
|
|
93
|
+
export type OrganizationGetOutput = {
|
|
94
|
+
[key: string]: unknown;
|
|
95
|
+
}
|
|
96
|
+
export type RecipientCreateInput = {
|
|
97
|
+
name?: string | undefined;
|
|
98
|
+
phone?: string | undefined;
|
|
99
|
+
}
|
|
100
|
+
export type RecipientCreateOutput = {
|
|
101
|
+
[key: string]: unknown;
|
|
102
|
+
}
|
|
103
|
+
export type RecipientGetInput = {
|
|
104
|
+
recipientId: string;
|
|
105
|
+
}
|
|
106
|
+
export type RecipientGetOutput = {
|
|
107
|
+
[key: string]: unknown;
|
|
108
|
+
}
|
|
109
|
+
export type RecipientUpdateInput = {
|
|
110
|
+
recipientId: string;
|
|
111
|
+
name?: string | undefined;
|
|
112
|
+
}
|
|
113
|
+
export type RecipientUpdateOutput = {
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
}
|
|
116
|
+
export type TaskCloneInput = {
|
|
117
|
+
taskId: string;
|
|
118
|
+
}
|
|
119
|
+
export type TaskCloneOutput = {
|
|
120
|
+
[key: string]: unknown;
|
|
121
|
+
}
|
|
122
|
+
export type TaskCompleteInput = {
|
|
123
|
+
taskId: string;
|
|
124
|
+
success?: boolean | undefined;
|
|
125
|
+
}
|
|
126
|
+
export type TaskCompleteOutput = {
|
|
127
|
+
[key: string]: unknown;
|
|
128
|
+
}
|
|
129
|
+
export type TaskCreateInput = {
|
|
130
|
+
destination?: string | undefined;
|
|
131
|
+
recipients?: string[] | undefined;
|
|
132
|
+
}
|
|
133
|
+
export type TaskCreateOutput = {
|
|
134
|
+
[key: string]: unknown;
|
|
135
|
+
}
|
|
136
|
+
export type TaskDeleteInput = {
|
|
137
|
+
taskId: string;
|
|
138
|
+
}
|
|
139
|
+
export type TaskDeleteOutput = {
|
|
140
|
+
[key: string]: unknown;
|
|
141
|
+
}
|
|
142
|
+
export type TaskGetAllOutput = {
|
|
143
|
+
[key: string]: unknown;
|
|
144
|
+
}
|
|
145
|
+
export type TaskGetInput = {
|
|
146
|
+
taskId: string;
|
|
147
|
+
}
|
|
148
|
+
export type TaskGetOutput = {
|
|
149
|
+
[key: string]: unknown;
|
|
150
|
+
}
|
|
151
|
+
export type TaskUpdateInput = {
|
|
152
|
+
taskId: string;
|
|
153
|
+
notes?: string | undefined;
|
|
154
|
+
}
|
|
155
|
+
export type TaskUpdateOutput = {
|
|
156
|
+
[key: string]: unknown;
|
|
157
|
+
}
|
|
158
|
+
export type TeamAutoDispatchInput = {
|
|
159
|
+
teamId: string;
|
|
160
|
+
}
|
|
161
|
+
export type TeamAutoDispatchOutput = {
|
|
162
|
+
[key: string]: unknown;
|
|
163
|
+
}
|
|
164
|
+
export type TeamCreateInput = {
|
|
165
|
+
name?: string | undefined;
|
|
166
|
+
}
|
|
167
|
+
export type TeamCreateOutput = {
|
|
168
|
+
[key: string]: unknown;
|
|
169
|
+
}
|
|
170
|
+
export type TeamDeleteInput = {
|
|
171
|
+
teamId: string;
|
|
172
|
+
}
|
|
173
|
+
export type TeamDeleteOutput = {
|
|
174
|
+
[key: string]: unknown;
|
|
175
|
+
}
|
|
176
|
+
export type TeamGetAllOutput = {
|
|
177
|
+
[key: string]: unknown;
|
|
178
|
+
}
|
|
179
|
+
export type TeamGetInput = {
|
|
180
|
+
teamId: string;
|
|
181
|
+
}
|
|
182
|
+
export type TeamGetOutput = {
|
|
183
|
+
[key: string]: unknown;
|
|
184
|
+
}
|
|
185
|
+
export type TeamGetTimeEstimatesInput = {
|
|
186
|
+
teamId: string;
|
|
187
|
+
}
|
|
188
|
+
export type TeamGetTimeEstimatesOutput = {
|
|
189
|
+
[key: string]: unknown;
|
|
190
|
+
}
|
|
191
|
+
export type TeamUpdateInput = {
|
|
192
|
+
teamId: string;
|
|
193
|
+
name?: string | undefined;
|
|
194
|
+
}
|
|
195
|
+
export type TeamUpdateOutput = {
|
|
196
|
+
[key: string]: unknown;
|
|
197
|
+
}
|
|
198
|
+
export type VariableSchema_ONFLEET_BASE_URL = "https://onfleet.com/api/v2"
|
|
199
|
+
export type WorkerCreateInput = {
|
|
200
|
+
name?: string | undefined;
|
|
201
|
+
phone?: string | undefined;
|
|
202
|
+
}
|
|
203
|
+
export type WorkerCreateOutput = {
|
|
204
|
+
[key: string]: unknown;
|
|
205
|
+
}
|
|
206
|
+
export type WorkerDeleteInput = {
|
|
207
|
+
workerId: string;
|
|
208
|
+
}
|
|
209
|
+
export type WorkerDeleteOutput = {
|
|
210
|
+
[key: string]: unknown;
|
|
211
|
+
}
|
|
212
|
+
export type WorkerGetAllOutput = {
|
|
213
|
+
[key: string]: unknown;
|
|
214
|
+
}
|
|
215
|
+
export type WorkerGetInput = {
|
|
216
|
+
workerId: string;
|
|
217
|
+
}
|
|
218
|
+
export type WorkerGetOutput = {
|
|
219
|
+
[key: string]: unknown;
|
|
220
|
+
}
|
|
221
|
+
export type WorkerGetScheduleInput = {
|
|
222
|
+
workerId: string;
|
|
223
|
+
}
|
|
224
|
+
export type WorkerGetScheduleOutput = {
|
|
225
|
+
[key: string]: unknown;
|
|
226
|
+
}
|
|
227
|
+
export type WorkerUpdateInput = {
|
|
228
|
+
workerId: string;
|
|
229
|
+
name?: string | undefined;
|
|
230
|
+
}
|
|
231
|
+
export type WorkerUpdateOutput = {
|
|
232
|
+
[key: string]: unknown;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface RPCHandler<I, O> {
|
|
236
|
+
input: I;
|
|
237
|
+
output: O;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type RPCMap = {
|
|
241
|
+
};
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
|
|
245
|
+
// No addon packages, use RPCMap directly
|
|
246
|
+
export type FlattenedRPCMap = RPCMap
|
|
247
|
+
|
|
248
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
249
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
250
|
+
? false
|
|
251
|
+
: [T] extends [void | null | undefined]
|
|
252
|
+
? true
|
|
253
|
+
: false
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
257
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
258
|
+
? [name: Name]
|
|
259
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
260
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
261
|
+
|
|
262
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
263
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
264
|
+
? [name: Name]
|
|
265
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
266
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
267
|
+
|
|
268
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
269
|
+
|
|
270
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
type FlattenedAgentMap = AgentMap
|
|
274
|
+
|
|
275
|
+
|
|
276
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
277
|
+
|
|
278
|
+
interface AIAgentInput {
|
|
279
|
+
message: string
|
|
280
|
+
threadId: string
|
|
281
|
+
resourceId: string
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
285
|
+
name: Name,
|
|
286
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
287
|
+
options?: { startNode?: string }
|
|
288
|
+
) => Promise<{ runId: string }>
|
|
289
|
+
|
|
290
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
291
|
+
name: Name,
|
|
292
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
293
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
294
|
+
|
|
295
|
+
export type TypedWorkflowStatus = (
|
|
296
|
+
workflowName: string,
|
|
297
|
+
runId: string
|
|
298
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
299
|
+
|
|
300
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
301
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
302
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
303
|
+
name: Name,
|
|
304
|
+
input: AIAgentInput
|
|
305
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
306
|
+
|
|
307
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
308
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
309
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
310
|
+
name: Name,
|
|
311
|
+
input: AIAgentInput,
|
|
312
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
313
|
+
) => Promise<void>
|
|
314
|
+
|
|
315
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
316
|
+
|
|
@@ -0,0 +1,353 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file was generated by @pikku/cli@0.12.54
|
|
3
|
+
*/
|
|
4
|
+
/**
|
|
5
|
+
* This provides the structure needed for typescript to be aware of RPCs and their return types
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
export type AdminCreateInput = {
|
|
13
|
+
name?: string | undefined;
|
|
14
|
+
email?: string | undefined;
|
|
15
|
+
}
|
|
16
|
+
export type AdminCreateOutput = {
|
|
17
|
+
[key: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export type AdminDeleteInput = {
|
|
20
|
+
adminId: string;
|
|
21
|
+
}
|
|
22
|
+
export type AdminDeleteOutput = {
|
|
23
|
+
[key: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
export type AdminGetAllOutput = {
|
|
26
|
+
[key: string]: unknown;
|
|
27
|
+
}
|
|
28
|
+
export type AdminUpdateInput = {
|
|
29
|
+
adminId: string;
|
|
30
|
+
name?: string | undefined;
|
|
31
|
+
}
|
|
32
|
+
export type AdminUpdateOutput = {
|
|
33
|
+
[key: string]: unknown;
|
|
34
|
+
}
|
|
35
|
+
export type ContainerAddTaskInput = {
|
|
36
|
+
containerId: string;
|
|
37
|
+
tasks?: string[] | undefined;
|
|
38
|
+
}
|
|
39
|
+
export type ContainerAddTaskOutput = {
|
|
40
|
+
[key: string]: unknown;
|
|
41
|
+
}
|
|
42
|
+
export type ContainerGetInput = {
|
|
43
|
+
containerId: string;
|
|
44
|
+
}
|
|
45
|
+
export type ContainerGetOutput = {
|
|
46
|
+
[key: string]: unknown;
|
|
47
|
+
}
|
|
48
|
+
export type ContainerUpdateTaskInput = {
|
|
49
|
+
containerId: string;
|
|
50
|
+
tasks?: string[] | undefined;
|
|
51
|
+
}
|
|
52
|
+
export type ContainerUpdateTaskOutput = {
|
|
53
|
+
[key: string]: unknown;
|
|
54
|
+
}
|
|
55
|
+
export type CredentialSchema_onfleet = {
|
|
56
|
+
/** Onfleet API key */
|
|
57
|
+
apiKey: string;
|
|
58
|
+
}
|
|
59
|
+
export type DestinationCreateInput = {
|
|
60
|
+
address?: string | undefined;
|
|
61
|
+
}
|
|
62
|
+
export type DestinationCreateOutput = {
|
|
63
|
+
[key: string]: unknown;
|
|
64
|
+
}
|
|
65
|
+
export type DestinationGetInput = {
|
|
66
|
+
destinationId: string;
|
|
67
|
+
}
|
|
68
|
+
export type DestinationGetOutput = {
|
|
69
|
+
[key: string]: unknown;
|
|
70
|
+
}
|
|
71
|
+
export type HubCreateInput = {
|
|
72
|
+
name?: string | undefined;
|
|
73
|
+
}
|
|
74
|
+
export type HubCreateOutput = {
|
|
75
|
+
[key: string]: unknown;
|
|
76
|
+
}
|
|
77
|
+
export type HubGetAllOutput = {
|
|
78
|
+
[key: string]: unknown;
|
|
79
|
+
}
|
|
80
|
+
export type HubUpdateInput = {
|
|
81
|
+
hubId: string;
|
|
82
|
+
name?: string | undefined;
|
|
83
|
+
}
|
|
84
|
+
export type HubUpdateOutput = {
|
|
85
|
+
[key: string]: unknown;
|
|
86
|
+
}
|
|
87
|
+
export type OrganizationGetDelegateeInput = {
|
|
88
|
+
organizationId: string;
|
|
89
|
+
}
|
|
90
|
+
export type OrganizationGetDelegateeOutput = {
|
|
91
|
+
[key: string]: unknown;
|
|
92
|
+
}
|
|
93
|
+
export type OrganizationGetOutput = {
|
|
94
|
+
[key: string]: unknown;
|
|
95
|
+
}
|
|
96
|
+
export type RecipientCreateInput = {
|
|
97
|
+
name?: string | undefined;
|
|
98
|
+
phone?: string | undefined;
|
|
99
|
+
}
|
|
100
|
+
export type RecipientCreateOutput = {
|
|
101
|
+
[key: string]: unknown;
|
|
102
|
+
}
|
|
103
|
+
export type RecipientGetInput = {
|
|
104
|
+
recipientId: string;
|
|
105
|
+
}
|
|
106
|
+
export type RecipientGetOutput = {
|
|
107
|
+
[key: string]: unknown;
|
|
108
|
+
}
|
|
109
|
+
export type RecipientUpdateInput = {
|
|
110
|
+
recipientId: string;
|
|
111
|
+
name?: string | undefined;
|
|
112
|
+
}
|
|
113
|
+
export type RecipientUpdateOutput = {
|
|
114
|
+
[key: string]: unknown;
|
|
115
|
+
}
|
|
116
|
+
export type TaskCloneInput = {
|
|
117
|
+
taskId: string;
|
|
118
|
+
}
|
|
119
|
+
export type TaskCloneOutput = {
|
|
120
|
+
[key: string]: unknown;
|
|
121
|
+
}
|
|
122
|
+
export type TaskCompleteInput = {
|
|
123
|
+
taskId: string;
|
|
124
|
+
success?: boolean | undefined;
|
|
125
|
+
}
|
|
126
|
+
export type TaskCompleteOutput = {
|
|
127
|
+
[key: string]: unknown;
|
|
128
|
+
}
|
|
129
|
+
export type TaskCreateInput = {
|
|
130
|
+
destination?: string | undefined;
|
|
131
|
+
recipients?: string[] | undefined;
|
|
132
|
+
}
|
|
133
|
+
export type TaskCreateOutput = {
|
|
134
|
+
[key: string]: unknown;
|
|
135
|
+
}
|
|
136
|
+
export type TaskDeleteInput = {
|
|
137
|
+
taskId: string;
|
|
138
|
+
}
|
|
139
|
+
export type TaskDeleteOutput = {
|
|
140
|
+
[key: string]: unknown;
|
|
141
|
+
}
|
|
142
|
+
export type TaskGetAllOutput = {
|
|
143
|
+
[key: string]: unknown;
|
|
144
|
+
}
|
|
145
|
+
export type TaskGetInput = {
|
|
146
|
+
taskId: string;
|
|
147
|
+
}
|
|
148
|
+
export type TaskGetOutput = {
|
|
149
|
+
[key: string]: unknown;
|
|
150
|
+
}
|
|
151
|
+
export type TaskUpdateInput = {
|
|
152
|
+
taskId: string;
|
|
153
|
+
notes?: string | undefined;
|
|
154
|
+
}
|
|
155
|
+
export type TaskUpdateOutput = {
|
|
156
|
+
[key: string]: unknown;
|
|
157
|
+
}
|
|
158
|
+
export type TeamAutoDispatchInput = {
|
|
159
|
+
teamId: string;
|
|
160
|
+
}
|
|
161
|
+
export type TeamAutoDispatchOutput = {
|
|
162
|
+
[key: string]: unknown;
|
|
163
|
+
}
|
|
164
|
+
export type TeamCreateInput = {
|
|
165
|
+
name?: string | undefined;
|
|
166
|
+
}
|
|
167
|
+
export type TeamCreateOutput = {
|
|
168
|
+
[key: string]: unknown;
|
|
169
|
+
}
|
|
170
|
+
export type TeamDeleteInput = {
|
|
171
|
+
teamId: string;
|
|
172
|
+
}
|
|
173
|
+
export type TeamDeleteOutput = {
|
|
174
|
+
[key: string]: unknown;
|
|
175
|
+
}
|
|
176
|
+
export type TeamGetAllOutput = {
|
|
177
|
+
[key: string]: unknown;
|
|
178
|
+
}
|
|
179
|
+
export type TeamGetInput = {
|
|
180
|
+
teamId: string;
|
|
181
|
+
}
|
|
182
|
+
export type TeamGetOutput = {
|
|
183
|
+
[key: string]: unknown;
|
|
184
|
+
}
|
|
185
|
+
export type TeamGetTimeEstimatesInput = {
|
|
186
|
+
teamId: string;
|
|
187
|
+
}
|
|
188
|
+
export type TeamGetTimeEstimatesOutput = {
|
|
189
|
+
[key: string]: unknown;
|
|
190
|
+
}
|
|
191
|
+
export type TeamUpdateInput = {
|
|
192
|
+
teamId: string;
|
|
193
|
+
name?: string | undefined;
|
|
194
|
+
}
|
|
195
|
+
export type TeamUpdateOutput = {
|
|
196
|
+
[key: string]: unknown;
|
|
197
|
+
}
|
|
198
|
+
export type VariableSchema_ONFLEET_BASE_URL = "https://onfleet.com/api/v2"
|
|
199
|
+
export type WorkerCreateInput = {
|
|
200
|
+
name?: string | undefined;
|
|
201
|
+
phone?: string | undefined;
|
|
202
|
+
}
|
|
203
|
+
export type WorkerCreateOutput = {
|
|
204
|
+
[key: string]: unknown;
|
|
205
|
+
}
|
|
206
|
+
export type WorkerDeleteInput = {
|
|
207
|
+
workerId: string;
|
|
208
|
+
}
|
|
209
|
+
export type WorkerDeleteOutput = {
|
|
210
|
+
[key: string]: unknown;
|
|
211
|
+
}
|
|
212
|
+
export type WorkerGetAllOutput = {
|
|
213
|
+
[key: string]: unknown;
|
|
214
|
+
}
|
|
215
|
+
export type WorkerGetInput = {
|
|
216
|
+
workerId: string;
|
|
217
|
+
}
|
|
218
|
+
export type WorkerGetOutput = {
|
|
219
|
+
[key: string]: unknown;
|
|
220
|
+
}
|
|
221
|
+
export type WorkerGetScheduleInput = {
|
|
222
|
+
workerId: string;
|
|
223
|
+
}
|
|
224
|
+
export type WorkerGetScheduleOutput = {
|
|
225
|
+
[key: string]: unknown;
|
|
226
|
+
}
|
|
227
|
+
export type WorkerUpdateInput = {
|
|
228
|
+
workerId: string;
|
|
229
|
+
name?: string | undefined;
|
|
230
|
+
}
|
|
231
|
+
export type WorkerUpdateOutput = {
|
|
232
|
+
[key: string]: unknown;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface RPCHandler<I, O> {
|
|
236
|
+
input: I;
|
|
237
|
+
output: O;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
export type RPCMap = {
|
|
241
|
+
readonly 'adminGetAll': RPCHandler<null, AdminGetAllOutput>,
|
|
242
|
+
readonly 'adminCreate': RPCHandler<AdminCreateInput, AdminCreateOutput>,
|
|
243
|
+
readonly 'adminUpdate': RPCHandler<AdminUpdateInput, AdminUpdateOutput>,
|
|
244
|
+
readonly 'adminDelete': RPCHandler<AdminDeleteInput, AdminDeleteOutput>,
|
|
245
|
+
readonly 'containerGet': RPCHandler<ContainerGetInput, ContainerGetOutput>,
|
|
246
|
+
readonly 'containerAddTask': RPCHandler<ContainerAddTaskInput, ContainerAddTaskOutput>,
|
|
247
|
+
readonly 'containerUpdateTask': RPCHandler<ContainerUpdateTaskInput, ContainerUpdateTaskOutput>,
|
|
248
|
+
readonly 'destinationCreate': RPCHandler<DestinationCreateInput, DestinationCreateOutput>,
|
|
249
|
+
readonly 'destinationGet': RPCHandler<DestinationGetInput, DestinationGetOutput>,
|
|
250
|
+
readonly 'hubGetAll': RPCHandler<null, HubGetAllOutput>,
|
|
251
|
+
readonly 'hubCreate': RPCHandler<HubCreateInput, HubCreateOutput>,
|
|
252
|
+
readonly 'hubUpdate': RPCHandler<HubUpdateInput, HubUpdateOutput>,
|
|
253
|
+
readonly 'organizationGet': RPCHandler<null, OrganizationGetOutput>,
|
|
254
|
+
readonly 'organizationGetDelegatee': RPCHandler<OrganizationGetDelegateeInput, OrganizationGetDelegateeOutput>,
|
|
255
|
+
readonly 'recipientCreate': RPCHandler<RecipientCreateInput, RecipientCreateOutput>,
|
|
256
|
+
readonly 'recipientGet': RPCHandler<RecipientGetInput, RecipientGetOutput>,
|
|
257
|
+
readonly 'recipientUpdate': RPCHandler<RecipientUpdateInput, RecipientUpdateOutput>,
|
|
258
|
+
readonly 'taskCreate': RPCHandler<TaskCreateInput, TaskCreateOutput>,
|
|
259
|
+
readonly 'taskGetAll': RPCHandler<null, TaskGetAllOutput>,
|
|
260
|
+
readonly 'taskGet': RPCHandler<TaskGetInput, TaskGetOutput>,
|
|
261
|
+
readonly 'taskUpdate': RPCHandler<TaskUpdateInput, TaskUpdateOutput>,
|
|
262
|
+
readonly 'taskDelete': RPCHandler<TaskDeleteInput, TaskDeleteOutput>,
|
|
263
|
+
readonly 'taskClone': RPCHandler<TaskCloneInput, TaskCloneOutput>,
|
|
264
|
+
readonly 'taskComplete': RPCHandler<TaskCompleteInput, TaskCompleteOutput>,
|
|
265
|
+
readonly 'teamGetAll': RPCHandler<null, TeamGetAllOutput>,
|
|
266
|
+
readonly 'teamCreate': RPCHandler<TeamCreateInput, TeamCreateOutput>,
|
|
267
|
+
readonly 'teamGet': RPCHandler<TeamGetInput, TeamGetOutput>,
|
|
268
|
+
readonly 'teamUpdate': RPCHandler<TeamUpdateInput, TeamUpdateOutput>,
|
|
269
|
+
readonly 'teamDelete': RPCHandler<TeamDeleteInput, TeamDeleteOutput>,
|
|
270
|
+
readonly 'teamGetTimeEstimates': RPCHandler<TeamGetTimeEstimatesInput, TeamGetTimeEstimatesOutput>,
|
|
271
|
+
readonly 'teamAutoDispatch': RPCHandler<TeamAutoDispatchInput, TeamAutoDispatchOutput>,
|
|
272
|
+
readonly 'workerGetAll': RPCHandler<null, WorkerGetAllOutput>,
|
|
273
|
+
readonly 'workerCreate': RPCHandler<WorkerCreateInput, WorkerCreateOutput>,
|
|
274
|
+
readonly 'workerGet': RPCHandler<WorkerGetInput, WorkerGetOutput>,
|
|
275
|
+
readonly 'workerUpdate': RPCHandler<WorkerUpdateInput, WorkerUpdateOutput>,
|
|
276
|
+
readonly 'workerDelete': RPCHandler<WorkerDeleteInput, WorkerDeleteOutput>,
|
|
277
|
+
readonly 'workerGetSchedule': RPCHandler<WorkerGetScheduleInput, WorkerGetScheduleOutput>,
|
|
278
|
+
};
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
// No addon packages, use RPCMap directly
|
|
283
|
+
export type FlattenedRPCMap = RPCMap
|
|
284
|
+
|
|
285
|
+
type IsAny<T> = 0 extends (1 & T) ? true : false
|
|
286
|
+
type IsVoidishInput<T> = IsAny<T> extends true
|
|
287
|
+
? false
|
|
288
|
+
: [T] extends [void | null | undefined]
|
|
289
|
+
? true
|
|
290
|
+
: false
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
export type RPCInvoke = <Name extends keyof FlattenedRPCMap>(
|
|
294
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
295
|
+
? [name: Name]
|
|
296
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
297
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
298
|
+
|
|
299
|
+
export type RPCRemote = <Name extends keyof FlattenedRPCMap>(
|
|
300
|
+
...args: IsVoidishInput<FlattenedRPCMap[Name]['input']> extends true
|
|
301
|
+
? [name: Name]
|
|
302
|
+
: [name: Name, data: FlattenedRPCMap[Name]['input']]
|
|
303
|
+
) => Promise<FlattenedRPCMap[Name]['output']>
|
|
304
|
+
|
|
305
|
+
import type { FlattenedWorkflowMap } from '../workflow/pikku-workflow-map.gen.d.js'
|
|
306
|
+
|
|
307
|
+
import type { AgentMap } from '../agent/pikku-agent-map.gen.d.js'
|
|
308
|
+
|
|
309
|
+
|
|
310
|
+
type FlattenedAgentMap = AgentMap
|
|
311
|
+
|
|
312
|
+
|
|
313
|
+
import type { PikkuRPC } from '@pikku/core/rpc'
|
|
314
|
+
|
|
315
|
+
interface AIAgentInput {
|
|
316
|
+
message: string
|
|
317
|
+
threadId: string
|
|
318
|
+
resourceId: string
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
export type TypedStartWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
322
|
+
name: Name,
|
|
323
|
+
input: FlattenedWorkflowMap[Name]['input'],
|
|
324
|
+
options?: { startNode?: string }
|
|
325
|
+
) => Promise<{ runId: string }>
|
|
326
|
+
|
|
327
|
+
export type TypedRunWorkflow = <Name extends keyof FlattenedWorkflowMap>(
|
|
328
|
+
name: Name,
|
|
329
|
+
input: FlattenedWorkflowMap[Name]['input']
|
|
330
|
+
) => Promise<FlattenedWorkflowMap[Name]['output']>
|
|
331
|
+
|
|
332
|
+
export type TypedWorkflowStatus = (
|
|
333
|
+
workflowName: string,
|
|
334
|
+
runId: string
|
|
335
|
+
) => Promise<{ id: string; status: 'running' | 'suspended' | 'completed' | 'failed' | 'cancelled'; output?: unknown; error?: { message?: string } }>
|
|
336
|
+
|
|
337
|
+
type TypedAgentRun = [keyof FlattenedAgentMap] extends [never]
|
|
338
|
+
? (name: string, input: AIAgentInput) => Promise<any>
|
|
339
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
340
|
+
name: Name,
|
|
341
|
+
input: AIAgentInput
|
|
342
|
+
) => Promise<{ runId: string; result: FlattenedAgentMap[Name]['output']; usage: { inputTokens: number; outputTokens: number } }>
|
|
343
|
+
|
|
344
|
+
type TypedAgentStream = [keyof FlattenedAgentMap] extends [never]
|
|
345
|
+
? (name: string, input: AIAgentInput, options?: { requiresToolApproval?: 'all' | 'explicit' | false }) => Promise<void>
|
|
346
|
+
: <Name extends keyof FlattenedAgentMap>(
|
|
347
|
+
name: Name,
|
|
348
|
+
input: AIAgentInput,
|
|
349
|
+
options?: { requiresToolApproval?: 'all' | 'explicit' | false }
|
|
350
|
+
) => Promise<void>
|
|
351
|
+
|
|
352
|
+
export type TypedPikkuRPC = PikkuRPC<RPCInvoke, RPCRemote, TypedStartWorkflow, TypedAgentRun, TypedAgentStream>
|
|
353
|
+
|