@rippling/rippling-sdk 0.2.0-alpha.86 → 0.2.0-alpha.87
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/client.d.mts +15 -0
- package/client.d.mts.map +1 -1
- package/client.d.ts +15 -0
- package/client.d.ts.map +1 -1
- package/client.js +15 -0
- package/client.js.map +1 -1
- package/client.mjs +15 -0
- package/client.mjs.map +1 -1
- package/lib/leave-programs/advanced.d.mts +5 -0
- package/lib/leave-programs/advanced.d.mts.map +1 -0
- package/lib/leave-programs/advanced.d.ts +5 -0
- package/lib/leave-programs/advanced.d.ts.map +1 -0
- package/lib/leave-programs/advanced.js +13 -0
- package/lib/leave-programs/advanced.js.map +1 -0
- package/lib/leave-programs/advanced.mjs +4 -0
- package/lib/leave-programs/advanced.mjs.map +1 -0
- package/lib/leave-programs/context.d.mts +3 -0
- package/lib/leave-programs/context.d.mts.map +1 -0
- package/lib/leave-programs/context.d.ts +3 -0
- package/lib/leave-programs/context.d.ts.map +1 -0
- package/lib/leave-programs/context.js +89 -0
- package/lib/leave-programs/context.js.map +1 -0
- package/lib/leave-programs/context.mjs +86 -0
- package/lib/leave-programs/context.mjs.map +1 -0
- package/lib/leave-programs/define-company-leave-program.d.mts +3 -0
- package/lib/leave-programs/define-company-leave-program.d.mts.map +1 -0
- package/lib/leave-programs/define-company-leave-program.d.ts +3 -0
- package/lib/leave-programs/define-company-leave-program.d.ts.map +1 -0
- package/lib/leave-programs/define-company-leave-program.js +47 -0
- package/lib/leave-programs/define-company-leave-program.js.map +1 -0
- package/lib/leave-programs/define-company-leave-program.mjs +44 -0
- package/lib/leave-programs/define-company-leave-program.mjs.map +1 -0
- package/lib/leave-programs/duration.d.mts +5 -0
- package/lib/leave-programs/duration.d.mts.map +1 -0
- package/lib/leave-programs/duration.d.ts +5 -0
- package/lib/leave-programs/duration.d.ts.map +1 -0
- package/lib/leave-programs/duration.js +21 -0
- package/lib/leave-programs/duration.js.map +1 -0
- package/lib/leave-programs/duration.mjs +16 -0
- package/lib/leave-programs/duration.mjs.map +1 -0
- package/lib/leave-programs/pay.d.mts +4 -0
- package/lib/leave-programs/pay.d.mts.map +1 -0
- package/lib/leave-programs/pay.d.ts +4 -0
- package/lib/leave-programs/pay.d.ts.map +1 -0
- package/lib/leave-programs/pay.js +20 -0
- package/lib/leave-programs/pay.js.map +1 -0
- package/lib/leave-programs/pay.mjs +16 -0
- package/lib/leave-programs/pay.mjs.map +1 -0
- package/lib/leave-programs/policy-builder.d.mts +20 -0
- package/lib/leave-programs/policy-builder.d.mts.map +1 -0
- package/lib/leave-programs/policy-builder.d.ts +20 -0
- package/lib/leave-programs/policy-builder.d.ts.map +1 -0
- package/lib/leave-programs/policy-builder.js +89 -0
- package/lib/leave-programs/policy-builder.js.map +1 -0
- package/lib/leave-programs/policy-builder.mjs +85 -0
- package/lib/leave-programs/policy-builder.mjs.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.mts +25 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.mts.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.ts +25 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.d.ts.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.js +56 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.js.map +1 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.mjs +53 -0
- package/lib/leave-programs/recipes/parental-top-up-policy.mjs.map +1 -0
- package/lib/leave-programs/testing.d.mts +8 -0
- package/lib/leave-programs/testing.d.mts.map +1 -0
- package/lib/leave-programs/testing.d.ts +8 -0
- package/lib/leave-programs/testing.d.ts.map +1 -0
- package/lib/leave-programs/testing.js +11 -0
- package/lib/leave-programs/testing.js.map +1 -0
- package/lib/leave-programs/testing.mjs +7 -0
- package/lib/leave-programs/testing.mjs.map +1 -0
- package/lib/leave-programs/types.d.mts +223 -0
- package/lib/leave-programs/types.d.mts.map +1 -0
- package/lib/leave-programs/types.d.ts +223 -0
- package/lib/leave-programs/types.d.ts.map +1 -0
- package/lib/leave-programs/types.js +10 -0
- package/lib/leave-programs/types.js.map +1 -0
- package/lib/leave-programs/types.mjs +7 -0
- package/lib/leave-programs/types.mjs.map +1 -0
- package/lib/leave-programs.d.mts +7 -0
- package/lib/leave-programs.d.mts.map +1 -0
- package/lib/leave-programs.d.ts +7 -0
- package/lib/leave-programs.d.ts.map +1 -0
- package/lib/leave-programs.js +19 -0
- package/lib/leave-programs.js.map +1 -0
- package/lib/leave-programs.mjs +7 -0
- package/lib/leave-programs.mjs.map +1 -0
- package/package.json +1 -1
- package/resources/agents/agents.d.mts +208 -0
- package/resources/agents/agents.d.mts.map +1 -0
- package/resources/agents/agents.d.ts +208 -0
- package/resources/agents/agents.d.ts.map +1 -0
- package/resources/agents/agents.js +64 -0
- package/resources/agents/agents.js.map +1 -0
- package/resources/agents/agents.mjs +59 -0
- package/resources/agents/agents.mjs.map +1 -0
- package/resources/agents/deployments.d.mts +180 -0
- package/resources/agents/deployments.d.mts.map +1 -0
- package/resources/agents/deployments.d.ts +180 -0
- package/resources/agents/deployments.d.ts.map +1 -0
- package/resources/agents/deployments.js +32 -0
- package/resources/agents/deployments.js.map +1 -0
- package/resources/agents/deployments.mjs +28 -0
- package/resources/agents/deployments.mjs.map +1 -0
- package/resources/agents/index.d.mts +5 -0
- package/resources/agents/index.d.mts.map +1 -0
- package/resources/agents/index.d.ts +5 -0
- package/resources/agents/index.d.ts.map +1 -0
- package/resources/agents/index.js +13 -0
- package/resources/agents/index.js.map +1 -0
- package/resources/agents/index.mjs +6 -0
- package/resources/agents/index.mjs.map +1 -0
- package/resources/agents/sessions/events.d.mts +80 -0
- package/resources/agents/sessions/events.d.mts.map +1 -0
- package/resources/agents/sessions/events.d.ts +80 -0
- package/resources/agents/sessions/events.d.ts.map +1 -0
- package/resources/agents/sessions/events.js +19 -0
- package/resources/agents/sessions/events.js.map +1 -0
- package/resources/agents/sessions/events.mjs +15 -0
- package/resources/agents/sessions/events.mjs.map +1 -0
- package/resources/agents/sessions/index.d.mts +3 -0
- package/resources/agents/sessions/index.d.mts.map +1 -0
- package/resources/agents/sessions/index.d.ts +3 -0
- package/resources/agents/sessions/index.d.ts.map +1 -0
- package/resources/agents/sessions/index.js +9 -0
- package/resources/agents/sessions/index.js.map +1 -0
- package/resources/agents/sessions/index.mjs +4 -0
- package/resources/agents/sessions/index.mjs.map +1 -0
- package/resources/agents/sessions/sessions.d.mts +153 -0
- package/resources/agents/sessions/sessions.d.mts.map +1 -0
- package/resources/agents/sessions/sessions.d.ts +153 -0
- package/resources/agents/sessions/sessions.d.ts.map +1 -0
- package/resources/agents/sessions/sessions.js +44 -0
- package/resources/agents/sessions/sessions.js.map +1 -0
- package/resources/agents/sessions/sessions.mjs +39 -0
- package/resources/agents/sessions/sessions.mjs.map +1 -0
- package/resources/agents/sessions.d.mts +2 -0
- package/resources/agents/sessions.d.mts.map +1 -0
- package/resources/agents/sessions.d.ts +2 -0
- package/resources/agents/sessions.d.ts.map +1 -0
- package/resources/agents/sessions.js +6 -0
- package/resources/agents/sessions.js.map +1 -0
- package/resources/agents/sessions.mjs +3 -0
- package/resources/agents/sessions.mjs.map +1 -0
- package/resources/agents/source-revisions.d.mts +195 -0
- package/resources/agents/source-revisions.d.mts.map +1 -0
- package/resources/agents/source-revisions.d.ts +195 -0
- package/resources/agents/source-revisions.d.ts.map +1 -0
- package/resources/agents/source-revisions.js +32 -0
- package/resources/agents/source-revisions.js.map +1 -0
- package/resources/agents/source-revisions.mjs +28 -0
- package/resources/agents/source-revisions.mjs.map +1 -0
- package/resources/agents.d.mts +2 -0
- package/resources/agents.d.mts.map +1 -0
- package/resources/agents.d.ts +2 -0
- package/resources/agents.d.ts.map +1 -0
- package/resources/agents.js +6 -0
- package/resources/agents.js.map +1 -0
- package/resources/agents.mjs +3 -0
- package/resources/agents.mjs.map +1 -0
- package/resources/break-policies.d.mts +1 -1
- package/resources/break-policies.d.ts +1 -1
- package/resources/break-policies.js +1 -1
- package/resources/break-policies.mjs +1 -1
- package/resources/break-types.d.mts +1 -1
- package/resources/break-types.d.ts +1 -1
- package/resources/break-types.js +1 -1
- package/resources/break-types.mjs +1 -1
- package/resources/business-structure-paths.d.mts +1 -1
- package/resources/business-structure-paths.d.ts +1 -1
- package/resources/business-structure-paths.js +1 -1
- package/resources/business-structure-paths.mjs +1 -1
- package/resources/candidate-applications.d.mts +1 -1
- package/resources/candidate-applications.d.ts +1 -1
- package/resources/candidate-applications.js +1 -1
- package/resources/candidate-applications.mjs +1 -1
- package/resources/candidates.d.mts +1 -1
- package/resources/candidates.d.ts +1 -1
- package/resources/candidates.js +1 -1
- package/resources/candidates.mjs +1 -1
- package/resources/company-legal-entities.d.mts +1 -1
- package/resources/company-legal-entities.d.ts +1 -1
- package/resources/company-legal-entities.js +1 -1
- package/resources/company-legal-entities.mjs +1 -1
- package/resources/company-legal-entity-workers.d.mts +1 -1
- package/resources/company-legal-entity-workers.d.ts +1 -1
- package/resources/company-legal-entity-workers.js +1 -1
- package/resources/company-legal-entity-workers.mjs +1 -1
- package/resources/compensation-bands-details.d.mts +1 -1
- package/resources/compensation-bands-details.d.ts +1 -1
- package/resources/compensation-bands-details.js +1 -1
- package/resources/compensation-bands-details.mjs +1 -1
- package/resources/compensations.d.mts +1 -1
- package/resources/compensations.d.ts +1 -1
- package/resources/compensations.js +1 -1
- package/resources/compensations.mjs +1 -1
- package/resources/device-orders.d.mts +1 -1
- package/resources/device-orders.d.ts +1 -1
- package/resources/device-orders.js +1 -1
- package/resources/device-orders.mjs +1 -1
- package/resources/devices.d.mts +1 -1
- package/resources/devices.d.ts +1 -1
- package/resources/devices.js +1 -1
- package/resources/devices.mjs +1 -1
- package/resources/functions/deployments.d.mts +2 -2
- package/resources/functions/deployments.d.ts +2 -2
- package/resources/functions/deployments.js +2 -2
- package/resources/functions/deployments.mjs +2 -2
- package/resources/functions/executions.d.mts +2 -2
- package/resources/functions/executions.d.ts +2 -2
- package/resources/functions/executions.js +2 -2
- package/resources/functions/executions.mjs +2 -2
- package/resources/functions/functions.d.mts +1 -1
- package/resources/functions/functions.d.ts +1 -1
- package/resources/functions/functions.js +1 -1
- package/resources/functions/functions.mjs +1 -1
- package/resources/headcount-positions.d.mts +1 -1
- package/resources/headcount-positions.d.ts +1 -1
- package/resources/headcount-positions.js +1 -1
- package/resources/headcount-positions.mjs +1 -1
- package/resources/headcount-priorities.d.mts +1 -1
- package/resources/headcount-priorities.d.ts +1 -1
- package/resources/headcount-priorities.js +1 -1
- package/resources/headcount-priorities.mjs +1 -1
- package/resources/index.d.mts +3 -0
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +3 -0
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +8 -2
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/job-assignments.d.mts +2 -2
- package/resources/job-assignments.d.ts +2 -2
- package/resources/job-assignments.js +2 -2
- package/resources/job-assignments.mjs +2 -2
- package/resources/job-codes.d.mts +2 -2
- package/resources/job-codes.d.ts +2 -2
- package/resources/job-codes.js +2 -2
- package/resources/job-codes.mjs +2 -2
- package/resources/job-dimensions.d.mts +1 -1
- package/resources/job-dimensions.d.ts +1 -1
- package/resources/job-dimensions.js +1 -1
- package/resources/job-dimensions.mjs +1 -1
- package/resources/job-pay-rate-exceptions.d.mts +2 -2
- package/resources/job-pay-rate-exceptions.d.ts +2 -2
- package/resources/job-pay-rate-exceptions.js +2 -2
- package/resources/job-pay-rate-exceptions.mjs +2 -2
- package/resources/job-requisitions.d.mts +1 -1
- package/resources/job-requisitions.d.ts +1 -1
- package/resources/job-requisitions.js +1 -1
- package/resources/job-requisitions.mjs +1 -1
- package/resources/kiosk-badges.d.mts +1 -1
- package/resources/kiosk-badges.d.ts +1 -1
- package/resources/kiosk-badges.js +1 -1
- package/resources/kiosk-badges.mjs +1 -1
- package/resources/leave-accruals.d.mts +1 -1
- package/resources/leave-accruals.d.ts +1 -1
- package/resources/leave-accruals.js +1 -1
- package/resources/leave-accruals.mjs +1 -1
- package/resources/leave-balances.d.mts +1 -1
- package/resources/leave-balances.d.ts +1 -1
- package/resources/leave-balances.js +1 -1
- package/resources/leave-balances.mjs +1 -1
- package/resources/leave-requests.d.mts +1 -1
- package/resources/leave-requests.d.ts +1 -1
- package/resources/leave-requests.js +1 -1
- package/resources/leave-requests.mjs +1 -1
- package/resources/leave-types.d.mts +1 -1
- package/resources/leave-types.d.ts +1 -1
- package/resources/leave-types.js +1 -1
- package/resources/leave-types.mjs +1 -1
- package/resources/legal-entities.d.mts +1 -1
- package/resources/legal-entities.d.ts +1 -1
- package/resources/legal-entities.js +1 -1
- package/resources/legal-entities.mjs +1 -1
- package/resources/levels.d.mts +1 -1
- package/resources/levels.d.ts +1 -1
- package/resources/levels.js +1 -1
- package/resources/levels.mjs +1 -1
- package/resources/location-factors.d.mts +1 -1
- package/resources/location-factors.d.ts +1 -1
- package/resources/location-factors.js +1 -1
- package/resources/location-factors.mjs +1 -1
- package/resources/packages/index.d.mts +3 -0
- package/resources/packages/index.d.mts.map +1 -0
- package/resources/packages/index.d.ts +3 -0
- package/resources/packages/index.d.ts.map +1 -0
- package/resources/packages/index.js +9 -0
- package/resources/packages/index.js.map +1 -0
- package/resources/packages/index.mjs +4 -0
- package/resources/packages/index.mjs.map +1 -0
- package/resources/packages/packages.d.mts +239 -0
- package/resources/packages/packages.d.mts.map +1 -0
- package/resources/packages/packages.d.ts +239 -0
- package/resources/packages/packages.d.ts.map +1 -0
- package/resources/packages/packages.js +60 -0
- package/resources/packages/packages.js.map +1 -0
- package/resources/packages/packages.mjs +55 -0
- package/resources/packages/packages.mjs.map +1 -0
- package/resources/packages/versions.d.mts +72 -0
- package/resources/packages/versions.d.mts.map +1 -0
- package/resources/packages/versions.d.ts +72 -0
- package/resources/packages/versions.d.ts.map +1 -0
- package/resources/packages/versions.js +19 -0
- package/resources/packages/versions.js.map +1 -0
- package/resources/packages/versions.mjs +15 -0
- package/resources/packages/versions.mjs.map +1 -0
- package/resources/packages.d.mts +2 -0
- package/resources/packages.d.mts.map +1 -0
- package/resources/packages.d.ts +2 -0
- package/resources/packages.d.ts.map +1 -0
- package/resources/packages.js +6 -0
- package/resources/packages.js.map +1 -0
- package/resources/packages.mjs +3 -0
- package/resources/packages.mjs.map +1 -0
- package/resources/scheduled-job-assignments.d.mts +1 -1
- package/resources/scheduled-job-assignments.d.ts +1 -1
- package/resources/scheduled-job-assignments.js +1 -1
- package/resources/scheduled-job-assignments.mjs +1 -1
- package/resources/schedules.d.mts +1 -1
- package/resources/schedules.d.ts +1 -1
- package/resources/schedules.js +1 -1
- package/resources/schedules.mjs +1 -1
- package/resources/shift-assignments.d.mts +1 -1
- package/resources/shift-assignments.d.ts +1 -1
- package/resources/shift-assignments.js +1 -1
- package/resources/shift-assignments.mjs +1 -1
- package/resources/shift-inputs.d.mts +1 -1
- package/resources/shift-inputs.d.ts +1 -1
- package/resources/shift-inputs.js +1 -1
- package/resources/shift-inputs.mjs +1 -1
- package/resources/shiftassignments.d.mts +1 -1
- package/resources/shiftassignments.d.ts +1 -1
- package/resources/shiftassignments.js +1 -1
- package/resources/shiftassignments.mjs +1 -1
- package/resources/sites.d.mts +572 -0
- package/resources/sites.d.mts.map +1 -0
- package/resources/sites.d.ts +572 -0
- package/resources/sites.d.ts.map +1 -0
- package/resources/sites.js +154 -0
- package/resources/sites.js.map +1 -0
- package/resources/sites.mjs +150 -0
- package/resources/sites.mjs.map +1 -0
- package/resources/software-deployments.d.mts +1 -1
- package/resources/software-deployments.d.ts +1 -1
- package/resources/software-deployments.js +1 -1
- package/resources/software-deployments.mjs +1 -1
- package/resources/time-cards.d.mts +1 -1
- package/resources/time-cards.d.ts +1 -1
- package/resources/time-cards.js +1 -1
- package/resources/time-cards.mjs +1 -1
- package/resources/time-entries.d.mts +1 -1
- package/resources/time-entries.d.ts +1 -1
- package/resources/time-entries.js +1 -1
- package/resources/time-entries.mjs +1 -1
- package/resources/tracks.d.mts +1 -1
- package/resources/tracks.d.ts +1 -1
- package/resources/tracks.js +1 -1
- package/resources/tracks.mjs +1 -1
- package/resources/unassigned-shifts.d.mts +2 -2
- package/resources/unassigned-shifts.d.ts +2 -2
- package/resources/unassigned-shifts.js +2 -2
- package/resources/unassigned-shifts.mjs +2 -2
- package/resources/unassignedshifts.d.mts +1 -1
- package/resources/unassignedshifts.d.ts +1 -1
- package/resources/unassignedshifts.js +1 -1
- package/resources/unassignedshifts.mjs +1 -1
- package/resources/worker-time-splits.d.mts +1 -1
- package/resources/worker-time-splits.d.ts +1 -1
- package/resources/worker-time-splits.js +1 -1
- package/resources/worker-time-splits.mjs +1 -1
- package/src/client.ts +91 -0
- package/src/lib/leave-programs/README.md +160 -0
- package/src/lib/leave-programs/advanced.ts +11 -0
- package/src/lib/leave-programs/context.ts +101 -0
- package/src/lib/leave-programs/define-company-leave-program.ts +58 -0
- package/src/lib/leave-programs/duration.ts +20 -0
- package/src/lib/leave-programs/pay.ts +18 -0
- package/src/lib/leave-programs/policy-builder.ts +113 -0
- package/src/lib/leave-programs/recipes/parental-top-up-policy.ts +85 -0
- package/src/lib/leave-programs/testing.ts +16 -0
- package/src/lib/leave-programs/types.ts +274 -0
- package/src/lib/leave-programs.ts +35 -0
- package/src/resources/agents/agents.ts +340 -0
- package/src/resources/agents/deployments.ts +249 -0
- package/src/resources/agents/index.ts +40 -0
- package/src/resources/agents/sessions/events.ts +107 -0
- package/src/resources/agents/sessions/index.ts +12 -0
- package/src/resources/agents/sessions/sessions.ts +216 -0
- package/src/resources/agents/sessions.ts +3 -0
- package/src/resources/agents/source-revisions.ts +267 -0
- package/src/resources/agents.ts +3 -0
- package/src/resources/break-policies.ts +1 -1
- package/src/resources/break-types.ts +1 -1
- package/src/resources/business-structure-paths.ts +1 -1
- package/src/resources/candidate-applications.ts +1 -1
- package/src/resources/candidates.ts +1 -1
- package/src/resources/company-legal-entities.ts +1 -1
- package/src/resources/company-legal-entity-workers.ts +1 -1
- package/src/resources/compensation-bands-details.ts +1 -1
- package/src/resources/compensations.ts +1 -1
- package/src/resources/device-orders.ts +1 -1
- package/src/resources/devices.ts +1 -1
- package/src/resources/functions/deployments.ts +2 -2
- package/src/resources/functions/executions.ts +2 -2
- package/src/resources/functions/functions.ts +1 -1
- package/src/resources/headcount-positions.ts +1 -1
- package/src/resources/headcount-priorities.ts +1 -1
- package/src/resources/index.ts +38 -0
- package/src/resources/job-assignments.ts +2 -2
- package/src/resources/job-codes.ts +2 -2
- package/src/resources/job-dimensions.ts +1 -1
- package/src/resources/job-pay-rate-exceptions.ts +2 -2
- package/src/resources/job-requisitions.ts +1 -1
- package/src/resources/kiosk-badges.ts +1 -1
- package/src/resources/leave-accruals.ts +1 -1
- package/src/resources/leave-balances.ts +1 -1
- package/src/resources/leave-requests.ts +1 -1
- package/src/resources/leave-types.ts +1 -1
- package/src/resources/legal-entities.ts +1 -1
- package/src/resources/levels.ts +1 -1
- package/src/resources/location-factors.ts +1 -1
- package/src/resources/packages/index.ts +14 -0
- package/src/resources/packages/packages.ts +329 -0
- package/src/resources/packages/versions.ts +98 -0
- package/src/resources/packages.ts +3 -0
- package/src/resources/scheduled-job-assignments.ts +1 -1
- package/src/resources/schedules.ts +1 -1
- package/src/resources/shift-assignments.ts +1 -1
- package/src/resources/shift-inputs.ts +1 -1
- package/src/resources/shiftassignments.ts +1 -1
- package/src/resources/sites.ts +736 -0
- package/src/resources/software-deployments.ts +1 -1
- package/src/resources/time-cards.ts +1 -1
- package/src/resources/time-entries.ts +1 -1
- package/src/resources/tracks.ts +1 -1
- package/src/resources/unassigned-shifts.ts +2 -2
- package/src/resources/unassignedshifts.ts +1 -1
- package/src/resources/worker-time-splits.ts +1 -1
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Events = void 0;
|
|
5
|
+
const resource_1 = require("../../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
7
|
+
/**
|
|
8
|
+
* Agents defined by the company
|
|
9
|
+
*/
|
|
10
|
+
class Events extends resource_1.APIResource {
|
|
11
|
+
/**
|
|
12
|
+
* List events for an agent session after an optional sequence number.
|
|
13
|
+
*/
|
|
14
|
+
retrieve(sessionID, query = {}, options) {
|
|
15
|
+
return this._client.get((0, path_1.path) `/agents/sessions/${sessionID}/events/`, { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.Events = Events;
|
|
19
|
+
//# sourceMappingURL=events.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.js","sourceRoot":"","sources":["../../../src/resources/agents/sessions/events.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wDAAqD;AAGrD,0DAAoD;AAEpD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,QAAQ,CACN,SAAiB,EACjB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,SAAS,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF;AAXD,wBAWC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* Agents defined by the company
|
|
6
|
+
*/
|
|
7
|
+
export class Events extends APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* List events for an agent session after an optional sequence number.
|
|
10
|
+
*/
|
|
11
|
+
retrieve(sessionID, query = {}, options) {
|
|
12
|
+
return this._client.get(path `/agents/sessions/${sessionID}/events/`, { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=events.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"events.mjs","sourceRoot":"","sources":["../../../src/resources/agents/sessions/events.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AAGrD,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,QAAQ,CACN,SAAiB,EACjB,QAAgD,EAAE,EAClD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,SAAS,UAAU,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9F,CAAC;CACF"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Events, type EventRetrieveResponse, type EventRetrieveParams } from "./events.mjs";
|
|
2
|
+
export { Sessions, type SessionCreateResponse, type SessionListResponse, type SessionRetrieveResponse, type SessionCreateParams, type SessionListParams, type SessionListResponsesPageCursorURL, } from "./sessions.mjs";
|
|
3
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../src/resources/agents/sessions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,qBAAiB;AACxF,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,GACvC,uBAAmB"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { Events, type EventRetrieveResponse, type EventRetrieveParams } from "./events.js";
|
|
2
|
+
export { Sessions, type SessionCreateResponse, type SessionListResponse, type SessionRetrieveResponse, type SessionCreateParams, type SessionListParams, type SessionListResponsesPageCursorURL, } from "./sessions.js";
|
|
3
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/sessions/index.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,MAAM,EAAE,KAAK,qBAAqB,EAAE,KAAK,mBAAmB,EAAE,oBAAiB;AACxF,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,iCAAiC,GACvC,sBAAmB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Sessions = exports.Events = void 0;
|
|
5
|
+
var events_1 = require("./events.js");
|
|
6
|
+
Object.defineProperty(exports, "Events", { enumerable: true, get: function () { return events_1.Events; } });
|
|
7
|
+
var sessions_1 = require("./sessions.js");
|
|
8
|
+
Object.defineProperty(exports, "Sessions", { enumerable: true, get: function () { return sessions_1.Sessions; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/resources/agents/sessions/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sCAAwF;AAA/E,gGAAA,MAAM,OAAA;AACf,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../src/resources/agents/sessions/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,MAAM,EAAwD,qBAAiB;AACxF,OAAO,EACL,QAAQ,GAOT,uBAAmB"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
2
|
+
import * as EventsAPI from "./events.mjs";
|
|
3
|
+
import { EventRetrieveParams, EventRetrieveResponse, Events } from "./events.mjs";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.mjs";
|
|
5
|
+
import { PageCursorURL, PagePromise } from "../../../core/pagination.mjs";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Agents defined by the company
|
|
9
|
+
*/
|
|
10
|
+
export declare class Sessions extends APIResource {
|
|
11
|
+
events: EventsAPI.Events;
|
|
12
|
+
/**
|
|
13
|
+
* Start an agent session with a prompt.
|
|
14
|
+
*/
|
|
15
|
+
create(body: SessionCreateParams, options?: RequestOptions): APIPromise<SessionCreateResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* A list of sessions for an agent.
|
|
18
|
+
*/
|
|
19
|
+
list(agentID: string, query?: SessionListParams | null | undefined, options?: RequestOptions): PagePromise<SessionListResponsesPageCursorURL, SessionListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve an agent session, including its terminal output or error when
|
|
22
|
+
* available.
|
|
23
|
+
*/
|
|
24
|
+
retrieve(sessionID: string, options?: RequestOptions): APIPromise<SessionRetrieveResponse>;
|
|
25
|
+
}
|
|
26
|
+
export type SessionListResponsesPageCursorURL = PageCursorURL<SessionListResponse>;
|
|
27
|
+
export interface SessionCreateResponse {
|
|
28
|
+
/**
|
|
29
|
+
* Identifier field
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the agent to run
|
|
34
|
+
*/
|
|
35
|
+
agent_id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Record creation date
|
|
38
|
+
*/
|
|
39
|
+
created_at: string;
|
|
40
|
+
/**
|
|
41
|
+
* The prompt to send to the agent
|
|
42
|
+
*/
|
|
43
|
+
prompt: string;
|
|
44
|
+
/**
|
|
45
|
+
* Record update date
|
|
46
|
+
*/
|
|
47
|
+
updated_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* The session error message
|
|
50
|
+
*/
|
|
51
|
+
error_message?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The output of the session
|
|
54
|
+
*/
|
|
55
|
+
output?: unknown;
|
|
56
|
+
/**
|
|
57
|
+
* The status of the session
|
|
58
|
+
*/
|
|
59
|
+
status?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface SessionListResponse {
|
|
62
|
+
/**
|
|
63
|
+
* Identifier field
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
66
|
+
/**
|
|
67
|
+
* The ID of the agent to run
|
|
68
|
+
*/
|
|
69
|
+
agent_id: string;
|
|
70
|
+
/**
|
|
71
|
+
* Record creation date
|
|
72
|
+
*/
|
|
73
|
+
created_at: string;
|
|
74
|
+
/**
|
|
75
|
+
* The prompt to send to the agent
|
|
76
|
+
*/
|
|
77
|
+
prompt: string;
|
|
78
|
+
/**
|
|
79
|
+
* Record update date
|
|
80
|
+
*/
|
|
81
|
+
updated_at: string;
|
|
82
|
+
/**
|
|
83
|
+
* The session error message
|
|
84
|
+
*/
|
|
85
|
+
error_message?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The output of the session
|
|
88
|
+
*/
|
|
89
|
+
output?: unknown;
|
|
90
|
+
/**
|
|
91
|
+
* The status of the session
|
|
92
|
+
*/
|
|
93
|
+
status?: string;
|
|
94
|
+
}
|
|
95
|
+
export interface SessionRetrieveResponse {
|
|
96
|
+
/**
|
|
97
|
+
* Identifier field
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* The ID of the agent to run
|
|
102
|
+
*/
|
|
103
|
+
agent_id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Record creation date
|
|
106
|
+
*/
|
|
107
|
+
created_at: string;
|
|
108
|
+
/**
|
|
109
|
+
* The prompt to send to the agent
|
|
110
|
+
*/
|
|
111
|
+
prompt: string;
|
|
112
|
+
/**
|
|
113
|
+
* Record update date
|
|
114
|
+
*/
|
|
115
|
+
updated_at: string;
|
|
116
|
+
/**
|
|
117
|
+
* The session error message
|
|
118
|
+
*/
|
|
119
|
+
error_message?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The output of the session
|
|
122
|
+
*/
|
|
123
|
+
output?: unknown;
|
|
124
|
+
/**
|
|
125
|
+
* The status of the session
|
|
126
|
+
*/
|
|
127
|
+
status?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface SessionCreateParams {
|
|
130
|
+
/**
|
|
131
|
+
* The ID of the agent to run
|
|
132
|
+
*/
|
|
133
|
+
agent_id: string;
|
|
134
|
+
/**
|
|
135
|
+
* The prompt to send to the agent
|
|
136
|
+
*/
|
|
137
|
+
prompt: string;
|
|
138
|
+
}
|
|
139
|
+
export interface SessionListParams {
|
|
140
|
+
/**
|
|
141
|
+
* The cursor from a previous next_link.
|
|
142
|
+
*/
|
|
143
|
+
cursor?: string;
|
|
144
|
+
/**
|
|
145
|
+
* The maximum number of results to return.
|
|
146
|
+
*/
|
|
147
|
+
limit?: number;
|
|
148
|
+
}
|
|
149
|
+
export declare namespace Sessions {
|
|
150
|
+
export { type SessionCreateResponse as SessionCreateResponse, type SessionListResponse as SessionListResponse, type SessionRetrieveResponse as SessionRetrieveResponse, type SessionListResponsesPageCursorURL as SessionListResponsesPageCursorURL, type SessionCreateParams as SessionCreateParams, type SessionListParams as SessionListParams, };
|
|
151
|
+
export { Events as Events, type EventRetrieveResponse as EventRetrieveResponse, type EventRetrieveParams as EventRetrieveParams, };
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=sessions.d.mts.map
|
|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,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as EventsAPI from "./events.js";
|
|
3
|
+
import { EventRetrieveParams, EventRetrieveResponse, Events } from "./events.js";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { PageCursorURL, PagePromise } from "../../../core/pagination.js";
|
|
6
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
7
|
+
/**
|
|
8
|
+
* Agents defined by the company
|
|
9
|
+
*/
|
|
10
|
+
export declare class Sessions extends APIResource {
|
|
11
|
+
events: EventsAPI.Events;
|
|
12
|
+
/**
|
|
13
|
+
* Start an agent session with a prompt.
|
|
14
|
+
*/
|
|
15
|
+
create(body: SessionCreateParams, options?: RequestOptions): APIPromise<SessionCreateResponse>;
|
|
16
|
+
/**
|
|
17
|
+
* A list of sessions for an agent.
|
|
18
|
+
*/
|
|
19
|
+
list(agentID: string, query?: SessionListParams | null | undefined, options?: RequestOptions): PagePromise<SessionListResponsesPageCursorURL, SessionListResponse>;
|
|
20
|
+
/**
|
|
21
|
+
* Retrieve an agent session, including its terminal output or error when
|
|
22
|
+
* available.
|
|
23
|
+
*/
|
|
24
|
+
retrieve(sessionID: string, options?: RequestOptions): APIPromise<SessionRetrieveResponse>;
|
|
25
|
+
}
|
|
26
|
+
export type SessionListResponsesPageCursorURL = PageCursorURL<SessionListResponse>;
|
|
27
|
+
export interface SessionCreateResponse {
|
|
28
|
+
/**
|
|
29
|
+
* Identifier field
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* The ID of the agent to run
|
|
34
|
+
*/
|
|
35
|
+
agent_id: string;
|
|
36
|
+
/**
|
|
37
|
+
* Record creation date
|
|
38
|
+
*/
|
|
39
|
+
created_at: string;
|
|
40
|
+
/**
|
|
41
|
+
* The prompt to send to the agent
|
|
42
|
+
*/
|
|
43
|
+
prompt: string;
|
|
44
|
+
/**
|
|
45
|
+
* Record update date
|
|
46
|
+
*/
|
|
47
|
+
updated_at: string;
|
|
48
|
+
/**
|
|
49
|
+
* The session error message
|
|
50
|
+
*/
|
|
51
|
+
error_message?: string;
|
|
52
|
+
/**
|
|
53
|
+
* The output of the session
|
|
54
|
+
*/
|
|
55
|
+
output?: unknown;
|
|
56
|
+
/**
|
|
57
|
+
* The status of the session
|
|
58
|
+
*/
|
|
59
|
+
status?: string;
|
|
60
|
+
}
|
|
61
|
+
export interface SessionListResponse {
|
|
62
|
+
/**
|
|
63
|
+
* Identifier field
|
|
64
|
+
*/
|
|
65
|
+
id: string;
|
|
66
|
+
/**
|
|
67
|
+
* The ID of the agent to run
|
|
68
|
+
*/
|
|
69
|
+
agent_id: string;
|
|
70
|
+
/**
|
|
71
|
+
* Record creation date
|
|
72
|
+
*/
|
|
73
|
+
created_at: string;
|
|
74
|
+
/**
|
|
75
|
+
* The prompt to send to the agent
|
|
76
|
+
*/
|
|
77
|
+
prompt: string;
|
|
78
|
+
/**
|
|
79
|
+
* Record update date
|
|
80
|
+
*/
|
|
81
|
+
updated_at: string;
|
|
82
|
+
/**
|
|
83
|
+
* The session error message
|
|
84
|
+
*/
|
|
85
|
+
error_message?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The output of the session
|
|
88
|
+
*/
|
|
89
|
+
output?: unknown;
|
|
90
|
+
/**
|
|
91
|
+
* The status of the session
|
|
92
|
+
*/
|
|
93
|
+
status?: string;
|
|
94
|
+
}
|
|
95
|
+
export interface SessionRetrieveResponse {
|
|
96
|
+
/**
|
|
97
|
+
* Identifier field
|
|
98
|
+
*/
|
|
99
|
+
id: string;
|
|
100
|
+
/**
|
|
101
|
+
* The ID of the agent to run
|
|
102
|
+
*/
|
|
103
|
+
agent_id: string;
|
|
104
|
+
/**
|
|
105
|
+
* Record creation date
|
|
106
|
+
*/
|
|
107
|
+
created_at: string;
|
|
108
|
+
/**
|
|
109
|
+
* The prompt to send to the agent
|
|
110
|
+
*/
|
|
111
|
+
prompt: string;
|
|
112
|
+
/**
|
|
113
|
+
* Record update date
|
|
114
|
+
*/
|
|
115
|
+
updated_at: string;
|
|
116
|
+
/**
|
|
117
|
+
* The session error message
|
|
118
|
+
*/
|
|
119
|
+
error_message?: string;
|
|
120
|
+
/**
|
|
121
|
+
* The output of the session
|
|
122
|
+
*/
|
|
123
|
+
output?: unknown;
|
|
124
|
+
/**
|
|
125
|
+
* The status of the session
|
|
126
|
+
*/
|
|
127
|
+
status?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface SessionCreateParams {
|
|
130
|
+
/**
|
|
131
|
+
* The ID of the agent to run
|
|
132
|
+
*/
|
|
133
|
+
agent_id: string;
|
|
134
|
+
/**
|
|
135
|
+
* The prompt to send to the agent
|
|
136
|
+
*/
|
|
137
|
+
prompt: string;
|
|
138
|
+
}
|
|
139
|
+
export interface SessionListParams {
|
|
140
|
+
/**
|
|
141
|
+
* The cursor from a previous next_link.
|
|
142
|
+
*/
|
|
143
|
+
cursor?: string;
|
|
144
|
+
/**
|
|
145
|
+
* The maximum number of results to return.
|
|
146
|
+
*/
|
|
147
|
+
limit?: number;
|
|
148
|
+
}
|
|
149
|
+
export declare namespace Sessions {
|
|
150
|
+
export { type SessionCreateResponse as SessionCreateResponse, type SessionListResponse as SessionListResponse, type SessionRetrieveResponse as SessionRetrieveResponse, type SessionListResponsesPageCursorURL as SessionListResponsesPageCursorURL, type SessionCreateParams as SessionCreateParams, type SessionListParams as SessionListParams, };
|
|
151
|
+
export { Events as Events, type EventRetrieveResponse as EventRetrieveResponse, type EventRetrieveParams as EventRetrieveParams, };
|
|
152
|
+
}
|
|
153
|
+
//# sourceMappingURL=sessions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../../src/resources/agents/sessions/sessions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,EAAE,oBAAiB;AAC9E,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,oCAAiC;AACtE,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE;;GAEG;AACH,qBAAa,QAAS,SAAQ,WAAW;IACvC,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAE9D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,iBAAiB,GAAG,IAAI,GAAG,SAAc,EAChD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,iCAAiC,EAAE,mBAAmB,CAAC;IAOtE;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;CAG3F;AAED,MAAM,MAAM,iCAAiC,GAAG,aAAa,CAAC,mBAAmB,CAAC,CAAC;AAEnF,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IAEX;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IAEjB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IAEnB;;OAEG;I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,EAAE,MAAM,CAAC;CAChB;AAID,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,iCAAiC,IAAI,iCAAiC,EAC3E,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Sessions = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const EventsAPI = tslib_1.__importStar(require("./events.js"));
|
|
8
|
+
const events_1 = require("./events.js");
|
|
9
|
+
const pagination_1 = require("../../../core/pagination.js");
|
|
10
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
11
|
+
/**
|
|
12
|
+
* Agents defined by the company
|
|
13
|
+
*/
|
|
14
|
+
class Sessions extends resource_1.APIResource {
|
|
15
|
+
constructor() {
|
|
16
|
+
super(...arguments);
|
|
17
|
+
this.events = new EventsAPI.Events(this._client);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Start an agent session with a prompt.
|
|
21
|
+
*/
|
|
22
|
+
create(body, options) {
|
|
23
|
+
return this._client.post('/agents/sessions/', { body, ...options });
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* A list of sessions for an agent.
|
|
27
|
+
*/
|
|
28
|
+
list(agentID, query = {}, options) {
|
|
29
|
+
return this._client.getAPIList((0, path_1.path) `/agents/${agentID}/sessions/`, (pagination_1.PageCursorURL), {
|
|
30
|
+
query,
|
|
31
|
+
...options,
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve an agent session, including its terminal output or error when
|
|
36
|
+
* available.
|
|
37
|
+
*/
|
|
38
|
+
retrieve(sessionID, options) {
|
|
39
|
+
return this._client.get((0, path_1.path) `/agents/sessions/${sessionID}/`, options);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
exports.Sessions = Sessions;
|
|
43
|
+
Sessions.Events = events_1.Events;
|
|
44
|
+
//# sourceMappingURL=sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../../src/resources/agents/sessions/sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAA8E;AAE9E,4DAAsE;AAEtE,0DAAoD;AAEpD;;GAEG;AACH,MAAa,QAAS,SAAQ,sBAAW;IAAzC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8BhE,CAAC;IA5BC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,YAAY,EAAE,CAAA,0BAAkC,CAAA,EAAE;YACrG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oBAAoB,SAAS,GAAG,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AA/BD,4BA+BC;AA0JD,QAAQ,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as EventsAPI from "./events.mjs";
|
|
4
|
+
import { Events } from "./events.mjs";
|
|
5
|
+
import { PageCursorURL } from "../../../core/pagination.mjs";
|
|
6
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
7
|
+
/**
|
|
8
|
+
* Agents defined by the company
|
|
9
|
+
*/
|
|
10
|
+
export class Sessions extends APIResource {
|
|
11
|
+
constructor() {
|
|
12
|
+
super(...arguments);
|
|
13
|
+
this.events = new EventsAPI.Events(this._client);
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Start an agent session with a prompt.
|
|
17
|
+
*/
|
|
18
|
+
create(body, options) {
|
|
19
|
+
return this._client.post('/agents/sessions/', { body, ...options });
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* A list of sessions for an agent.
|
|
23
|
+
*/
|
|
24
|
+
list(agentID, query = {}, options) {
|
|
25
|
+
return this._client.getAPIList(path `/agents/${agentID}/sessions/`, (PageCursorURL), {
|
|
26
|
+
query,
|
|
27
|
+
...options,
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Retrieve an agent session, including its terminal output or error when
|
|
32
|
+
* available.
|
|
33
|
+
*/
|
|
34
|
+
retrieve(sessionID, options) {
|
|
35
|
+
return this._client.get(path `/agents/sessions/${sessionID}/`, options);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
Sessions.Events = Events;
|
|
39
|
+
//# sourceMappingURL=sessions.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.mjs","sourceRoot":"","sources":["../../../src/resources/agents/sessions/sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAA8C,MAAM,EAAE,qBAAiB;AAE9E,OAAO,EAAE,aAAa,EAAe,qCAAiC;AAEtE,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD;;GAEG;AACH,MAAM,OAAO,QAAS,SAAQ,WAAW;IAAzC;;QACE,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8BhE,CAAC;IA5BC;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA8C,EAAE,EAChD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,WAAW,OAAO,YAAY,EAAE,CAAA,aAAkC,CAAA,EAAE;YACrG,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oBAAoB,SAAS,GAAG,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CACF;AA0JD,QAAQ,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.d.mts","sourceRoot":"","sources":["../../src/resources/agents/sessions.ts"],"names":[],"mappings":"AAEA,qCAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.d.ts","sourceRoot":"","sources":["../../src/resources/agents/sessions.ts"],"names":[],"mappings":"AAEA,oCAAiC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./sessions/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=sessions.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.js","sourceRoot":"","sources":["../../src/resources/agents/sessions.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,8DAAiC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sessions.mjs","sourceRoot":"","sources":["../../src/resources/agents/sessions.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,qCAAiC"}
|