@scenario-labs/sdk 3.2.0 → 3.3.1
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 +36 -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/asset.d.mts +1 -1
- package/lib/asset.d.ts +1 -1
- package/lib/asset.js +1 -1
- package/lib/asset.mjs +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 +11 -6
- package/lib/upload.d.mts.map +1 -1
- package/lib/upload.d.ts +11 -6
- 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 +4 -2
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts +4 -2
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.js +13 -7
- package/lib/workflow.js.map +1 -1
- package/lib/workflow.mjs +14 -8
- package/lib/workflow.mjs.map +1 -1
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +1 -1
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +1 -1
- package/lib/workflow_converter.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/asset.ts +1 -1
- 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 +20 -13
- package/src/lib/workflow.ts +21 -8
- package/src/lib/workflow_converter.ts +4 -2
- 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
|
@@ -17,6 +17,34 @@ import {
|
|
|
17
17
|
ExampleUpdateResponse,
|
|
18
18
|
Examples,
|
|
19
19
|
} from './examples';
|
|
20
|
+
import * as PresetsAPI from './presets';
|
|
21
|
+
import {
|
|
22
|
+
PresetCreateParams,
|
|
23
|
+
PresetCreateResponse,
|
|
24
|
+
PresetDeleteParams,
|
|
25
|
+
PresetDeleteResponse,
|
|
26
|
+
PresetListParams,
|
|
27
|
+
PresetListResponse,
|
|
28
|
+
PresetUpdateParams,
|
|
29
|
+
PresetUpdateResponse,
|
|
30
|
+
Presets,
|
|
31
|
+
} from './presets';
|
|
32
|
+
import * as PromptGuideAPI from './prompt-guide';
|
|
33
|
+
import {
|
|
34
|
+
PromptGuide,
|
|
35
|
+
PromptGuideRetrieveParams,
|
|
36
|
+
PromptGuideRetrieveResponse,
|
|
37
|
+
PromptGuideUpdateParams,
|
|
38
|
+
PromptGuideUpdateResponse,
|
|
39
|
+
} from './prompt-guide';
|
|
40
|
+
import * as ScoresAPI from './scores';
|
|
41
|
+
import {
|
|
42
|
+
ScoreRetrievePromptParams,
|
|
43
|
+
ScoreRetrievePromptResponse,
|
|
44
|
+
ScoreRetrieveTrainingDatasetParams,
|
|
45
|
+
ScoreRetrieveTrainingDatasetResponse,
|
|
46
|
+
Scores,
|
|
47
|
+
} from './scores';
|
|
20
48
|
import * as TrainAPI from './train';
|
|
21
49
|
import {
|
|
22
50
|
Train,
|
|
@@ -41,10 +69,14 @@ import { APIPromise } from '../../core/api-promise';
|
|
|
41
69
|
import { ModelsCursor, type ModelsCursorParams, PagePromise } from '../../core/pagination';
|
|
42
70
|
import { RequestOptions } from '../../internal/request-options';
|
|
43
71
|
import { path } from '../../internal/utils/path';
|
|
72
|
+
import { omitUndefined } from '../../internal/utils/values';
|
|
44
73
|
|
|
45
74
|
export class Models extends APIResource {
|
|
46
75
|
description: DescriptionAPI.Description = new DescriptionAPI.Description(this._client);
|
|
47
76
|
examples: ExamplesAPI.Examples = new ExamplesAPI.Examples(this._client);
|
|
77
|
+
presets: PresetsAPI.Presets = new PresetsAPI.Presets(this._client);
|
|
78
|
+
promptGuide: PromptGuideAPI.PromptGuide = new PromptGuideAPI.PromptGuide(this._client);
|
|
79
|
+
scores: ScoresAPI.Scores = new ScoresAPI.Scores(this._client);
|
|
48
80
|
train: TrainAPI.Train = new TrainAPI.Train(this._client);
|
|
49
81
|
trainingImages: TrainingImagesAPI.TrainingImages = new TrainingImagesAPI.TrainingImages(this._client);
|
|
50
82
|
|
|
@@ -53,7 +85,11 @@ export class Models extends APIResource {
|
|
|
53
85
|
*/
|
|
54
86
|
create(params: ModelCreateParams, options?: RequestOptions): APIPromise<ModelCreateResponse> {
|
|
55
87
|
const { originalAssets, projectId, ...body } = params;
|
|
56
|
-
return this._client.post('/models', {
|
|
88
|
+
return this._client.post('/models', {
|
|
89
|
+
body,
|
|
90
|
+
...options,
|
|
91
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
92
|
+
});
|
|
57
93
|
}
|
|
58
94
|
|
|
59
95
|
/**
|
|
@@ -67,7 +103,10 @@ export class Models extends APIResource {
|
|
|
67
103
|
query: ModelRetrieveParams | null | undefined = {},
|
|
68
104
|
options?: RequestOptions,
|
|
69
105
|
): APIPromise<ModelRetrieveResponse> {
|
|
70
|
-
return this._client.get(path`/models/${modelID}`, {
|
|
106
|
+
return this._client.get(path`/models/${modelID}`, {
|
|
107
|
+
...options,
|
|
108
|
+
query: { ...query, ...omitUndefined(options?.query) },
|
|
109
|
+
});
|
|
71
110
|
}
|
|
72
111
|
|
|
73
112
|
/**
|
|
@@ -80,9 +119,9 @@ export class Models extends APIResource {
|
|
|
80
119
|
): APIPromise<ModelUpdateResponse> {
|
|
81
120
|
const { originalAssets, projectId, ...body } = params;
|
|
82
121
|
return this._client.put(path`/models/${modelID}`, {
|
|
83
|
-
query: { originalAssets, projectId },
|
|
84
122
|
body,
|
|
85
123
|
...options,
|
|
124
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
86
125
|
});
|
|
87
126
|
}
|
|
88
127
|
|
|
@@ -94,7 +133,10 @@ export class Models extends APIResource {
|
|
|
94
133
|
query: ModelListParams | null | undefined = {},
|
|
95
134
|
options?: RequestOptions,
|
|
96
135
|
): PagePromise<ModelListResponsesModelsCursor, ModelListResponse> {
|
|
97
|
-
return this._client.getAPIList('/models', ModelsCursor<ModelListResponse>, {
|
|
136
|
+
return this._client.getAPIList('/models', ModelsCursor<ModelListResponse>, {
|
|
137
|
+
...options,
|
|
138
|
+
query: { ...query, ...omitUndefined(options?.query) },
|
|
139
|
+
});
|
|
98
140
|
}
|
|
99
141
|
|
|
100
142
|
/**
|
|
@@ -106,7 +148,10 @@ export class Models extends APIResource {
|
|
|
106
148
|
options?: RequestOptions,
|
|
107
149
|
): APIPromise<unknown> {
|
|
108
150
|
const { projectId } = params ?? {};
|
|
109
|
-
return this._client.delete(path`/models/${modelID}`, {
|
|
151
|
+
return this._client.delete(path`/models/${modelID}`, {
|
|
152
|
+
...options,
|
|
153
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
154
|
+
});
|
|
110
155
|
}
|
|
111
156
|
|
|
112
157
|
/**
|
|
@@ -116,9 +161,9 @@ export class Models extends APIResource {
|
|
|
116
161
|
copy(modelID: string, params: ModelCopyParams, options?: RequestOptions): APIPromise<ModelCopyResponse> {
|
|
117
162
|
const { originalAssets, projectId, ...body } = params;
|
|
118
163
|
return this._client.post(path`/models/${modelID}/copy`, {
|
|
119
|
-
query: { originalAssets, projectId },
|
|
120
164
|
body,
|
|
121
165
|
...options,
|
|
166
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
122
167
|
});
|
|
123
168
|
}
|
|
124
169
|
|
|
@@ -131,7 +176,10 @@ export class Models extends APIResource {
|
|
|
131
176
|
options?: RequestOptions,
|
|
132
177
|
): APIPromise<unknown> {
|
|
133
178
|
const { ids, projectId } = params;
|
|
134
|
-
return this._client.delete(path`/models/${modelID}/images`, {
|
|
179
|
+
return this._client.delete(path`/models/${modelID}/images`, {
|
|
180
|
+
...options,
|
|
181
|
+
query: { ids, projectId, ...omitUndefined(options?.query) },
|
|
182
|
+
});
|
|
135
183
|
}
|
|
136
184
|
|
|
137
185
|
/**
|
|
@@ -144,9 +192,9 @@ export class Models extends APIResource {
|
|
|
144
192
|
): APIPromise<ModelDownloadResponse> {
|
|
145
193
|
const { dryRun, projectId, ...body } = params;
|
|
146
194
|
return this._client.post(path`/models/${modelID}/download`, {
|
|
147
|
-
query: { dryRun, projectId },
|
|
148
195
|
body,
|
|
149
196
|
...options,
|
|
197
|
+
query: { dryRun, projectId, ...omitUndefined(options?.query) },
|
|
150
198
|
});
|
|
151
199
|
}
|
|
152
200
|
|
|
@@ -155,7 +203,11 @@ export class Models extends APIResource {
|
|
|
155
203
|
*/
|
|
156
204
|
getBulk(params: ModelGetBulkParams, options?: RequestOptions): APIPromise<ModelGetBulkResponse> {
|
|
157
205
|
const { originalAssets, projectId, ...body } = params;
|
|
158
|
-
return this._client.post('/models/get-bulk', {
|
|
206
|
+
return this._client.post('/models/get-bulk', {
|
|
207
|
+
body,
|
|
208
|
+
...options,
|
|
209
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
210
|
+
});
|
|
159
211
|
}
|
|
160
212
|
|
|
161
213
|
/**
|
|
@@ -168,7 +220,11 @@ export class Models extends APIResource {
|
|
|
168
220
|
options?: RequestOptions,
|
|
169
221
|
): APIPromise<ModelTransferResponse> {
|
|
170
222
|
const { projectId, ...body } = params;
|
|
171
|
-
return this._client.post(path`/models/${modelID}/transfer`, {
|
|
223
|
+
return this._client.post(path`/models/${modelID}/transfer`, {
|
|
224
|
+
body,
|
|
225
|
+
...options,
|
|
226
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
227
|
+
});
|
|
172
228
|
}
|
|
173
229
|
|
|
174
230
|
/**
|
|
@@ -180,7 +236,11 @@ export class Models extends APIResource {
|
|
|
180
236
|
options?: RequestOptions,
|
|
181
237
|
): APIPromise<ModelUpdateTagsResponse> {
|
|
182
238
|
const { projectId, ...body } = params;
|
|
183
|
-
return this._client.put(path`/models/${modelID}/tags`, {
|
|
239
|
+
return this._client.put(path`/models/${modelID}/tags`, {
|
|
240
|
+
body,
|
|
241
|
+
...options,
|
|
242
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
243
|
+
});
|
|
184
244
|
}
|
|
185
245
|
}
|
|
186
246
|
|
|
@@ -326,8 +386,8 @@ export namespace ModelCreateResponse {
|
|
|
326
386
|
updatedAt: string;
|
|
327
387
|
|
|
328
388
|
/**
|
|
329
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
330
|
-
* 75:
|
|
389
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
390
|
+
* 75: Max plan 100: Enterprise plan
|
|
331
391
|
*/
|
|
332
392
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
333
393
|
|
|
@@ -376,6 +436,12 @@ export namespace ModelCreateResponse {
|
|
|
376
436
|
*/
|
|
377
437
|
inputs?: Array<Model.Input>;
|
|
378
438
|
|
|
439
|
+
/**
|
|
440
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
441
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
442
|
+
*/
|
|
443
|
+
jobId?: string;
|
|
444
|
+
|
|
379
445
|
/**
|
|
380
446
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
381
447
|
* parameters
|
|
@@ -765,8 +831,7 @@ export namespace ModelCreateResponse {
|
|
|
765
831
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
766
832
|
* defined
|
|
767
833
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
768
|
-
* - \`
|
|
769
|
-
* value
|
|
834
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
770
835
|
*
|
|
771
836
|
* By default, the input is not required.
|
|
772
837
|
*/
|
|
@@ -786,8 +851,7 @@ export namespace ModelCreateResponse {
|
|
|
786
851
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
787
852
|
* defined
|
|
788
853
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
789
|
-
* - \`
|
|
790
|
-
* value
|
|
854
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
791
855
|
*
|
|
792
856
|
* By default, the input is not required.
|
|
793
857
|
*/
|
|
@@ -798,12 +862,9 @@ export namespace ModelCreateResponse {
|
|
|
798
862
|
always?: boolean;
|
|
799
863
|
|
|
800
864
|
/**
|
|
801
|
-
* Makes this input required when
|
|
802
|
-
*
|
|
803
|
-
* - Key: name of the input to check
|
|
804
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
865
|
+
* Makes this input required when other inputs have one of the listed values
|
|
805
866
|
*/
|
|
806
|
-
|
|
867
|
+
conditional?: Required.Conditional;
|
|
807
868
|
|
|
808
869
|
/**
|
|
809
870
|
* Makes this input required when another input is defined:
|
|
@@ -821,6 +882,26 @@ export namespace ModelCreateResponse {
|
|
|
821
882
|
*/
|
|
822
883
|
ifNotDefined?: unknown;
|
|
823
884
|
}
|
|
885
|
+
|
|
886
|
+
export namespace Required {
|
|
887
|
+
/**
|
|
888
|
+
* Makes this input required when other inputs have one of the listed values
|
|
889
|
+
*/
|
|
890
|
+
export interface Conditional {
|
|
891
|
+
/**
|
|
892
|
+
* The conditions to check:
|
|
893
|
+
*
|
|
894
|
+
* - Key: name of the input to check
|
|
895
|
+
* - Value: values of that input that satisfy the condition
|
|
896
|
+
*/
|
|
897
|
+
values: unknown;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
901
|
+
*/
|
|
902
|
+
operator?: 'and' | 'or';
|
|
903
|
+
}
|
|
904
|
+
}
|
|
824
905
|
}
|
|
825
906
|
|
|
826
907
|
/**
|
|
@@ -1654,8 +1735,8 @@ export namespace ModelRetrieveResponse {
|
|
|
1654
1735
|
updatedAt: string;
|
|
1655
1736
|
|
|
1656
1737
|
/**
|
|
1657
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
1658
|
-
* 75:
|
|
1738
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
1739
|
+
* 75: Max plan 100: Enterprise plan
|
|
1659
1740
|
*/
|
|
1660
1741
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
1661
1742
|
|
|
@@ -1704,6 +1785,12 @@ export namespace ModelRetrieveResponse {
|
|
|
1704
1785
|
*/
|
|
1705
1786
|
inputs?: Array<Model.Input>;
|
|
1706
1787
|
|
|
1788
|
+
/**
|
|
1789
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
1790
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
1791
|
+
*/
|
|
1792
|
+
jobId?: string;
|
|
1793
|
+
|
|
1707
1794
|
/**
|
|
1708
1795
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
1709
1796
|
* parameters
|
|
@@ -2093,8 +2180,7 @@ export namespace ModelRetrieveResponse {
|
|
|
2093
2180
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2094
2181
|
* defined
|
|
2095
2182
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2096
|
-
* - \`
|
|
2097
|
-
* value
|
|
2183
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2098
2184
|
*
|
|
2099
2185
|
* By default, the input is not required.
|
|
2100
2186
|
*/
|
|
@@ -2114,8 +2200,7 @@ export namespace ModelRetrieveResponse {
|
|
|
2114
2200
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2115
2201
|
* defined
|
|
2116
2202
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2117
|
-
* - \`
|
|
2118
|
-
* value
|
|
2203
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2119
2204
|
*
|
|
2120
2205
|
* By default, the input is not required.
|
|
2121
2206
|
*/
|
|
@@ -2126,12 +2211,9 @@ export namespace ModelRetrieveResponse {
|
|
|
2126
2211
|
always?: boolean;
|
|
2127
2212
|
|
|
2128
2213
|
/**
|
|
2129
|
-
* Makes this input required when
|
|
2130
|
-
*
|
|
2131
|
-
* - Key: name of the input to check
|
|
2132
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2214
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2133
2215
|
*/
|
|
2134
|
-
|
|
2216
|
+
conditional?: Required.Conditional;
|
|
2135
2217
|
|
|
2136
2218
|
/**
|
|
2137
2219
|
* Makes this input required when another input is defined:
|
|
@@ -2149,6 +2231,26 @@ export namespace ModelRetrieveResponse {
|
|
|
2149
2231
|
*/
|
|
2150
2232
|
ifNotDefined?: unknown;
|
|
2151
2233
|
}
|
|
2234
|
+
|
|
2235
|
+
export namespace Required {
|
|
2236
|
+
/**
|
|
2237
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2238
|
+
*/
|
|
2239
|
+
export interface Conditional {
|
|
2240
|
+
/**
|
|
2241
|
+
* The conditions to check:
|
|
2242
|
+
*
|
|
2243
|
+
* - Key: name of the input to check
|
|
2244
|
+
* - Value: values of that input that satisfy the condition
|
|
2245
|
+
*/
|
|
2246
|
+
values: unknown;
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2250
|
+
*/
|
|
2251
|
+
operator?: 'and' | 'or';
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2152
2254
|
}
|
|
2153
2255
|
|
|
2154
2256
|
/**
|
|
@@ -2982,8 +3084,8 @@ export namespace ModelUpdateResponse {
|
|
|
2982
3084
|
updatedAt: string;
|
|
2983
3085
|
|
|
2984
3086
|
/**
|
|
2985
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
2986
|
-
* 75:
|
|
3087
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
3088
|
+
* 75: Max plan 100: Enterprise plan
|
|
2987
3089
|
*/
|
|
2988
3090
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
2989
3091
|
|
|
@@ -3032,6 +3134,12 @@ export namespace ModelUpdateResponse {
|
|
|
3032
3134
|
*/
|
|
3033
3135
|
inputs?: Array<Model.Input>;
|
|
3034
3136
|
|
|
3137
|
+
/**
|
|
3138
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
3139
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
3140
|
+
*/
|
|
3141
|
+
jobId?: string;
|
|
3142
|
+
|
|
3035
3143
|
/**
|
|
3036
3144
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
3037
3145
|
* parameters
|
|
@@ -3421,8 +3529,7 @@ export namespace ModelUpdateResponse {
|
|
|
3421
3529
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
3422
3530
|
* defined
|
|
3423
3531
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
3424
|
-
* - \`
|
|
3425
|
-
* value
|
|
3532
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
3426
3533
|
*
|
|
3427
3534
|
* By default, the input is not required.
|
|
3428
3535
|
*/
|
|
@@ -3442,8 +3549,7 @@ export namespace ModelUpdateResponse {
|
|
|
3442
3549
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
3443
3550
|
* defined
|
|
3444
3551
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
3445
|
-
* - \`
|
|
3446
|
-
* value
|
|
3552
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
3447
3553
|
*
|
|
3448
3554
|
* By default, the input is not required.
|
|
3449
3555
|
*/
|
|
@@ -3454,12 +3560,9 @@ export namespace ModelUpdateResponse {
|
|
|
3454
3560
|
always?: boolean;
|
|
3455
3561
|
|
|
3456
3562
|
/**
|
|
3457
|
-
* Makes this input required when
|
|
3458
|
-
*
|
|
3459
|
-
* - Key: name of the input to check
|
|
3460
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
3563
|
+
* Makes this input required when other inputs have one of the listed values
|
|
3461
3564
|
*/
|
|
3462
|
-
|
|
3565
|
+
conditional?: Required.Conditional;
|
|
3463
3566
|
|
|
3464
3567
|
/**
|
|
3465
3568
|
* Makes this input required when another input is defined:
|
|
@@ -3477,6 +3580,26 @@ export namespace ModelUpdateResponse {
|
|
|
3477
3580
|
*/
|
|
3478
3581
|
ifNotDefined?: unknown;
|
|
3479
3582
|
}
|
|
3583
|
+
|
|
3584
|
+
export namespace Required {
|
|
3585
|
+
/**
|
|
3586
|
+
* Makes this input required when other inputs have one of the listed values
|
|
3587
|
+
*/
|
|
3588
|
+
export interface Conditional {
|
|
3589
|
+
/**
|
|
3590
|
+
* The conditions to check:
|
|
3591
|
+
*
|
|
3592
|
+
* - Key: name of the input to check
|
|
3593
|
+
* - Value: values of that input that satisfy the condition
|
|
3594
|
+
*/
|
|
3595
|
+
values: unknown;
|
|
3596
|
+
|
|
3597
|
+
/**
|
|
3598
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
3599
|
+
*/
|
|
3600
|
+
operator?: 'and' | 'or';
|
|
3601
|
+
}
|
|
3602
|
+
}
|
|
3480
3603
|
}
|
|
3481
3604
|
|
|
3482
3605
|
/**
|
|
@@ -4305,8 +4428,8 @@ export interface ModelListResponse {
|
|
|
4305
4428
|
updatedAt: string;
|
|
4306
4429
|
|
|
4307
4430
|
/**
|
|
4308
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
4309
|
-
* 75:
|
|
4431
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
4432
|
+
* 75: Max plan 100: Enterprise plan
|
|
4310
4433
|
*/
|
|
4311
4434
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
4312
4435
|
|
|
@@ -4355,6 +4478,12 @@ export interface ModelListResponse {
|
|
|
4355
4478
|
*/
|
|
4356
4479
|
inputs?: Array<ModelListResponse.Input>;
|
|
4357
4480
|
|
|
4481
|
+
/**
|
|
4482
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
4483
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
4484
|
+
*/
|
|
4485
|
+
jobId?: string;
|
|
4486
|
+
|
|
4358
4487
|
/**
|
|
4359
4488
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
4360
4489
|
* parameters
|
|
@@ -4744,8 +4873,7 @@ export namespace ModelListResponse {
|
|
|
4744
4873
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
4745
4874
|
* defined
|
|
4746
4875
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
4747
|
-
* - \`
|
|
4748
|
-
* value
|
|
4876
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
4749
4877
|
*
|
|
4750
4878
|
* By default, the input is not required.
|
|
4751
4879
|
*/
|
|
@@ -4765,8 +4893,7 @@ export namespace ModelListResponse {
|
|
|
4765
4893
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
4766
4894
|
* defined
|
|
4767
4895
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
4768
|
-
* - \`
|
|
4769
|
-
* value
|
|
4896
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
4770
4897
|
*
|
|
4771
4898
|
* By default, the input is not required.
|
|
4772
4899
|
*/
|
|
@@ -4777,12 +4904,9 @@ export namespace ModelListResponse {
|
|
|
4777
4904
|
always?: boolean;
|
|
4778
4905
|
|
|
4779
4906
|
/**
|
|
4780
|
-
* Makes this input required when
|
|
4781
|
-
*
|
|
4782
|
-
* - Key: name of the input to check
|
|
4783
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
4907
|
+
* Makes this input required when other inputs have one of the listed values
|
|
4784
4908
|
*/
|
|
4785
|
-
|
|
4909
|
+
conditional?: Required.Conditional;
|
|
4786
4910
|
|
|
4787
4911
|
/**
|
|
4788
4912
|
* Makes this input required when another input is defined:
|
|
@@ -4800,6 +4924,26 @@ export namespace ModelListResponse {
|
|
|
4800
4924
|
*/
|
|
4801
4925
|
ifNotDefined?: unknown;
|
|
4802
4926
|
}
|
|
4927
|
+
|
|
4928
|
+
export namespace Required {
|
|
4929
|
+
/**
|
|
4930
|
+
* Makes this input required when other inputs have one of the listed values
|
|
4931
|
+
*/
|
|
4932
|
+
export interface Conditional {
|
|
4933
|
+
/**
|
|
4934
|
+
* The conditions to check:
|
|
4935
|
+
*
|
|
4936
|
+
* - Key: name of the input to check
|
|
4937
|
+
* - Value: values of that input that satisfy the condition
|
|
4938
|
+
*/
|
|
4939
|
+
values: unknown;
|
|
4940
|
+
|
|
4941
|
+
/**
|
|
4942
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
4943
|
+
*/
|
|
4944
|
+
operator?: 'and' | 'or';
|
|
4945
|
+
}
|
|
4946
|
+
}
|
|
4803
4947
|
}
|
|
4804
4948
|
|
|
4805
4949
|
/**
|
|
@@ -5634,8 +5778,8 @@ export namespace ModelCopyResponse {
|
|
|
5634
5778
|
updatedAt: string;
|
|
5635
5779
|
|
|
5636
5780
|
/**
|
|
5637
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
5638
|
-
* 75:
|
|
5781
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
5782
|
+
* 75: Max plan 100: Enterprise plan
|
|
5639
5783
|
*/
|
|
5640
5784
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
5641
5785
|
|
|
@@ -5684,6 +5828,12 @@ export namespace ModelCopyResponse {
|
|
|
5684
5828
|
*/
|
|
5685
5829
|
inputs?: Array<Model.Input>;
|
|
5686
5830
|
|
|
5831
|
+
/**
|
|
5832
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
5833
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
5834
|
+
*/
|
|
5835
|
+
jobId?: string;
|
|
5836
|
+
|
|
5687
5837
|
/**
|
|
5688
5838
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
5689
5839
|
* parameters
|
|
@@ -6073,8 +6223,7 @@ export namespace ModelCopyResponse {
|
|
|
6073
6223
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
6074
6224
|
* defined
|
|
6075
6225
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
6076
|
-
* - \`
|
|
6077
|
-
* value
|
|
6226
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
6078
6227
|
*
|
|
6079
6228
|
* By default, the input is not required.
|
|
6080
6229
|
*/
|
|
@@ -6094,8 +6243,7 @@ export namespace ModelCopyResponse {
|
|
|
6094
6243
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
6095
6244
|
* defined
|
|
6096
6245
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
6097
|
-
* - \`
|
|
6098
|
-
* value
|
|
6246
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
6099
6247
|
*
|
|
6100
6248
|
* By default, the input is not required.
|
|
6101
6249
|
*/
|
|
@@ -6106,12 +6254,9 @@ export namespace ModelCopyResponse {
|
|
|
6106
6254
|
always?: boolean;
|
|
6107
6255
|
|
|
6108
6256
|
/**
|
|
6109
|
-
* Makes this input required when
|
|
6110
|
-
*
|
|
6111
|
-
* - Key: name of the input to check
|
|
6112
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
6257
|
+
* Makes this input required when other inputs have one of the listed values
|
|
6113
6258
|
*/
|
|
6114
|
-
|
|
6259
|
+
conditional?: Required.Conditional;
|
|
6115
6260
|
|
|
6116
6261
|
/**
|
|
6117
6262
|
* Makes this input required when another input is defined:
|
|
@@ -6129,6 +6274,26 @@ export namespace ModelCopyResponse {
|
|
|
6129
6274
|
*/
|
|
6130
6275
|
ifNotDefined?: unknown;
|
|
6131
6276
|
}
|
|
6277
|
+
|
|
6278
|
+
export namespace Required {
|
|
6279
|
+
/**
|
|
6280
|
+
* Makes this input required when other inputs have one of the listed values
|
|
6281
|
+
*/
|
|
6282
|
+
export interface Conditional {
|
|
6283
|
+
/**
|
|
6284
|
+
* The conditions to check:
|
|
6285
|
+
*
|
|
6286
|
+
* - Key: name of the input to check
|
|
6287
|
+
* - Value: values of that input that satisfy the condition
|
|
6288
|
+
*/
|
|
6289
|
+
values: unknown;
|
|
6290
|
+
|
|
6291
|
+
/**
|
|
6292
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
6293
|
+
*/
|
|
6294
|
+
operator?: 'and' | 'or';
|
|
6295
|
+
}
|
|
6296
|
+
}
|
|
6132
6297
|
}
|
|
6133
6298
|
|
|
6134
6299
|
/**
|
|
@@ -6884,8 +7049,8 @@ export namespace ModelGetBulkResponse {
|
|
|
6884
7049
|
| 'zimage-turbo-lora';
|
|
6885
7050
|
|
|
6886
7051
|
/**
|
|
6887
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
6888
|
-
* 75:
|
|
7052
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
7053
|
+
* 75: Max plan 100: Enterprise plan
|
|
6889
7054
|
*/
|
|
6890
7055
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
6891
7056
|
|
|
@@ -6995,6 +7160,12 @@ export namespace ModelGetBulkResponse {
|
|
|
6995
7160
|
*/
|
|
6996
7161
|
inputs?: Array<Model.Input>;
|
|
6997
7162
|
|
|
7163
|
+
/**
|
|
7164
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
7165
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
7166
|
+
*/
|
|
7167
|
+
jobId?: string;
|
|
7168
|
+
|
|
6998
7169
|
/**
|
|
6999
7170
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
7000
7171
|
* parameters
|
|
@@ -7410,8 +7581,7 @@ export namespace ModelGetBulkResponse {
|
|
|
7410
7581
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
7411
7582
|
* defined
|
|
7412
7583
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
7413
|
-
* - \`
|
|
7414
|
-
* value
|
|
7584
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
7415
7585
|
*
|
|
7416
7586
|
* By default, the input is not required.
|
|
7417
7587
|
*/
|
|
@@ -7431,8 +7601,7 @@ export namespace ModelGetBulkResponse {
|
|
|
7431
7601
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
7432
7602
|
* defined
|
|
7433
7603
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
7434
|
-
* - \`
|
|
7435
|
-
* value
|
|
7604
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
7436
7605
|
*
|
|
7437
7606
|
* By default, the input is not required.
|
|
7438
7607
|
*/
|
|
@@ -7443,12 +7612,9 @@ export namespace ModelGetBulkResponse {
|
|
|
7443
7612
|
always?: boolean;
|
|
7444
7613
|
|
|
7445
7614
|
/**
|
|
7446
|
-
* Makes this input required when
|
|
7447
|
-
*
|
|
7448
|
-
* - Key: name of the input to check
|
|
7449
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
7615
|
+
* Makes this input required when other inputs have one of the listed values
|
|
7450
7616
|
*/
|
|
7451
|
-
|
|
7617
|
+
conditional?: Required.Conditional;
|
|
7452
7618
|
|
|
7453
7619
|
/**
|
|
7454
7620
|
* Makes this input required when another input is defined:
|
|
@@ -7466,6 +7632,26 @@ export namespace ModelGetBulkResponse {
|
|
|
7466
7632
|
*/
|
|
7467
7633
|
ifNotDefined?: unknown;
|
|
7468
7634
|
}
|
|
7635
|
+
|
|
7636
|
+
export namespace Required {
|
|
7637
|
+
/**
|
|
7638
|
+
* Makes this input required when other inputs have one of the listed values
|
|
7639
|
+
*/
|
|
7640
|
+
export interface Conditional {
|
|
7641
|
+
/**
|
|
7642
|
+
* The conditions to check:
|
|
7643
|
+
*
|
|
7644
|
+
* - Key: name of the input to check
|
|
7645
|
+
* - Value: values of that input that satisfy the condition
|
|
7646
|
+
*/
|
|
7647
|
+
values: unknown;
|
|
7648
|
+
|
|
7649
|
+
/**
|
|
7650
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
7651
|
+
*/
|
|
7652
|
+
operator?: 'and' | 'or';
|
|
7653
|
+
}
|
|
7654
|
+
}
|
|
7469
7655
|
}
|
|
7470
7656
|
|
|
7471
7657
|
/**
|
|
@@ -8299,8 +8485,8 @@ export namespace ModelTransferResponse {
|
|
|
8299
8485
|
updatedAt: string;
|
|
8300
8486
|
|
|
8301
8487
|
/**
|
|
8302
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
8303
|
-
* 75:
|
|
8488
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
8489
|
+
* 75: Max plan 100: Enterprise plan
|
|
8304
8490
|
*/
|
|
8305
8491
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
8306
8492
|
|
|
@@ -8349,6 +8535,12 @@ export namespace ModelTransferResponse {
|
|
|
8349
8535
|
*/
|
|
8350
8536
|
inputs?: Array<Model.Input>;
|
|
8351
8537
|
|
|
8538
|
+
/**
|
|
8539
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
8540
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
8541
|
+
*/
|
|
8542
|
+
jobId?: string;
|
|
8543
|
+
|
|
8352
8544
|
/**
|
|
8353
8545
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
8354
8546
|
* parameters
|
|
@@ -8738,8 +8930,7 @@ export namespace ModelTransferResponse {
|
|
|
8738
8930
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
8739
8931
|
* defined
|
|
8740
8932
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
8741
|
-
* - \`
|
|
8742
|
-
* value
|
|
8933
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
8743
8934
|
*
|
|
8744
8935
|
* By default, the input is not required.
|
|
8745
8936
|
*/
|
|
@@ -8759,8 +8950,7 @@ export namespace ModelTransferResponse {
|
|
|
8759
8950
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
8760
8951
|
* defined
|
|
8761
8952
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
8762
|
-
* - \`
|
|
8763
|
-
* value
|
|
8953
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
8764
8954
|
*
|
|
8765
8955
|
* By default, the input is not required.
|
|
8766
8956
|
*/
|
|
@@ -8771,12 +8961,9 @@ export namespace ModelTransferResponse {
|
|
|
8771
8961
|
always?: boolean;
|
|
8772
8962
|
|
|
8773
8963
|
/**
|
|
8774
|
-
* Makes this input required when
|
|
8775
|
-
*
|
|
8776
|
-
* - Key: name of the input to check
|
|
8777
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
8964
|
+
* Makes this input required when other inputs have one of the listed values
|
|
8778
8965
|
*/
|
|
8779
|
-
|
|
8966
|
+
conditional?: Required.Conditional;
|
|
8780
8967
|
|
|
8781
8968
|
/**
|
|
8782
8969
|
* Makes this input required when another input is defined:
|
|
@@ -8794,6 +8981,26 @@ export namespace ModelTransferResponse {
|
|
|
8794
8981
|
*/
|
|
8795
8982
|
ifNotDefined?: unknown;
|
|
8796
8983
|
}
|
|
8984
|
+
|
|
8985
|
+
export namespace Required {
|
|
8986
|
+
/**
|
|
8987
|
+
* Makes this input required when other inputs have one of the listed values
|
|
8988
|
+
*/
|
|
8989
|
+
export interface Conditional {
|
|
8990
|
+
/**
|
|
8991
|
+
* The conditions to check:
|
|
8992
|
+
*
|
|
8993
|
+
* - Key: name of the input to check
|
|
8994
|
+
* - Value: values of that input that satisfy the condition
|
|
8995
|
+
*/
|
|
8996
|
+
values: unknown;
|
|
8997
|
+
|
|
8998
|
+
/**
|
|
8999
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
9000
|
+
*/
|
|
9001
|
+
operator?: 'and' | 'or';
|
|
9002
|
+
}
|
|
9003
|
+
}
|
|
8797
9004
|
}
|
|
8798
9005
|
|
|
8799
9006
|
/**
|
|
@@ -10398,6 +10605,9 @@ export interface ModelUpdateTagsParams {
|
|
|
10398
10605
|
|
|
10399
10606
|
Models.Description = Description;
|
|
10400
10607
|
Models.Examples = Examples;
|
|
10608
|
+
Models.Presets = Presets;
|
|
10609
|
+
Models.PromptGuide = PromptGuide;
|
|
10610
|
+
Models.Scores = Scores;
|
|
10401
10611
|
Models.Train = Train;
|
|
10402
10612
|
Models.TrainingImages = TrainingImages;
|
|
10403
10613
|
|
|
@@ -10444,6 +10654,34 @@ export declare namespace Models {
|
|
|
10444
10654
|
type ExampleListParams as ExampleListParams,
|
|
10445
10655
|
};
|
|
10446
10656
|
|
|
10657
|
+
export {
|
|
10658
|
+
Presets as Presets,
|
|
10659
|
+
type PresetCreateResponse as PresetCreateResponse,
|
|
10660
|
+
type PresetUpdateResponse as PresetUpdateResponse,
|
|
10661
|
+
type PresetListResponse as PresetListResponse,
|
|
10662
|
+
type PresetDeleteResponse as PresetDeleteResponse,
|
|
10663
|
+
type PresetCreateParams as PresetCreateParams,
|
|
10664
|
+
type PresetUpdateParams as PresetUpdateParams,
|
|
10665
|
+
type PresetListParams as PresetListParams,
|
|
10666
|
+
type PresetDeleteParams as PresetDeleteParams,
|
|
10667
|
+
};
|
|
10668
|
+
|
|
10669
|
+
export {
|
|
10670
|
+
PromptGuide as PromptGuide,
|
|
10671
|
+
type PromptGuideRetrieveResponse as PromptGuideRetrieveResponse,
|
|
10672
|
+
type PromptGuideUpdateResponse as PromptGuideUpdateResponse,
|
|
10673
|
+
type PromptGuideRetrieveParams as PromptGuideRetrieveParams,
|
|
10674
|
+
type PromptGuideUpdateParams as PromptGuideUpdateParams,
|
|
10675
|
+
};
|
|
10676
|
+
|
|
10677
|
+
export {
|
|
10678
|
+
Scores as Scores,
|
|
10679
|
+
type ScoreRetrievePromptResponse as ScoreRetrievePromptResponse,
|
|
10680
|
+
type ScoreRetrieveTrainingDatasetResponse as ScoreRetrieveTrainingDatasetResponse,
|
|
10681
|
+
type ScoreRetrievePromptParams as ScoreRetrievePromptParams,
|
|
10682
|
+
type ScoreRetrieveTrainingDatasetParams as ScoreRetrieveTrainingDatasetParams,
|
|
10683
|
+
};
|
|
10684
|
+
|
|
10447
10685
|
export {
|
|
10448
10686
|
Train as Train,
|
|
10449
10687
|
type TrainActionResponse as TrainActionResponse,
|