@scenario-labs/sdk 3.2.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/client.d.mts +20 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -5
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +42 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +42 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +79 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +75 -0
- package/core/pagination.mjs.map +1 -1
- package/internal/utils/values.d.mts +6 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +6 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +11 -0
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +10 -0
- package/internal/utils/values.mjs.map +1 -1
- package/lib/generate.js +7 -7
- package/lib/generate.js.map +1 -1
- package/lib/generate.mjs +7 -7
- package/lib/generate.mjs.map +1 -1
- package/lib/job.d.mts +1 -1
- package/lib/job.d.mts.map +1 -1
- package/lib/job.d.ts +1 -1
- package/lib/job.d.ts.map +1 -1
- package/lib/job.js +5 -6
- package/lib/job.js.map +1 -1
- package/lib/job.mjs +6 -7
- package/lib/job.mjs.map +1 -1
- package/lib/models.d.mts.map +1 -1
- package/lib/models.d.ts.map +1 -1
- package/lib/models.js +7 -5
- package/lib/models.js.map +1 -1
- package/lib/models.mjs +8 -6
- package/lib/models.mjs.map +1 -1
- package/lib/query.d.mts +21 -0
- package/lib/query.d.mts.map +1 -0
- package/lib/query.d.ts +21 -0
- package/lib/query.d.ts.map +1 -0
- package/lib/query.js +36 -0
- package/lib/query.js.map +1 -0
- package/lib/query.mjs +33 -0
- package/lib/query.mjs.map +1 -0
- package/lib/scenario.d.mts +3 -0
- package/lib/scenario.d.mts.map +1 -1
- package/lib/scenario.d.ts +3 -0
- package/lib/scenario.d.ts.map +1 -1
- package/lib/scenario.js +6 -0
- package/lib/scenario.js.map +1 -1
- package/lib/scenario.mjs +6 -0
- package/lib/scenario.mjs.map +1 -1
- package/lib/scope.d.mts +27 -7
- package/lib/scope.d.mts.map +1 -1
- package/lib/scope.d.ts +27 -7
- package/lib/scope.d.ts.map +1 -1
- package/lib/scope.js +40 -7
- package/lib/scope.js.map +1 -1
- package/lib/scope.mjs +37 -7
- package/lib/scope.mjs.map +1 -1
- package/lib/upload.d.mts +1 -1
- package/lib/upload.d.mts.map +1 -1
- package/lib/upload.d.ts +1 -1
- package/lib/upload.d.ts.map +1 -1
- package/lib/upload.js +6 -7
- package/lib/upload.js.map +1 -1
- package/lib/upload.mjs +7 -8
- package/lib/upload.mjs.map +1 -1
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.js +8 -6
- package/lib/workflow.js.map +1 -1
- package/lib/workflow.mjs +9 -7
- package/lib/workflow.mjs.map +1 -1
- package/lib/workflow_validator.d.mts +5 -0
- package/lib/workflow_validator.d.mts.map +1 -1
- package/lib/workflow_validator.d.ts +5 -0
- package/lib/workflow_validator.d.ts.map +1 -1
- package/lib/workflow_validator.js +113 -0
- package/lib/workflow_validator.js.map +1 -1
- package/lib/workflow_validator.mjs +113 -0
- package/lib/workflow_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +130 -31
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +130 -31
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +34 -11
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +34 -11
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/download.d.mts +24 -5
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts +24 -5
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.js +15 -3
- package/resources/assets/download.js.map +1 -1
- package/resources/assets/download.mjs +15 -3
- package/resources/assets/download.mjs.map +1 -1
- package/resources/collections/assets.d.mts.map +1 -1
- package/resources/collections/assets.d.ts.map +1 -1
- package/resources/collections/assets.js +3 -2
- package/resources/collections/assets.js.map +1 -1
- package/resources/collections/assets.mjs +3 -2
- package/resources/collections/assets.mjs.map +1 -1
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.js +20 -5
- package/resources/collections/collections.js.map +1 -1
- package/resources/collections/collections.mjs +20 -5
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/models.d.mts.map +1 -1
- package/resources/collections/models.d.ts.map +1 -1
- package/resources/collections/models.js +3 -2
- package/resources/collections/models.js.map +1 -1
- package/resources/collections/models.mjs +3 -2
- package/resources/collections/models.mjs.map +1 -1
- package/resources/generate.d.mts +1719 -225
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +1719 -225
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +65 -8
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +65 -8
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts +5 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +176 -74
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +176 -74
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +16 -4
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +16 -4
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +2 -2
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +2 -2
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/description.js +6 -2
- package/resources/models/description.js.map +1 -1
- package/resources/models/description.mjs +6 -2
- package/resources/models/description.mjs.map +1 -1
- package/resources/models/examples.d.mts +120 -48
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +120 -48
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/examples.js +6 -2
- package/resources/models/examples.js.map +1 -1
- package/resources/models/examples.mjs +6 -2
- package/resources/models/examples.mjs.map +1 -1
- package/resources/models/index.d.mts +3 -0
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +3 -0
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js +7 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs +3 -0
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +215 -77
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +215 -77
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +52 -11
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +52 -11
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/presets.d.mts +1016 -0
- package/resources/models/presets.d.mts.map +1 -0
- package/resources/models/presets.d.ts +1016 -0
- package/resources/models/presets.d.ts.map +1 -0
- package/resources/models/presets.js +52 -0
- package/resources/models/presets.js.map +1 -0
- package/resources/models/presets.mjs +48 -0
- package/resources/models/presets.mjs.map +1 -0
- package/resources/models/prompt-guide.d.mts +64 -0
- package/resources/models/prompt-guide.d.mts.map +1 -0
- package/resources/models/prompt-guide.d.ts +64 -0
- package/resources/models/prompt-guide.d.ts.map +1 -0
- package/resources/models/prompt-guide.js +31 -0
- package/resources/models/prompt-guide.js.map +1 -0
- package/resources/models/prompt-guide.mjs +27 -0
- package/resources/models/prompt-guide.mjs.map +1 -0
- package/resources/models/scores.d.mts +278 -0
- package/resources/models/scores.d.mts.map +1 -0
- package/resources/models/scores.d.ts +278 -0
- package/resources/models/scores.d.ts.map +1 -0
- package/resources/models/scores.js +29 -0
- package/resources/models/scores.js.map +1 -0
- package/resources/models/scores.mjs +25 -0
- package/resources/models/scores.mjs.map +1 -0
- package/resources/models/train.d.mts +108 -45
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +108 -45
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +3 -2
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +3 -2
- package/resources/models/train.mjs.map +1 -1
- package/resources/models/training-images.d.mts.map +1 -1
- package/resources/models/training-images.d.ts.map +1 -1
- package/resources/models/training-images.js +5 -4
- package/resources/models/training-images.js.map +1 -1
- package/resources/models/training-images.mjs +5 -4
- package/resources/models/training-images.mjs.map +1 -1
- package/resources/projects/api-keys.d.mts +54 -0
- package/resources/projects/api-keys.d.mts.map +1 -0
- package/resources/projects/api-keys.d.ts +54 -0
- package/resources/projects/api-keys.d.ts.map +1 -0
- package/resources/projects/api-keys.js +23 -0
- package/resources/projects/api-keys.js.map +1 -0
- package/resources/projects/api-keys.mjs +19 -0
- package/resources/projects/api-keys.mjs.map +1 -0
- package/resources/projects/brief.d.mts +149 -0
- package/resources/projects/brief.d.mts.map +1 -0
- package/resources/projects/brief.d.ts +149 -0
- package/resources/projects/brief.d.ts.map +1 -0
- package/resources/projects/brief.js +28 -0
- package/resources/projects/brief.js.map +1 -0
- package/resources/projects/brief.mjs +24 -0
- package/resources/projects/brief.mjs.map +1 -0
- package/resources/projects/index.d.mts +9 -0
- package/resources/projects/index.d.mts.map +1 -0
- package/resources/projects/index.d.ts +9 -0
- package/resources/projects/index.d.ts.map +1 -0
- package/resources/projects/index.js +21 -0
- package/resources/projects/index.js.map +1 -0
- package/resources/projects/index.mjs +10 -0
- package/resources/projects/index.mjs.map +1 -0
- package/resources/projects/instructions.d.mts +102 -0
- package/resources/projects/instructions.d.mts.map +1 -0
- package/resources/projects/instructions.d.ts +102 -0
- package/resources/projects/instructions.d.ts.map +1 -0
- package/resources/projects/instructions.js +24 -0
- package/resources/projects/instructions.js.map +1 -0
- package/resources/projects/instructions.mjs +20 -0
- package/resources/projects/instructions.mjs.map +1 -0
- package/resources/projects/members.d.mts +788 -0
- package/resources/projects/members.d.mts.map +1 -0
- package/resources/projects/members.d.ts +788 -0
- package/resources/projects/members.d.ts.map +1 -0
- package/resources/projects/members.js +30 -0
- package/resources/projects/members.js.map +1 -0
- package/resources/projects/members.mjs +26 -0
- package/resources/projects/members.mjs.map +1 -0
- package/resources/projects/memory.d.mts +102 -0
- package/resources/projects/memory.d.mts.map +1 -0
- package/resources/projects/memory.d.ts +102 -0
- package/resources/projects/memory.d.ts.map +1 -0
- package/resources/projects/memory.js +24 -0
- package/resources/projects/memory.js.map +1 -0
- package/resources/projects/memory.mjs +20 -0
- package/resources/projects/memory.mjs.map +1 -0
- package/resources/projects/projects.d.mts +1129 -0
- package/resources/projects/projects.d.mts.map +1 -0
- package/resources/projects/projects.d.ts +1129 -0
- package/resources/projects/projects.d.ts.map +1 -0
- package/resources/projects/projects.js +79 -0
- package/resources/projects/projects.js.map +1 -0
- package/resources/projects/projects.mjs +74 -0
- package/resources/projects/projects.mjs.map +1 -0
- package/resources/projects/watermark.d.mts +459 -0
- package/resources/projects/watermark.d.mts.map +1 -0
- package/resources/projects/watermark.d.ts +459 -0
- package/resources/projects/watermark.d.ts.map +1 -0
- package/resources/projects/watermark.js +46 -0
- package/resources/projects/watermark.js.map +1 -0
- package/resources/projects/watermark.mjs +42 -0
- package/resources/projects/watermark.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/events.d.mts +87 -0
- package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/events.d.ts +87 -0
- package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/events.js +28 -0
- package/resources/projects/webhook-endpoints/events.js.map +1 -0
- package/resources/projects/webhook-endpoints/events.mjs +24 -0
- package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/index.d.mts +3 -0
- package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/index.d.ts +3 -0
- package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/index.js +9 -0
- package/resources/projects/webhook-endpoints/index.js.map +1 -0
- package/resources/projects/webhook-endpoints/index.mjs +4 -0
- package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
- package/resources/projects/webhook-endpoints.d.mts +2 -0
- package/resources/projects/webhook-endpoints.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints.d.ts +2 -0
- package/resources/projects/webhook-endpoints.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints.js +6 -0
- package/resources/projects/webhook-endpoints.js.map +1 -0
- package/resources/projects/webhook-endpoints.mjs +3 -0
- package/resources/projects/webhook-endpoints.mjs.map +1 -0
- package/resources/projects.d.mts +2 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts +2 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +6 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +3 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/recommendations.d.mts +1107 -0
- package/resources/recommendations.d.mts.map +1 -0
- package/resources/recommendations.d.ts +1107 -0
- package/resources/recommendations.d.ts.map +1 -0
- package/resources/recommendations.js +17 -0
- package/resources/recommendations.js.map +1 -0
- package/resources/recommendations.mjs +13 -0
- package/resources/recommendations.mjs.map +1 -0
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +4 -3
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +4 -3
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts.map +1 -1
- package/resources/tags.d.ts.map +1 -1
- package/resources/tags.js +5 -1
- package/resources/tags.js.map +1 -1
- package/resources/tags.mjs +5 -1
- package/resources/tags.mjs.map +1 -1
- package/resources/teams/brief.d.mts +149 -0
- package/resources/teams/brief.d.mts.map +1 -0
- package/resources/teams/brief.d.ts +149 -0
- package/resources/teams/brief.d.ts.map +1 -0
- package/resources/teams/brief.js +28 -0
- package/resources/teams/brief.js.map +1 -0
- package/resources/teams/brief.mjs +24 -0
- package/resources/teams/brief.mjs.map +1 -0
- package/resources/teams/index.d.mts +7 -0
- package/resources/teams/index.d.mts.map +1 -0
- package/resources/teams/index.d.ts +7 -0
- package/resources/teams/index.d.ts.map +1 -0
- package/resources/teams/index.js +17 -0
- package/resources/teams/index.js.map +1 -0
- package/resources/teams/index.mjs +8 -0
- package/resources/teams/index.mjs.map +1 -0
- package/resources/teams/ip-filters.d.mts +115 -0
- package/resources/teams/ip-filters.d.mts.map +1 -0
- package/resources/teams/ip-filters.d.ts +115 -0
- package/resources/teams/ip-filters.d.ts.map +1 -0
- package/resources/teams/ip-filters.js +45 -0
- package/resources/teams/ip-filters.js.map +1 -0
- package/resources/teams/ip-filters.mjs +41 -0
- package/resources/teams/ip-filters.mjs.map +1 -0
- package/resources/teams/members.d.mts +204 -0
- package/resources/teams/members.d.mts.map +1 -0
- package/resources/teams/members.d.ts +204 -0
- package/resources/teams/members.d.ts.map +1 -0
- package/resources/teams/members.js +30 -0
- package/resources/teams/members.js.map +1 -0
- package/resources/teams/members.mjs +26 -0
- package/resources/teams/members.mjs.map +1 -0
- package/resources/teams/teams.d.mts +878 -0
- package/resources/teams/teams.d.mts.map +1 -0
- package/resources/teams/teams.d.ts +878 -0
- package/resources/teams/teams.d.ts.map +1 -0
- package/resources/teams/teams.js +66 -0
- package/resources/teams/teams.js.map +1 -0
- package/resources/teams/teams.mjs +61 -0
- package/resources/teams/teams.mjs.map +1 -0
- package/resources/teams/watermark.d.mts +459 -0
- package/resources/teams/watermark.d.mts.map +1 -0
- package/resources/teams/watermark.d.ts +459 -0
- package/resources/teams/watermark.d.ts.map +1 -0
- package/resources/teams/watermark.js +46 -0
- package/resources/teams/watermark.js.map +1 -0
- package/resources/teams/watermark.mjs +42 -0
- package/resources/teams/watermark.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/events.d.mts +87 -0
- package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/events.d.ts +87 -0
- package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/events.js +28 -0
- package/resources/teams/webhook-endpoints/events.js.map +1 -0
- package/resources/teams/webhook-endpoints/events.mjs +24 -0
- package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/index.d.mts +3 -0
- package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/index.d.ts +3 -0
- package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/index.js +9 -0
- package/resources/teams/webhook-endpoints/index.js.map +1 -0
- package/resources/teams/webhook-endpoints/index.mjs +4 -0
- package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
- package/resources/teams/webhook-endpoints.d.mts +2 -0
- package/resources/teams/webhook-endpoints.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints.d.ts +2 -0
- package/resources/teams/webhook-endpoints.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints.js +6 -0
- package/resources/teams/webhook-endpoints.js.map +1 -0
- package/resources/teams/webhook-endpoints.mjs +3 -0
- package/resources/teams/webhook-endpoints.mjs.map +1 -0
- package/resources/teams.d.mts +2 -0
- package/resources/teams.d.mts.map +1 -0
- package/resources/teams.d.ts +2 -0
- package/resources/teams.d.ts.map +1 -0
- package/resources/teams.js +6 -0
- package/resources/teams.js.map +1 -0
- package/resources/teams.mjs +3 -0
- package/resources/teams.mjs.map +1 -0
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +15 -3
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +15 -3
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +51 -24
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +51 -24
- package/resources/usages.d.ts.map +1 -1
- package/resources/usages.js +2 -1
- package/resources/usages.js.map +1 -1
- package/resources/usages.mjs +2 -1
- package/resources/usages.mjs.map +1 -1
- package/resources/workflows.d.mts +1381 -280
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +1381 -280
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +39 -8
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +39 -8
- package/resources/workflows.mjs.map +1 -1
- package/src/client.ts +101 -0
- package/src/core/pagination.ts +144 -0
- package/src/internal/utils/values.ts +10 -0
- package/src/lib/generate.ts +7 -7
- package/src/lib/job.ts +9 -7
- package/src/lib/models.ts +8 -6
- package/src/lib/query.ts +42 -0
- package/src/lib/scenario.ts +8 -0
- package/src/lib/scope.ts +42 -7
- package/src/lib/upload.ts +10 -8
- package/src/lib/workflow.ts +9 -7
- package/src/lib/workflow_validator.ts +115 -0
- package/src/resources/assets/assets.ts +192 -33
- package/src/resources/assets/download.ts +43 -8
- package/src/resources/collections/assets.ts +3 -2
- package/src/resources/collections/collections.ts +20 -5
- package/src/resources/collections/models.ts +3 -2
- package/src/resources/generate.ts +2350 -186
- package/src/resources/index.ts +34 -0
- package/src/resources/jobs.ts +204 -74
- package/src/resources/models/description.ts +10 -2
- package/src/resources/models/examples.ts +140 -46
- package/src/resources/models/index.ts +25 -0
- package/src/resources/models/models.ts +326 -88
- package/src/resources/models/presets.ts +1335 -0
- package/src/resources/models/prompt-guide.ts +102 -0
- package/src/resources/models/scores.ts +383 -0
- package/src/resources/models/train.ts +121 -46
- package/src/resources/models/training-images.ts +5 -4
- package/src/resources/projects/api-keys.ts +86 -0
- package/src/resources/projects/brief.ts +197 -0
- package/src/resources/projects/index.ts +71 -0
- package/src/resources/projects/instructions.ts +134 -0
- package/src/resources/projects/members.ts +958 -0
- package/src/resources/projects/memory.ts +134 -0
- package/src/resources/projects/projects.ts +1478 -0
- package/src/resources/projects/watermark.ts +590 -0
- package/src/resources/projects/webhook-endpoints/events.ts +179 -0
- package/src/resources/projects/webhook-endpoints/index.ts +19 -0
- package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
- package/src/resources/projects/webhook-endpoints.ts +3 -0
- package/src/resources/projects.ts +3 -0
- package/src/resources/recommendations.ts +1502 -0
- package/src/resources/search.ts +4 -3
- package/src/resources/tags.ts +5 -1
- package/src/resources/teams/brief.ts +193 -0
- package/src/resources/teams/index.ts +62 -0
- package/src/resources/teams/ip-filters.ts +177 -0
- package/src/resources/teams/members.ts +282 -0
- package/src/resources/teams/teams.ts +1255 -0
- package/src/resources/teams/watermark.ts +590 -0
- package/src/resources/teams/webhook-endpoints/events.ts +179 -0
- package/src/resources/teams/webhook-endpoints/index.ts +19 -0
- package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
- package/src/resources/teams/webhook-endpoints.ts +3 -0
- package/src/resources/teams.ts +3 -0
- package/src/resources/uploads.ts +15 -3
- package/src/resources/usages.ts +58 -23
- package/src/resources/workflows.ts +1707 -241
- 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
|
@@ -3,6 +3,12 @@ import * as DescriptionAPI from "./description.js";
|
|
|
3
3
|
import { Description, DescriptionRetrieveParams, DescriptionRetrieveResponse, DescriptionUpdateParams, DescriptionUpdateResponse } from "./description.js";
|
|
4
4
|
import * as ExamplesAPI from "./examples.js";
|
|
5
5
|
import { ExampleListParams, ExampleListResponse, ExampleUpdateParams, ExampleUpdateResponse, Examples } from "./examples.js";
|
|
6
|
+
import * as PresetsAPI from "./presets.js";
|
|
7
|
+
import { PresetCreateParams, PresetCreateResponse, PresetDeleteParams, PresetDeleteResponse, PresetListParams, PresetListResponse, PresetUpdateParams, PresetUpdateResponse, Presets } from "./presets.js";
|
|
8
|
+
import * as PromptGuideAPI from "./prompt-guide.js";
|
|
9
|
+
import { PromptGuide, PromptGuideRetrieveParams, PromptGuideRetrieveResponse, PromptGuideUpdateParams, PromptGuideUpdateResponse } from "./prompt-guide.js";
|
|
10
|
+
import * as ScoresAPI from "./scores.js";
|
|
11
|
+
import { ScoreRetrievePromptParams, ScoreRetrievePromptResponse, ScoreRetrieveTrainingDatasetParams, ScoreRetrieveTrainingDatasetResponse, Scores } from "./scores.js";
|
|
6
12
|
import * as TrainAPI from "./train.js";
|
|
7
13
|
import { Train, TrainActionParams, TrainActionResponse, TrainTriggerParams, TrainTriggerResponse } from "./train.js";
|
|
8
14
|
import * as TrainingImagesAPI from "./training-images.js";
|
|
@@ -13,6 +19,9 @@ import { RequestOptions } from "../../internal/request-options.js";
|
|
|
13
19
|
export declare class Models extends APIResource {
|
|
14
20
|
description: DescriptionAPI.Description;
|
|
15
21
|
examples: ExamplesAPI.Examples;
|
|
22
|
+
presets: PresetsAPI.Presets;
|
|
23
|
+
promptGuide: PromptGuideAPI.PromptGuide;
|
|
24
|
+
scores: ScoresAPI.Scores;
|
|
16
25
|
train: TrainAPI.Train;
|
|
17
26
|
trainingImages: TrainingImagesAPI.TrainingImages;
|
|
18
27
|
/**
|
|
@@ -128,8 +137,8 @@ export declare namespace ModelCreateResponse {
|
|
|
128
137
|
*/
|
|
129
138
|
updatedAt: string;
|
|
130
139
|
/**
|
|
131
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
132
|
-
* 75:
|
|
140
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
141
|
+
* 75: Max plan 100: Enterprise plan
|
|
133
142
|
*/
|
|
134
143
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
135
144
|
/**
|
|
@@ -169,6 +178,11 @@ export declare namespace ModelCreateResponse {
|
|
|
169
178
|
* it by modelId with GET /models/{modelId}
|
|
170
179
|
*/
|
|
171
180
|
inputs?: Array<Model.Input>;
|
|
181
|
+
/**
|
|
182
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
183
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
184
|
+
*/
|
|
185
|
+
jobId?: string;
|
|
172
186
|
/**
|
|
173
187
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
174
188
|
* parameters
|
|
@@ -461,8 +475,7 @@ export declare namespace ModelCreateResponse {
|
|
|
461
475
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
462
476
|
* defined
|
|
463
477
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
464
|
-
* - \`
|
|
465
|
-
* value
|
|
478
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
466
479
|
*
|
|
467
480
|
* By default, the input is not required.
|
|
468
481
|
*/
|
|
@@ -480,8 +493,7 @@ export declare namespace ModelCreateResponse {
|
|
|
480
493
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
481
494
|
* defined
|
|
482
495
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
483
|
-
* - \`
|
|
484
|
-
* value
|
|
496
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
485
497
|
*
|
|
486
498
|
* By default, the input is not required.
|
|
487
499
|
*/
|
|
@@ -491,12 +503,9 @@ export declare namespace ModelCreateResponse {
|
|
|
491
503
|
*/
|
|
492
504
|
always?: boolean;
|
|
493
505
|
/**
|
|
494
|
-
* Makes this input required when
|
|
495
|
-
*
|
|
496
|
-
* - Key: name of the input to check
|
|
497
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
506
|
+
* Makes this input required when other inputs have one of the listed values
|
|
498
507
|
*/
|
|
499
|
-
|
|
508
|
+
conditional?: Required.Conditional;
|
|
500
509
|
/**
|
|
501
510
|
* Makes this input required when another input is defined:
|
|
502
511
|
*
|
|
@@ -512,6 +521,24 @@ export declare namespace ModelCreateResponse {
|
|
|
512
521
|
*/
|
|
513
522
|
ifNotDefined?: unknown;
|
|
514
523
|
}
|
|
524
|
+
namespace Required {
|
|
525
|
+
/**
|
|
526
|
+
* Makes this input required when other inputs have one of the listed values
|
|
527
|
+
*/
|
|
528
|
+
interface Conditional {
|
|
529
|
+
/**
|
|
530
|
+
* The conditions to check:
|
|
531
|
+
*
|
|
532
|
+
* - Key: name of the input to check
|
|
533
|
+
* - Value: values of that input that satisfy the condition
|
|
534
|
+
*/
|
|
535
|
+
values: unknown;
|
|
536
|
+
/**
|
|
537
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
538
|
+
*/
|
|
539
|
+
operator?: 'and' | 'or';
|
|
540
|
+
}
|
|
541
|
+
}
|
|
515
542
|
}
|
|
516
543
|
/**
|
|
517
544
|
* The parameters of the model
|
|
@@ -1156,8 +1183,8 @@ export declare namespace ModelRetrieveResponse {
|
|
|
1156
1183
|
*/
|
|
1157
1184
|
updatedAt: string;
|
|
1158
1185
|
/**
|
|
1159
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
1160
|
-
* 75:
|
|
1186
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
1187
|
+
* 75: Max plan 100: Enterprise plan
|
|
1161
1188
|
*/
|
|
1162
1189
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
1163
1190
|
/**
|
|
@@ -1197,6 +1224,11 @@ export declare namespace ModelRetrieveResponse {
|
|
|
1197
1224
|
* it by modelId with GET /models/{modelId}
|
|
1198
1225
|
*/
|
|
1199
1226
|
inputs?: Array<Model.Input>;
|
|
1227
|
+
/**
|
|
1228
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
1229
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
1230
|
+
*/
|
|
1231
|
+
jobId?: string;
|
|
1200
1232
|
/**
|
|
1201
1233
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
1202
1234
|
* parameters
|
|
@@ -1489,8 +1521,7 @@ export declare namespace ModelRetrieveResponse {
|
|
|
1489
1521
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1490
1522
|
* defined
|
|
1491
1523
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1492
|
-
* - \`
|
|
1493
|
-
* value
|
|
1524
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1494
1525
|
*
|
|
1495
1526
|
* By default, the input is not required.
|
|
1496
1527
|
*/
|
|
@@ -1508,8 +1539,7 @@ export declare namespace ModelRetrieveResponse {
|
|
|
1508
1539
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1509
1540
|
* defined
|
|
1510
1541
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1511
|
-
* - \`
|
|
1512
|
-
* value
|
|
1542
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1513
1543
|
*
|
|
1514
1544
|
* By default, the input is not required.
|
|
1515
1545
|
*/
|
|
@@ -1519,12 +1549,9 @@ export declare namespace ModelRetrieveResponse {
|
|
|
1519
1549
|
*/
|
|
1520
1550
|
always?: boolean;
|
|
1521
1551
|
/**
|
|
1522
|
-
* Makes this input required when
|
|
1523
|
-
*
|
|
1524
|
-
* - Key: name of the input to check
|
|
1525
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
1552
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1526
1553
|
*/
|
|
1527
|
-
|
|
1554
|
+
conditional?: Required.Conditional;
|
|
1528
1555
|
/**
|
|
1529
1556
|
* Makes this input required when another input is defined:
|
|
1530
1557
|
*
|
|
@@ -1540,6 +1567,24 @@ export declare namespace ModelRetrieveResponse {
|
|
|
1540
1567
|
*/
|
|
1541
1568
|
ifNotDefined?: unknown;
|
|
1542
1569
|
}
|
|
1570
|
+
namespace Required {
|
|
1571
|
+
/**
|
|
1572
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1573
|
+
*/
|
|
1574
|
+
interface Conditional {
|
|
1575
|
+
/**
|
|
1576
|
+
* The conditions to check:
|
|
1577
|
+
*
|
|
1578
|
+
* - Key: name of the input to check
|
|
1579
|
+
* - Value: values of that input that satisfy the condition
|
|
1580
|
+
*/
|
|
1581
|
+
values: unknown;
|
|
1582
|
+
/**
|
|
1583
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
1584
|
+
*/
|
|
1585
|
+
operator?: 'and' | 'or';
|
|
1586
|
+
}
|
|
1587
|
+
}
|
|
1543
1588
|
}
|
|
1544
1589
|
/**
|
|
1545
1590
|
* The parameters of the model
|
|
@@ -2184,8 +2229,8 @@ export declare namespace ModelUpdateResponse {
|
|
|
2184
2229
|
*/
|
|
2185
2230
|
updatedAt: string;
|
|
2186
2231
|
/**
|
|
2187
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
2188
|
-
* 75:
|
|
2232
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
2233
|
+
* 75: Max plan 100: Enterprise plan
|
|
2189
2234
|
*/
|
|
2190
2235
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
2191
2236
|
/**
|
|
@@ -2225,6 +2270,11 @@ export declare namespace ModelUpdateResponse {
|
|
|
2225
2270
|
* it by modelId with GET /models/{modelId}
|
|
2226
2271
|
*/
|
|
2227
2272
|
inputs?: Array<Model.Input>;
|
|
2273
|
+
/**
|
|
2274
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
2275
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
2276
|
+
*/
|
|
2277
|
+
jobId?: string;
|
|
2228
2278
|
/**
|
|
2229
2279
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
2230
2280
|
* parameters
|
|
@@ -2517,8 +2567,7 @@ export declare namespace ModelUpdateResponse {
|
|
|
2517
2567
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2518
2568
|
* defined
|
|
2519
2569
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2520
|
-
* - \`
|
|
2521
|
-
* value
|
|
2570
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2522
2571
|
*
|
|
2523
2572
|
* By default, the input is not required.
|
|
2524
2573
|
*/
|
|
@@ -2536,8 +2585,7 @@ export declare namespace ModelUpdateResponse {
|
|
|
2536
2585
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2537
2586
|
* defined
|
|
2538
2587
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2539
|
-
* - \`
|
|
2540
|
-
* value
|
|
2588
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2541
2589
|
*
|
|
2542
2590
|
* By default, the input is not required.
|
|
2543
2591
|
*/
|
|
@@ -2547,12 +2595,9 @@ export declare namespace ModelUpdateResponse {
|
|
|
2547
2595
|
*/
|
|
2548
2596
|
always?: boolean;
|
|
2549
2597
|
/**
|
|
2550
|
-
* Makes this input required when
|
|
2551
|
-
*
|
|
2552
|
-
* - Key: name of the input to check
|
|
2553
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2598
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2554
2599
|
*/
|
|
2555
|
-
|
|
2600
|
+
conditional?: Required.Conditional;
|
|
2556
2601
|
/**
|
|
2557
2602
|
* Makes this input required when another input is defined:
|
|
2558
2603
|
*
|
|
@@ -2568,6 +2613,24 @@ export declare namespace ModelUpdateResponse {
|
|
|
2568
2613
|
*/
|
|
2569
2614
|
ifNotDefined?: unknown;
|
|
2570
2615
|
}
|
|
2616
|
+
namespace Required {
|
|
2617
|
+
/**
|
|
2618
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2619
|
+
*/
|
|
2620
|
+
interface Conditional {
|
|
2621
|
+
/**
|
|
2622
|
+
* The conditions to check:
|
|
2623
|
+
*
|
|
2624
|
+
* - Key: name of the input to check
|
|
2625
|
+
* - Value: values of that input that satisfy the condition
|
|
2626
|
+
*/
|
|
2627
|
+
values: unknown;
|
|
2628
|
+
/**
|
|
2629
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2630
|
+
*/
|
|
2631
|
+
operator?: 'and' | 'or';
|
|
2632
|
+
}
|
|
2633
|
+
}
|
|
2571
2634
|
}
|
|
2572
2635
|
/**
|
|
2573
2636
|
* The parameters of the model
|
|
@@ -3208,8 +3271,8 @@ export interface ModelListResponse {
|
|
|
3208
3271
|
*/
|
|
3209
3272
|
updatedAt: string;
|
|
3210
3273
|
/**
|
|
3211
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
3212
|
-
* 75:
|
|
3274
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
3275
|
+
* 75: Max plan 100: Enterprise plan
|
|
3213
3276
|
*/
|
|
3214
3277
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
3215
3278
|
/**
|
|
@@ -3249,6 +3312,11 @@ export interface ModelListResponse {
|
|
|
3249
3312
|
* it by modelId with GET /models/{modelId}
|
|
3250
3313
|
*/
|
|
3251
3314
|
inputs?: Array<ModelListResponse.Input>;
|
|
3315
|
+
/**
|
|
3316
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
3317
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
3318
|
+
*/
|
|
3319
|
+
jobId?: string;
|
|
3252
3320
|
/**
|
|
3253
3321
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
3254
3322
|
* parameters
|
|
@@ -3541,8 +3609,7 @@ export declare namespace ModelListResponse {
|
|
|
3541
3609
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
3542
3610
|
* defined
|
|
3543
3611
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
3544
|
-
* - \`
|
|
3545
|
-
* value
|
|
3612
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
3546
3613
|
*
|
|
3547
3614
|
* By default, the input is not required.
|
|
3548
3615
|
*/
|
|
@@ -3560,8 +3627,7 @@ export declare namespace ModelListResponse {
|
|
|
3560
3627
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
3561
3628
|
* defined
|
|
3562
3629
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
3563
|
-
* - \`
|
|
3564
|
-
* value
|
|
3630
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
3565
3631
|
*
|
|
3566
3632
|
* By default, the input is not required.
|
|
3567
3633
|
*/
|
|
@@ -3571,12 +3637,9 @@ export declare namespace ModelListResponse {
|
|
|
3571
3637
|
*/
|
|
3572
3638
|
always?: boolean;
|
|
3573
3639
|
/**
|
|
3574
|
-
* Makes this input required when
|
|
3575
|
-
*
|
|
3576
|
-
* - Key: name of the input to check
|
|
3577
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
3640
|
+
* Makes this input required when other inputs have one of the listed values
|
|
3578
3641
|
*/
|
|
3579
|
-
|
|
3642
|
+
conditional?: Required.Conditional;
|
|
3580
3643
|
/**
|
|
3581
3644
|
* Makes this input required when another input is defined:
|
|
3582
3645
|
*
|
|
@@ -3592,6 +3655,24 @@ export declare namespace ModelListResponse {
|
|
|
3592
3655
|
*/
|
|
3593
3656
|
ifNotDefined?: unknown;
|
|
3594
3657
|
}
|
|
3658
|
+
namespace Required {
|
|
3659
|
+
/**
|
|
3660
|
+
* Makes this input required when other inputs have one of the listed values
|
|
3661
|
+
*/
|
|
3662
|
+
interface Conditional {
|
|
3663
|
+
/**
|
|
3664
|
+
* The conditions to check:
|
|
3665
|
+
*
|
|
3666
|
+
* - Key: name of the input to check
|
|
3667
|
+
* - Value: values of that input that satisfy the condition
|
|
3668
|
+
*/
|
|
3669
|
+
values: unknown;
|
|
3670
|
+
/**
|
|
3671
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
3672
|
+
*/
|
|
3673
|
+
operator?: 'and' | 'or';
|
|
3674
|
+
}
|
|
3675
|
+
}
|
|
3595
3676
|
}
|
|
3596
3677
|
/**
|
|
3597
3678
|
* The parameters of the model
|
|
@@ -4236,8 +4317,8 @@ export declare namespace ModelCopyResponse {
|
|
|
4236
4317
|
*/
|
|
4237
4318
|
updatedAt: string;
|
|
4238
4319
|
/**
|
|
4239
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
4240
|
-
* 75:
|
|
4320
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
4321
|
+
* 75: Max plan 100: Enterprise plan
|
|
4241
4322
|
*/
|
|
4242
4323
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
4243
4324
|
/**
|
|
@@ -4277,6 +4358,11 @@ export declare namespace ModelCopyResponse {
|
|
|
4277
4358
|
* it by modelId with GET /models/{modelId}
|
|
4278
4359
|
*/
|
|
4279
4360
|
inputs?: Array<Model.Input>;
|
|
4361
|
+
/**
|
|
4362
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
4363
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
4364
|
+
*/
|
|
4365
|
+
jobId?: string;
|
|
4280
4366
|
/**
|
|
4281
4367
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
4282
4368
|
* parameters
|
|
@@ -4569,8 +4655,7 @@ export declare namespace ModelCopyResponse {
|
|
|
4569
4655
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
4570
4656
|
* defined
|
|
4571
4657
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
4572
|
-
* - \`
|
|
4573
|
-
* value
|
|
4658
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
4574
4659
|
*
|
|
4575
4660
|
* By default, the input is not required.
|
|
4576
4661
|
*/
|
|
@@ -4588,8 +4673,7 @@ export declare namespace ModelCopyResponse {
|
|
|
4588
4673
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
4589
4674
|
* defined
|
|
4590
4675
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
4591
|
-
* - \`
|
|
4592
|
-
* value
|
|
4676
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
4593
4677
|
*
|
|
4594
4678
|
* By default, the input is not required.
|
|
4595
4679
|
*/
|
|
@@ -4599,12 +4683,9 @@ export declare namespace ModelCopyResponse {
|
|
|
4599
4683
|
*/
|
|
4600
4684
|
always?: boolean;
|
|
4601
4685
|
/**
|
|
4602
|
-
* Makes this input required when
|
|
4603
|
-
*
|
|
4604
|
-
* - Key: name of the input to check
|
|
4605
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
4686
|
+
* Makes this input required when other inputs have one of the listed values
|
|
4606
4687
|
*/
|
|
4607
|
-
|
|
4688
|
+
conditional?: Required.Conditional;
|
|
4608
4689
|
/**
|
|
4609
4690
|
* Makes this input required when another input is defined:
|
|
4610
4691
|
*
|
|
@@ -4620,6 +4701,24 @@ export declare namespace ModelCopyResponse {
|
|
|
4620
4701
|
*/
|
|
4621
4702
|
ifNotDefined?: unknown;
|
|
4622
4703
|
}
|
|
4704
|
+
namespace Required {
|
|
4705
|
+
/**
|
|
4706
|
+
* Makes this input required when other inputs have one of the listed values
|
|
4707
|
+
*/
|
|
4708
|
+
interface Conditional {
|
|
4709
|
+
/**
|
|
4710
|
+
* The conditions to check:
|
|
4711
|
+
*
|
|
4712
|
+
* - Key: name of the input to check
|
|
4713
|
+
* - Value: values of that input that satisfy the condition
|
|
4714
|
+
*/
|
|
4715
|
+
values: unknown;
|
|
4716
|
+
/**
|
|
4717
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
4718
|
+
*/
|
|
4719
|
+
operator?: 'and' | 'or';
|
|
4720
|
+
}
|
|
4721
|
+
}
|
|
4623
4722
|
}
|
|
4624
4723
|
/**
|
|
4625
4724
|
* The parameters of the model
|
|
@@ -5228,8 +5327,8 @@ export declare namespace ModelGetBulkResponse {
|
|
|
5228
5327
|
*/
|
|
5229
5328
|
type: 'custom' | 'elevenlabs-voice' | 'flux.1' | 'flux.1-composition' | 'flux.1-kontext-dev' | 'flux.1-kontext-lora' | 'flux.1-krea-dev' | 'flux.1-krea-lora' | 'flux.1-lora' | 'flux.1-pro' | 'flux.1.1-pro-ultra' | 'flux.2-dev-edit-lora' | 'flux.2-dev-lora' | 'flux.2-klein-4b-edit-lora' | 'flux.2-klein-4b-lora' | 'flux.2-klein-9b-edit-lora' | 'flux.2-klein-9b-lora' | 'flux.2-klein-base-4b-edit-lora' | 'flux.2-klein-base-4b-lora' | 'flux.2-klein-base-9b-edit-lora' | 'flux.2-klein-base-9b-lora' | 'flux1.1-pro' | 'gpt-image-1' | 'qwen-image-2512-lora' | 'qwen-image-edit-2509-lora' | 'qwen-image-edit-2511-lora' | 'qwen-image-edit-lora' | 'qwen-image-lora' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora';
|
|
5230
5329
|
/**
|
|
5231
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
5232
|
-
* 75:
|
|
5330
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
5331
|
+
* 75: Max plan 100: Enterprise plan
|
|
5233
5332
|
*/
|
|
5234
5333
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
5235
5334
|
/**
|
|
@@ -5291,6 +5390,11 @@ export declare namespace ModelGetBulkResponse {
|
|
|
5291
5390
|
* it by modelId with GET /models/{modelId}
|
|
5292
5391
|
*/
|
|
5293
5392
|
inputs?: Array<Model.Input>;
|
|
5393
|
+
/**
|
|
5394
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
5395
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
5396
|
+
*/
|
|
5397
|
+
jobId?: string;
|
|
5294
5398
|
/**
|
|
5295
5399
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
5296
5400
|
* parameters
|
|
@@ -5604,8 +5708,7 @@ export declare namespace ModelGetBulkResponse {
|
|
|
5604
5708
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
5605
5709
|
* defined
|
|
5606
5710
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
5607
|
-
* - \`
|
|
5608
|
-
* value
|
|
5711
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
5609
5712
|
*
|
|
5610
5713
|
* By default, the input is not required.
|
|
5611
5714
|
*/
|
|
@@ -5623,8 +5726,7 @@ export declare namespace ModelGetBulkResponse {
|
|
|
5623
5726
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
5624
5727
|
* defined
|
|
5625
5728
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
5626
|
-
* - \`
|
|
5627
|
-
* value
|
|
5729
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
5628
5730
|
*
|
|
5629
5731
|
* By default, the input is not required.
|
|
5630
5732
|
*/
|
|
@@ -5634,12 +5736,9 @@ export declare namespace ModelGetBulkResponse {
|
|
|
5634
5736
|
*/
|
|
5635
5737
|
always?: boolean;
|
|
5636
5738
|
/**
|
|
5637
|
-
* Makes this input required when
|
|
5638
|
-
*
|
|
5639
|
-
* - Key: name of the input to check
|
|
5640
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
5739
|
+
* Makes this input required when other inputs have one of the listed values
|
|
5641
5740
|
*/
|
|
5642
|
-
|
|
5741
|
+
conditional?: Required.Conditional;
|
|
5643
5742
|
/**
|
|
5644
5743
|
* Makes this input required when another input is defined:
|
|
5645
5744
|
*
|
|
@@ -5655,6 +5754,24 @@ export declare namespace ModelGetBulkResponse {
|
|
|
5655
5754
|
*/
|
|
5656
5755
|
ifNotDefined?: unknown;
|
|
5657
5756
|
}
|
|
5757
|
+
namespace Required {
|
|
5758
|
+
/**
|
|
5759
|
+
* Makes this input required when other inputs have one of the listed values
|
|
5760
|
+
*/
|
|
5761
|
+
interface Conditional {
|
|
5762
|
+
/**
|
|
5763
|
+
* The conditions to check:
|
|
5764
|
+
*
|
|
5765
|
+
* - Key: name of the input to check
|
|
5766
|
+
* - Value: values of that input that satisfy the condition
|
|
5767
|
+
*/
|
|
5768
|
+
values: unknown;
|
|
5769
|
+
/**
|
|
5770
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
5771
|
+
*/
|
|
5772
|
+
operator?: 'and' | 'or';
|
|
5773
|
+
}
|
|
5774
|
+
}
|
|
5658
5775
|
}
|
|
5659
5776
|
/**
|
|
5660
5777
|
* The parameters of the model
|
|
@@ -6299,8 +6416,8 @@ export declare namespace ModelTransferResponse {
|
|
|
6299
6416
|
*/
|
|
6300
6417
|
updatedAt: string;
|
|
6301
6418
|
/**
|
|
6302
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
6303
|
-
* 75:
|
|
6419
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
6420
|
+
* 75: Max plan 100: Enterprise plan
|
|
6304
6421
|
*/
|
|
6305
6422
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
6306
6423
|
/**
|
|
@@ -6340,6 +6457,11 @@ export declare namespace ModelTransferResponse {
|
|
|
6340
6457
|
* it by modelId with GET /models/{modelId}
|
|
6341
6458
|
*/
|
|
6342
6459
|
inputs?: Array<Model.Input>;
|
|
6460
|
+
/**
|
|
6461
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
6462
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
6463
|
+
*/
|
|
6464
|
+
jobId?: string;
|
|
6343
6465
|
/**
|
|
6344
6466
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
6345
6467
|
* parameters
|
|
@@ -6632,8 +6754,7 @@ export declare namespace ModelTransferResponse {
|
|
|
6632
6754
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
6633
6755
|
* defined
|
|
6634
6756
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
6635
|
-
* - \`
|
|
6636
|
-
* value
|
|
6757
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
6637
6758
|
*
|
|
6638
6759
|
* By default, the input is not required.
|
|
6639
6760
|
*/
|
|
@@ -6651,8 +6772,7 @@ export declare namespace ModelTransferResponse {
|
|
|
6651
6772
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
6652
6773
|
* defined
|
|
6653
6774
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
6654
|
-
* - \`
|
|
6655
|
-
* value
|
|
6775
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
6656
6776
|
*
|
|
6657
6777
|
* By default, the input is not required.
|
|
6658
6778
|
*/
|
|
@@ -6662,12 +6782,9 @@ export declare namespace ModelTransferResponse {
|
|
|
6662
6782
|
*/
|
|
6663
6783
|
always?: boolean;
|
|
6664
6784
|
/**
|
|
6665
|
-
* Makes this input required when
|
|
6666
|
-
*
|
|
6667
|
-
* - Key: name of the input to check
|
|
6668
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
6785
|
+
* Makes this input required when other inputs have one of the listed values
|
|
6669
6786
|
*/
|
|
6670
|
-
|
|
6787
|
+
conditional?: Required.Conditional;
|
|
6671
6788
|
/**
|
|
6672
6789
|
* Makes this input required when another input is defined:
|
|
6673
6790
|
*
|
|
@@ -6683,6 +6800,24 @@ export declare namespace ModelTransferResponse {
|
|
|
6683
6800
|
*/
|
|
6684
6801
|
ifNotDefined?: unknown;
|
|
6685
6802
|
}
|
|
6803
|
+
namespace Required {
|
|
6804
|
+
/**
|
|
6805
|
+
* Makes this input required when other inputs have one of the listed values
|
|
6806
|
+
*/
|
|
6807
|
+
interface Conditional {
|
|
6808
|
+
/**
|
|
6809
|
+
* The conditions to check:
|
|
6810
|
+
*
|
|
6811
|
+
* - Key: name of the input to check
|
|
6812
|
+
* - Value: values of that input that satisfy the condition
|
|
6813
|
+
*/
|
|
6814
|
+
values: unknown;
|
|
6815
|
+
/**
|
|
6816
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
6817
|
+
*/
|
|
6818
|
+
operator?: 'and' | 'or';
|
|
6819
|
+
}
|
|
6820
|
+
}
|
|
6686
6821
|
}
|
|
6687
6822
|
/**
|
|
6688
6823
|
* The parameters of the model
|
|
@@ -7942,6 +8077,9 @@ export declare namespace Models {
|
|
|
7942
8077
|
export { type ModelCreateResponse as ModelCreateResponse, type ModelRetrieveResponse as ModelRetrieveResponse, type ModelUpdateResponse as ModelUpdateResponse, type ModelListResponse as ModelListResponse, type ModelDeleteResponse as ModelDeleteResponse, type ModelCopyResponse as ModelCopyResponse, type ModelDeleteImagesResponse as ModelDeleteImagesResponse, type ModelDownloadResponse as ModelDownloadResponse, type ModelGetBulkResponse as ModelGetBulkResponse, type ModelTransferResponse as ModelTransferResponse, type ModelUpdateTagsResponse as ModelUpdateTagsResponse, type ModelListResponsesModelsCursor as ModelListResponsesModelsCursor, type ModelCreateParams as ModelCreateParams, type ModelRetrieveParams as ModelRetrieveParams, type ModelUpdateParams as ModelUpdateParams, type ModelListParams as ModelListParams, type ModelDeleteParams as ModelDeleteParams, type ModelCopyParams as ModelCopyParams, type ModelDeleteImagesParams as ModelDeleteImagesParams, type ModelDownloadParams as ModelDownloadParams, type ModelGetBulkParams as ModelGetBulkParams, type ModelTransferParams as ModelTransferParams, type ModelUpdateTagsParams as ModelUpdateTagsParams, };
|
|
7943
8078
|
export { Description as Description, type DescriptionRetrieveResponse as DescriptionRetrieveResponse, type DescriptionUpdateResponse as DescriptionUpdateResponse, type DescriptionRetrieveParams as DescriptionRetrieveParams, type DescriptionUpdateParams as DescriptionUpdateParams, };
|
|
7944
8079
|
export { Examples as Examples, type ExampleUpdateResponse as ExampleUpdateResponse, type ExampleListResponse as ExampleListResponse, type ExampleUpdateParams as ExampleUpdateParams, type ExampleListParams as ExampleListParams, };
|
|
8080
|
+
export { Presets as Presets, type PresetCreateResponse as PresetCreateResponse, type PresetUpdateResponse as PresetUpdateResponse, type PresetListResponse as PresetListResponse, type PresetDeleteResponse as PresetDeleteResponse, type PresetCreateParams as PresetCreateParams, type PresetUpdateParams as PresetUpdateParams, type PresetListParams as PresetListParams, type PresetDeleteParams as PresetDeleteParams, };
|
|
8081
|
+
export { PromptGuide as PromptGuide, type PromptGuideRetrieveResponse as PromptGuideRetrieveResponse, type PromptGuideUpdateResponse as PromptGuideUpdateResponse, type PromptGuideRetrieveParams as PromptGuideRetrieveParams, type PromptGuideUpdateParams as PromptGuideUpdateParams, };
|
|
8082
|
+
export { Scores as Scores, type ScoreRetrievePromptResponse as ScoreRetrievePromptResponse, type ScoreRetrieveTrainingDatasetResponse as ScoreRetrieveTrainingDatasetResponse, type ScoreRetrievePromptParams as ScoreRetrievePromptParams, type ScoreRetrieveTrainingDatasetParams as ScoreRetrieveTrainingDatasetParams, };
|
|
7945
8083
|
export { Train as Train, type TrainActionResponse as TrainActionResponse, type TrainTriggerResponse as TrainTriggerResponse, type TrainActionParams as TrainActionParams, type TrainTriggerParams as TrainTriggerParams, };
|
|
7946
8084
|
export { TrainingImages as TrainingImages, type TrainingImageDeleteResponse as TrainingImageDeleteResponse, type TrainingImageAddResponse as TrainingImageAddResponse, type TrainingImageReplaceResponse as TrainingImageReplaceResponse, type TrainingImageReplacePairsResponse as TrainingImageReplacePairsResponse, type TrainingImageDeleteParams as TrainingImageDeleteParams, type TrainingImageAddParams as TrainingImageAddParams, type TrainingImageReplaceParams as TrainingImageReplaceParams, type TrainingImageReplacePairsParams as TrainingImageReplacePairsParams, };
|
|
7947
8085
|
}
|