@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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AdminTask = exports.parentalTopUpPolicy = exports.percentOfPay = exports.fixedAmount = exports.hours = exports.days = exports.weeks = exports.createCompanyLeaveProgramContext = exports.defineCompanyLeaveProgram = void 0;
|
|
4
|
+
var define_company_leave_program_1 = require("./leave-programs/define-company-leave-program.js");
|
|
5
|
+
Object.defineProperty(exports, "defineCompanyLeaveProgram", { enumerable: true, get: function () { return define_company_leave_program_1.defineCompanyLeaveProgram; } });
|
|
6
|
+
var context_1 = require("./leave-programs/context.js");
|
|
7
|
+
Object.defineProperty(exports, "createCompanyLeaveProgramContext", { enumerable: true, get: function () { return context_1.createCompanyLeaveProgramContext; } });
|
|
8
|
+
var duration_1 = require("./leave-programs/duration.js");
|
|
9
|
+
Object.defineProperty(exports, "weeks", { enumerable: true, get: function () { return duration_1.weeks; } });
|
|
10
|
+
Object.defineProperty(exports, "days", { enumerable: true, get: function () { return duration_1.days; } });
|
|
11
|
+
Object.defineProperty(exports, "hours", { enumerable: true, get: function () { return duration_1.hours; } });
|
|
12
|
+
var pay_1 = require("./leave-programs/pay.js");
|
|
13
|
+
Object.defineProperty(exports, "fixedAmount", { enumerable: true, get: function () { return pay_1.fixedAmount; } });
|
|
14
|
+
Object.defineProperty(exports, "percentOfPay", { enumerable: true, get: function () { return pay_1.percentOfPay; } });
|
|
15
|
+
var parental_top_up_policy_1 = require("./leave-programs/recipes/parental-top-up-policy.js");
|
|
16
|
+
Object.defineProperty(exports, "parentalTopUpPolicy", { enumerable: true, get: function () { return parental_top_up_policy_1.parentalTopUpPolicy; } });
|
|
17
|
+
var types_1 = require("./leave-programs/types.js");
|
|
18
|
+
Object.defineProperty(exports, "AdminTask", { enumerable: true, get: function () { return types_1.AdminTask; } });
|
|
19
|
+
//# sourceMappingURL=leave-programs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leave-programs.js","sourceRoot":"","sources":["../src/lib/leave-programs.ts"],"names":[],"mappings":";;;AAAA,iGAA0F;AAAjF,yIAAA,yBAAyB,OAAA;AAClC,uDAA4E;AAAnE,2HAAA,gCAAgC,OAAA;AACzC,yDAA+D;AAAtD,iGAAA,KAAK,OAAA;AAAE,gGAAA,IAAI,OAAA;AAAE,iGAAA,KAAK,OAAA;AAC3B,+CAAiE;AAAxD,kGAAA,WAAW,OAAA;AAAE,mGAAA,YAAY,OAAA;AAClC,6FAGyD;AAFvD,6HAAA,mBAAmB,OAAA;AAGrB,mDA0BgC;AAzB9B,kGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { defineCompanyLeaveProgram } from "./leave-programs/define-company-leave-program.mjs";
|
|
2
|
+
export { createCompanyLeaveProgramContext } from "./leave-programs/context.mjs";
|
|
3
|
+
export { weeks, days, hours } from "./leave-programs/duration.mjs";
|
|
4
|
+
export { fixedAmount, percentOfPay } from "./leave-programs/pay.mjs";
|
|
5
|
+
export { parentalTopUpPolicy, } from "./leave-programs/recipes/parental-top-up-policy.mjs";
|
|
6
|
+
export { AdminTask, } from "./leave-programs/types.mjs";
|
|
7
|
+
//# sourceMappingURL=leave-programs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"leave-programs.mjs","sourceRoot":"","sources":["../src/lib/leave-programs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,0DAAsD;AAC1F,OAAO,EAAE,gCAAgC,EAAE,qCAAiC;AAC5E,OAAO,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,sCAAkC;AAC/D,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,iCAA6B;AACjE,OAAO,EACL,mBAAmB,GAEpB,4DAAwD;AACzD,OAAO,EACL,SAAS,GAyBV,mCAA+B"}
|
package/package.json
CHANGED
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as DeploymentsAPI from "./deployments.mjs";
|
|
3
|
+
import { DeploymentCreateParams, DeploymentCreateResponse, DeploymentListParams, DeploymentListResponse, DeploymentListResponsesPageCursorURL, DeploymentRetrieveResponse, Deployments } from "./deployments.mjs";
|
|
4
|
+
import * as SourceRevisionsAPI from "./source-revisions.mjs";
|
|
5
|
+
import { SourceRevisionCreateParams, SourceRevisionCreateResponse, SourceRevisionListParams, SourceRevisionListResponse, SourceRevisionListResponsesPageCursorURL, SourceRevisionRetrieveResponse, SourceRevisions } from "./source-revisions.mjs";
|
|
6
|
+
import * as SessionsAPI from "./sessions/sessions.mjs";
|
|
7
|
+
import { SessionCreateParams, SessionCreateResponse, SessionListParams, SessionListResponse, SessionListResponsesPageCursorURL, SessionRetrieveResponse, Sessions } from "./sessions/sessions.mjs";
|
|
8
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
9
|
+
import { PageCursorURL, PagePromise } from "../../core/pagination.mjs";
|
|
10
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
11
|
+
/**
|
|
12
|
+
* Agents defined by the company
|
|
13
|
+
*/
|
|
14
|
+
export declare class Agents extends APIResource {
|
|
15
|
+
sourceRevisions: SourceRevisionsAPI.SourceRevisions;
|
|
16
|
+
deployments: DeploymentsAPI.Deployments;
|
|
17
|
+
sessions: SessionsAPI.Sessions;
|
|
18
|
+
/**
|
|
19
|
+
* A list of agents.
|
|
20
|
+
*/
|
|
21
|
+
list(query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentListResponsesPageCursorURL, AgentListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create a new agent.
|
|
24
|
+
*/
|
|
25
|
+
create(body: AgentCreateParams, options?: RequestOptions): APIPromise<AgentCreateResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve an agent.
|
|
28
|
+
*/
|
|
29
|
+
retrieve(agentID: string, options?: RequestOptions): APIPromise<AgentRetrieveResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Update an agent's name or description.
|
|
32
|
+
*/
|
|
33
|
+
update(agentID: string, body?: AgentUpdateParams | null | undefined, options?: RequestOptions): APIPromise<AgentUpdateResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Delete an agent.
|
|
36
|
+
*/
|
|
37
|
+
delete(agentID: string, options?: RequestOptions): APIPromise<void>;
|
|
38
|
+
}
|
|
39
|
+
export type AgentListResponsesPageCursorURL = PageCursorURL<AgentListResponse>;
|
|
40
|
+
export interface AgentListResponse {
|
|
41
|
+
/**
|
|
42
|
+
* Identifier field
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
/**
|
|
46
|
+
* The API name of the agent
|
|
47
|
+
*/
|
|
48
|
+
api_name: string;
|
|
49
|
+
/**
|
|
50
|
+
* Record creation date
|
|
51
|
+
*/
|
|
52
|
+
created_at: string;
|
|
53
|
+
/**
|
|
54
|
+
* The display name of the agent
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
/**
|
|
58
|
+
* Record update date
|
|
59
|
+
*/
|
|
60
|
+
updated_at: string;
|
|
61
|
+
/**
|
|
62
|
+
* The description of the agent
|
|
63
|
+
*/
|
|
64
|
+
description?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the agent is used for evaluations
|
|
67
|
+
*/
|
|
68
|
+
is_for_evals?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface AgentCreateResponse {
|
|
71
|
+
/**
|
|
72
|
+
* Identifier field
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
/**
|
|
76
|
+
* The API name of the agent
|
|
77
|
+
*/
|
|
78
|
+
api_name: string;
|
|
79
|
+
/**
|
|
80
|
+
* Record creation date
|
|
81
|
+
*/
|
|
82
|
+
created_at: string;
|
|
83
|
+
/**
|
|
84
|
+
* The display name of the agent
|
|
85
|
+
*/
|
|
86
|
+
name: string;
|
|
87
|
+
/**
|
|
88
|
+
* Record update date
|
|
89
|
+
*/
|
|
90
|
+
updated_at: string;
|
|
91
|
+
/**
|
|
92
|
+
* The description of the agent
|
|
93
|
+
*/
|
|
94
|
+
description?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the agent is used for evaluations
|
|
97
|
+
*/
|
|
98
|
+
is_for_evals?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface AgentRetrieveResponse {
|
|
101
|
+
/**
|
|
102
|
+
* Identifier field
|
|
103
|
+
*/
|
|
104
|
+
id: string;
|
|
105
|
+
/**
|
|
106
|
+
* The API name of the agent
|
|
107
|
+
*/
|
|
108
|
+
api_name: string;
|
|
109
|
+
/**
|
|
110
|
+
* Record creation date
|
|
111
|
+
*/
|
|
112
|
+
created_at: string;
|
|
113
|
+
/**
|
|
114
|
+
* The display name of the agent
|
|
115
|
+
*/
|
|
116
|
+
name: string;
|
|
117
|
+
/**
|
|
118
|
+
* Record update date
|
|
119
|
+
*/
|
|
120
|
+
updated_at: string;
|
|
121
|
+
/**
|
|
122
|
+
* The description of the agent
|
|
123
|
+
*/
|
|
124
|
+
description?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Whether the agent is used for evaluations
|
|
127
|
+
*/
|
|
128
|
+
is_for_evals?: boolean;
|
|
129
|
+
}
|
|
130
|
+
export interface AgentUpdateResponse {
|
|
131
|
+
/**
|
|
132
|
+
* Identifier field
|
|
133
|
+
*/
|
|
134
|
+
id: string;
|
|
135
|
+
/**
|
|
136
|
+
* The API name of the agent
|
|
137
|
+
*/
|
|
138
|
+
api_name: string;
|
|
139
|
+
/**
|
|
140
|
+
* Record creation date
|
|
141
|
+
*/
|
|
142
|
+
created_at: string;
|
|
143
|
+
/**
|
|
144
|
+
* The display name of the agent
|
|
145
|
+
*/
|
|
146
|
+
name: string;
|
|
147
|
+
/**
|
|
148
|
+
* Record update date
|
|
149
|
+
*/
|
|
150
|
+
updated_at: string;
|
|
151
|
+
/**
|
|
152
|
+
* The description of the agent
|
|
153
|
+
*/
|
|
154
|
+
description?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the agent is used for evaluations
|
|
157
|
+
*/
|
|
158
|
+
is_for_evals?: boolean;
|
|
159
|
+
}
|
|
160
|
+
export interface AgentListParams {
|
|
161
|
+
/**
|
|
162
|
+
* The cursor from a previous next_link.
|
|
163
|
+
*/
|
|
164
|
+
cursor?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Filter by api_name or is_for_evals using OData syntax.
|
|
167
|
+
*/
|
|
168
|
+
filter?: string;
|
|
169
|
+
/**
|
|
170
|
+
* The maximum number of results to return.
|
|
171
|
+
*/
|
|
172
|
+
limit?: number;
|
|
173
|
+
}
|
|
174
|
+
export interface AgentCreateParams {
|
|
175
|
+
/**
|
|
176
|
+
* The API name of the agent
|
|
177
|
+
*/
|
|
178
|
+
api_name: string;
|
|
179
|
+
/**
|
|
180
|
+
* The display name of the agent
|
|
181
|
+
*/
|
|
182
|
+
name: string;
|
|
183
|
+
/**
|
|
184
|
+
* The description of the agent
|
|
185
|
+
*/
|
|
186
|
+
description?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Whether the agent is used for evaluations
|
|
189
|
+
*/
|
|
190
|
+
is_for_evals?: boolean;
|
|
191
|
+
}
|
|
192
|
+
export interface AgentUpdateParams {
|
|
193
|
+
/**
|
|
194
|
+
* The description of the agent
|
|
195
|
+
*/
|
|
196
|
+
description?: string;
|
|
197
|
+
/**
|
|
198
|
+
* The display name of the agent
|
|
199
|
+
*/
|
|
200
|
+
name?: string;
|
|
201
|
+
}
|
|
202
|
+
export declare namespace Agents {
|
|
203
|
+
export { type AgentListResponse as AgentListResponse, type AgentCreateResponse as AgentCreateResponse, type AgentRetrieveResponse as AgentRetrieveResponse, type AgentUpdateResponse as AgentUpdateResponse, type AgentListResponsesPageCursorURL as AgentListResponsesPageCursorURL, type AgentListParams as AgentListParams, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, };
|
|
204
|
+
export { SourceRevisions as SourceRevisions, type SourceRevisionListResponse as SourceRevisionListResponse, type SourceRevisionCreateResponse as SourceRevisionCreateResponse, type SourceRevisionRetrieveResponse as SourceRevisionRetrieveResponse, type SourceRevisionListResponsesPageCursorURL as SourceRevisionListResponsesPageCursorURL, type SourceRevisionListParams as SourceRevisionListParams, type SourceRevisionCreateParams as SourceRevisionCreateParams, };
|
|
205
|
+
export { Deployments as Deployments, type DeploymentListResponse as DeploymentListResponse, type DeploymentCreateResponse as DeploymentCreateResponse, type DeploymentRetrieveResponse as DeploymentRetrieveResponse, type DeploymentListResponsesPageCursorURL as DeploymentListResponsesPageCursorURL, type DeploymentListParams as DeploymentListParams, type DeploymentCreateParams as DeploymentCreateParams, };
|
|
206
|
+
export { Sessions as Sessions, type SessionCreateResponse as SessionCreateResponse, type SessionListResponse as SessionListResponse, type SessionRetrieveResponse as SessionRetrieveResponse, type SessionListResponsesPageCursorURL as SessionListResponsesPageCursorURL, type SessionCreateParams as SessionCreateParams, type SessionListParams as SessionListParams, };
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=agents.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.mts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,cAAc,0BAAsB;AAChD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,EACxB,oBAAoB,EACpB,sBAAsB,EACtB,oCAAoC,EACpC,0BAA0B,EAC1B,WAAW,EACZ,0BAAsB;AACvB,OAAO,KAAK,kBAAkB,+BAA2B;AACzD,OAAO,EACL,0BAA0B,EAC1B,4BAA4B,EAC5B,wBAAwB,EACxB,0BAA0B,EAC1B,wCAAwC,EACxC,8BAA8B,EAC9B,eAAe,EAChB,+BAA2B;AAC5B,OAAO,KAAK,WAAW,gCAA4B;AACnD,OAAO,EACL,mBAAmB,EACnB,qBAAqB,EACrB,iBAAiB,EACjB,mBAAmB,EACnB,iCAAiC,EACjC,uBAAuB,EACvB,QAAQ,EACT,gCAA4B;AAC7B,OAAO,EAAE,UAAU,EAAE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AI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,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;CACH"}
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as DeploymentsAPI from "./deployments.js";
|
|
3
|
+
import { DeploymentCreateParams, DeploymentCreateResponse, DeploymentListParams, DeploymentListResponse, DeploymentListResponsesPageCursorURL, DeploymentRetrieveResponse, Deployments } from "./deployments.js";
|
|
4
|
+
import * as SourceRevisionsAPI from "./source-revisions.js";
|
|
5
|
+
import { SourceRevisionCreateParams, SourceRevisionCreateResponse, SourceRevisionListParams, SourceRevisionListResponse, SourceRevisionListResponsesPageCursorURL, SourceRevisionRetrieveResponse, SourceRevisions } from "./source-revisions.js";
|
|
6
|
+
import * as SessionsAPI from "./sessions/sessions.js";
|
|
7
|
+
import { SessionCreateParams, SessionCreateResponse, SessionListParams, SessionListResponse, SessionListResponsesPageCursorURL, SessionRetrieveResponse, Sessions } from "./sessions/sessions.js";
|
|
8
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
9
|
+
import { PageCursorURL, PagePromise } from "../../core/pagination.js";
|
|
10
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
11
|
+
/**
|
|
12
|
+
* Agents defined by the company
|
|
13
|
+
*/
|
|
14
|
+
export declare class Agents extends APIResource {
|
|
15
|
+
sourceRevisions: SourceRevisionsAPI.SourceRevisions;
|
|
16
|
+
deployments: DeploymentsAPI.Deployments;
|
|
17
|
+
sessions: SessionsAPI.Sessions;
|
|
18
|
+
/**
|
|
19
|
+
* A list of agents.
|
|
20
|
+
*/
|
|
21
|
+
list(query?: AgentListParams | null | undefined, options?: RequestOptions): PagePromise<AgentListResponsesPageCursorURL, AgentListResponse>;
|
|
22
|
+
/**
|
|
23
|
+
* Create a new agent.
|
|
24
|
+
*/
|
|
25
|
+
create(body: AgentCreateParams, options?: RequestOptions): APIPromise<AgentCreateResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Retrieve an agent.
|
|
28
|
+
*/
|
|
29
|
+
retrieve(agentID: string, options?: RequestOptions): APIPromise<AgentRetrieveResponse>;
|
|
30
|
+
/**
|
|
31
|
+
* Update an agent's name or description.
|
|
32
|
+
*/
|
|
33
|
+
update(agentID: string, body?: AgentUpdateParams | null | undefined, options?: RequestOptions): APIPromise<AgentUpdateResponse>;
|
|
34
|
+
/**
|
|
35
|
+
* Delete an agent.
|
|
36
|
+
*/
|
|
37
|
+
delete(agentID: string, options?: RequestOptions): APIPromise<void>;
|
|
38
|
+
}
|
|
39
|
+
export type AgentListResponsesPageCursorURL = PageCursorURL<AgentListResponse>;
|
|
40
|
+
export interface AgentListResponse {
|
|
41
|
+
/**
|
|
42
|
+
* Identifier field
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
/**
|
|
46
|
+
* The API name of the agent
|
|
47
|
+
*/
|
|
48
|
+
api_name: string;
|
|
49
|
+
/**
|
|
50
|
+
* Record creation date
|
|
51
|
+
*/
|
|
52
|
+
created_at: string;
|
|
53
|
+
/**
|
|
54
|
+
* The display name of the agent
|
|
55
|
+
*/
|
|
56
|
+
name: string;
|
|
57
|
+
/**
|
|
58
|
+
* Record update date
|
|
59
|
+
*/
|
|
60
|
+
updated_at: string;
|
|
61
|
+
/**
|
|
62
|
+
* The description of the agent
|
|
63
|
+
*/
|
|
64
|
+
description?: string;
|
|
65
|
+
/**
|
|
66
|
+
* Whether the agent is used for evaluations
|
|
67
|
+
*/
|
|
68
|
+
is_for_evals?: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface AgentCreateResponse {
|
|
71
|
+
/**
|
|
72
|
+
* Identifier field
|
|
73
|
+
*/
|
|
74
|
+
id: string;
|
|
75
|
+
/**
|
|
76
|
+
* The API name of the agent
|
|
77
|
+
*/
|
|
78
|
+
api_name: string;
|
|
79
|
+
/**
|
|
80
|
+
* Record creation date
|
|
81
|
+
*/
|
|
82
|
+
created_at: string;
|
|
83
|
+
/**
|
|
84
|
+
* The display name of the agent
|
|
85
|
+
*/
|
|
86
|
+
name: string;
|
|
87
|
+
/**
|
|
88
|
+
* Record update date
|
|
89
|
+
*/
|
|
90
|
+
updated_at: string;
|
|
91
|
+
/**
|
|
92
|
+
* The description of the agent
|
|
93
|
+
*/
|
|
94
|
+
description?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Whether the agent is used for evaluations
|
|
97
|
+
*/
|
|
98
|
+
is_for_evals?: boolean;
|
|
99
|
+
}
|
|
100
|
+
export interface AgentRetrieveResponse {
|
|
101
|
+
/**
|
|
102
|
+
* Identifier field
|
|
103
|
+
*/
|
|
104
|
+
id: string;
|
|
105
|
+
/**
|
|
106
|
+
* The API name of the agent
|
|
107
|
+
*/
|
|
108
|
+
api_name: string;
|
|
109
|
+
/**
|
|
110
|
+
* Record creation date
|
|
111
|
+
*/
|
|
112
|
+
created_at: string;
|
|
113
|
+
/**
|
|
114
|
+
* The display name of the agent
|
|
115
|
+
*/
|
|
116
|
+
name: string;
|
|
117
|
+
/**
|
|
118
|
+
* Record update date
|
|
119
|
+
*/
|
|
120
|
+
updated_at: string;
|
|
121
|
+
/**
|
|
122
|
+
* The description of the agent
|
|
123
|
+
*/
|
|
124
|
+
description?: string;
|
|
125
|
+
/**
|
|
126
|
+
* Whether the agent is used for evaluations
|
|
127
|
+
*/
|
|
128
|
+
is_for_evals?: boolean;
|
|
129
|
+
}
|
|
130
|
+
export interface AgentUpdateResponse {
|
|
131
|
+
/**
|
|
132
|
+
* Identifier field
|
|
133
|
+
*/
|
|
134
|
+
id: string;
|
|
135
|
+
/**
|
|
136
|
+
* The API name of the agent
|
|
137
|
+
*/
|
|
138
|
+
api_name: string;
|
|
139
|
+
/**
|
|
140
|
+
* Record creation date
|
|
141
|
+
*/
|
|
142
|
+
created_at: string;
|
|
143
|
+
/**
|
|
144
|
+
* The display name of the agent
|
|
145
|
+
*/
|
|
146
|
+
name: string;
|
|
147
|
+
/**
|
|
148
|
+
* Record update date
|
|
149
|
+
*/
|
|
150
|
+
updated_at: string;
|
|
151
|
+
/**
|
|
152
|
+
* The description of the agent
|
|
153
|
+
*/
|
|
154
|
+
description?: string;
|
|
155
|
+
/**
|
|
156
|
+
* Whether the agent is used for evaluations
|
|
157
|
+
*/
|
|
158
|
+
is_for_evals?: boolean;
|
|
159
|
+
}
|
|
160
|
+
export interface AgentListParams {
|
|
161
|
+
/**
|
|
162
|
+
* The cursor from a previous next_link.
|
|
163
|
+
*/
|
|
164
|
+
cursor?: string;
|
|
165
|
+
/**
|
|
166
|
+
* Filter by api_name or is_for_evals using OData syntax.
|
|
167
|
+
*/
|
|
168
|
+
filter?: string;
|
|
169
|
+
/**
|
|
170
|
+
* The maximum number of results to return.
|
|
171
|
+
*/
|
|
172
|
+
limit?: number;
|
|
173
|
+
}
|
|
174
|
+
export interface AgentCreateParams {
|
|
175
|
+
/**
|
|
176
|
+
* The API name of the agent
|
|
177
|
+
*/
|
|
178
|
+
api_name: string;
|
|
179
|
+
/**
|
|
180
|
+
* The display name of the agent
|
|
181
|
+
*/
|
|
182
|
+
name: string;
|
|
183
|
+
/**
|
|
184
|
+
* The description of the agent
|
|
185
|
+
*/
|
|
186
|
+
description?: string;
|
|
187
|
+
/**
|
|
188
|
+
* Whether the agent is used for evaluations
|
|
189
|
+
*/
|
|
190
|
+
is_for_evals?: boolean;
|
|
191
|
+
}
|
|
192
|
+
export interface AgentUpdateParams {
|
|
193
|
+
/**
|
|
194
|
+
* The description of the agent
|
|
195
|
+
*/
|
|
196
|
+
description?: string;
|
|
197
|
+
/**
|
|
198
|
+
* The display name of the agent
|
|
199
|
+
*/
|
|
200
|
+
name?: string;
|
|
201
|
+
}
|
|
202
|
+
export declare namespace Agents {
|
|
203
|
+
export { type AgentListResponse as AgentListResponse, type AgentCreateResponse as AgentCreateResponse, type AgentRetrieveResponse as AgentRetrieveResponse, type AgentUpdateResponse as AgentUpdateResponse, type AgentListResponsesPageCursorURL as AgentListResponsesPageCursorURL, type AgentListParams as AgentListParams, type AgentCreateParams as AgentCreateParams, type AgentUpdateParams as AgentUpdateParams, };
|
|
204
|
+
export { SourceRevisions as SourceRevisions, type SourceRevisionListResponse as SourceRevisionListResponse, type SourceRevisionCreateResponse as SourceRevisionCreateResponse, type SourceRevisionRetrieveResponse as SourceRevisionRetrieveResponse, type SourceRevisionListResponsesPageCursorURL as SourceRevisionListResponsesPageCursorURL, type SourceRevisionListParams as SourceRevisionListParams, type SourceRevisionCreateParams as SourceRevisionCreateParams, };
|
|
205
|
+
export { Deployments as Deployments, type DeploymentListResponse as DeploymentListResponse, type DeploymentCreateResponse as DeploymentCreateResponse, type DeploymentRetrieveResponse as DeploymentRetrieveResponse, type DeploymentListResponsesPageCursorURL as DeploymentListResponsesPageCursorURL, type DeploymentListParams as DeploymentListParams, type DeploymentCreateParams as DeploymentCreateParams, };
|
|
206
|
+
export { Sessions as Sessions, type SessionCreateResponse as SessionCreateResponse, type SessionListResponse as SessionListResponse, type SessionRetrieveResponse as SessionRetrieveResponse, type SessionListResponsesPageCursorURL as SessionListResponsesPageCursorURL, type SessionCreateParams as SessionCreateParams, type SessionListParams as SessionListParams, };
|
|
207
|
+
}
|
|
208
|
+
//# sourceMappingURL=agents.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.d.ts","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,EACL,sBAAsB,EACtB,wBAAwB,E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IAAI,eAAe,EAClC,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,4BAA4B,IAAI,4BAA4B,EACjE,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,wCAAwC,IAAI,wCAAwC,EACzF,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EACL,WAAW,IAAI,WAAW,EAC1B,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;IAEF,OAAO,EACL,QAAQ,IAAI,QAAQ,EACpB,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;CACH"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.Agents = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const DeploymentsAPI = tslib_1.__importStar(require("./deployments.js"));
|
|
8
|
+
const deployments_1 = require("./deployments.js");
|
|
9
|
+
const SourceRevisionsAPI = tslib_1.__importStar(require("./source-revisions.js"));
|
|
10
|
+
const source_revisions_1 = require("./source-revisions.js");
|
|
11
|
+
const SessionsAPI = tslib_1.__importStar(require("./sessions/sessions.js"));
|
|
12
|
+
const sessions_1 = require("./sessions/sessions.js");
|
|
13
|
+
const pagination_1 = require("../../core/pagination.js");
|
|
14
|
+
const headers_1 = require("../../internal/headers.js");
|
|
15
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
16
|
+
/**
|
|
17
|
+
* Agents defined by the company
|
|
18
|
+
*/
|
|
19
|
+
class Agents extends resource_1.APIResource {
|
|
20
|
+
constructor() {
|
|
21
|
+
super(...arguments);
|
|
22
|
+
this.sourceRevisions = new SourceRevisionsAPI.SourceRevisions(this._client);
|
|
23
|
+
this.deployments = new DeploymentsAPI.Deployments(this._client);
|
|
24
|
+
this.sessions = new SessionsAPI.Sessions(this._client);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* A list of agents.
|
|
28
|
+
*/
|
|
29
|
+
list(query = {}, options) {
|
|
30
|
+
return this._client.getAPIList('/agents/', (pagination_1.PageCursorURL), { query, ...options });
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Create a new agent.
|
|
34
|
+
*/
|
|
35
|
+
create(body, options) {
|
|
36
|
+
return this._client.post('/agents/', { body, ...options });
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* Retrieve an agent.
|
|
40
|
+
*/
|
|
41
|
+
retrieve(agentID, options) {
|
|
42
|
+
return this._client.get((0, path_1.path) `/agents/${agentID}/`, options);
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Update an agent's name or description.
|
|
46
|
+
*/
|
|
47
|
+
update(agentID, body = {}, options) {
|
|
48
|
+
return this._client.patch((0, path_1.path) `/agents/${agentID}/`, { body, ...options });
|
|
49
|
+
}
|
|
50
|
+
/**
|
|
51
|
+
* Delete an agent.
|
|
52
|
+
*/
|
|
53
|
+
delete(agentID, options) {
|
|
54
|
+
return this._client.delete((0, path_1.path) `/agents/${agentID}/`, {
|
|
55
|
+
...options,
|
|
56
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
57
|
+
});
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
exports.Agents = Agents;
|
|
61
|
+
Agents.SourceRevisions = source_revisions_1.SourceRevisions;
|
|
62
|
+
Agents.Deployments = deployments_1.Deployments;
|
|
63
|
+
Agents.Sessions = sessions_1.Sessions;
|
|
64
|
+
//# sourceMappingURL=agents.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"agents.js","sourceRoot":"","sources":["../../src/resources/agents/agents.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,yEAAgD;AAChD,kDAQuB;AACvB,kFAAyD;AACzD,4DAQ4B;AAC5B,4EAAmD;AACnD,qDAQ6B;AAE7B,yDAAmE;AACnE,uDAAsD;AAEtD,uDAAiD;AAEjD;;GAEG;AACH,MAAa,MAAO,SAAQ,sBAAW;IAAvC;;QACE,oBAAe,GAAuC,IAAI,kBAAkB,CAAC,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC3G,gBAAW,GAA+B,IAAI,cAAc,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACvF,aAAQ,GAAyB,IAAI,WAAW,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IA8C1E,CAAC;IA5CC;;OAEG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,UAAU,EAAE,CAAA,0BAAgC,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7D,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,GAAG,EAAE,OAAO,CAAC,CAAC;IAC9D,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,OAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,GAAG,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,GAAG,EAAE;YACpD,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAjDD,wBAiDC;AA2MD,MAAM,CAAC,eAAe,GAAG,kCAAe,CAAC;AACzC,MAAM,CAAC,WAAW,GAAG,yBAAW,CAAC;AACjC,MAAM,CAAC,QAAQ,GAAG,mBAAQ,CAAC"}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as DeploymentsAPI from "./deployments.mjs";
|
|
4
|
+
import { Deployments, } from "./deployments.mjs";
|
|
5
|
+
import * as SourceRevisionsAPI from "./source-revisions.mjs";
|
|
6
|
+
import { SourceRevisions, } from "./source-revisions.mjs";
|
|
7
|
+
import * as SessionsAPI from "./sessions/sessions.mjs";
|
|
8
|
+
import { Sessions, } from "./sessions/sessions.mjs";
|
|
9
|
+
import { PageCursorURL } from "../../core/pagination.mjs";
|
|
10
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
11
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
12
|
+
/**
|
|
13
|
+
* Agents defined by the company
|
|
14
|
+
*/
|
|
15
|
+
export class Agents extends APIResource {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.sourceRevisions = new SourceRevisionsAPI.SourceRevisions(this._client);
|
|
19
|
+
this.deployments = new DeploymentsAPI.Deployments(this._client);
|
|
20
|
+
this.sessions = new SessionsAPI.Sessions(this._client);
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* A list of agents.
|
|
24
|
+
*/
|
|
25
|
+
list(query = {}, options) {
|
|
26
|
+
return this._client.getAPIList('/agents/', (PageCursorURL), { query, ...options });
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Create a new agent.
|
|
30
|
+
*/
|
|
31
|
+
create(body, options) {
|
|
32
|
+
return this._client.post('/agents/', { body, ...options });
|
|
33
|
+
}
|
|
34
|
+
/**
|
|
35
|
+
* Retrieve an agent.
|
|
36
|
+
*/
|
|
37
|
+
retrieve(agentID, options) {
|
|
38
|
+
return this._client.get(path `/agents/${agentID}/`, options);
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Update an agent's name or description.
|
|
42
|
+
*/
|
|
43
|
+
update(agentID, body = {}, options) {
|
|
44
|
+
return this._client.patch(path `/agents/${agentID}/`, { body, ...options });
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Delete an agent.
|
|
48
|
+
*/
|
|
49
|
+
delete(agentID, options) {
|
|
50
|
+
return this._client.delete(path `/agents/${agentID}/`, {
|
|
51
|
+
...options,
|
|
52
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
Agents.SourceRevisions = SourceRevisions;
|
|
57
|
+
Agents.Deployments = Deployments;
|
|
58
|
+
Agents.Sessions = Sessions;
|
|
59
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