@scenario-labs/sdk 3.1.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 +119 -0
- package/client.d.mts +22 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +22 -7
- 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_converter.d.mts +6 -0
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +6 -0
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +99 -12
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +99 -12
- package/lib/workflow_converter.mjs.map +1 -1
- package/lib/workflow_validator.d.mts +8 -1
- package/lib/workflow_validator.d.mts.map +1 -1
- package/lib/workflow_validator.d.ts +8 -1
- package/lib/workflow_validator.d.ts.map +1 -1
- package/lib/workflow_validator.js +154 -1
- package/lib/workflow_validator.js.map +1 -1
- package/lib/workflow_validator.mjs +154 -1
- package/lib/workflow_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +304 -122
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +304 -122
- 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 +39 -5
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts +39 -5
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.js +16 -4
- package/resources/assets/download.js.map +1 -1
- package/resources/assets/download.mjs +16 -4
- 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 +2089 -437
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +2089 -437
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +62 -9
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +62 -9
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- 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 +253 -120
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +253 -120
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +13 -5
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +13 -5
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +18 -0
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +18 -0
- 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 +198 -92
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +198 -92
- 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 +346 -112
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +346 -112
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +57 -12
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +57 -12
- 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 +186 -83
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +186 -83
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +4 -3
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +4 -3
- 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 +168 -5
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +168 -5
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +17 -3
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +17 -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 +13 -3
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +13 -3
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +16 -4
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +16 -4
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +85 -51
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +85 -51
- 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 +1639 -385
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +1639 -385
- 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 +107 -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_converter.ts +126 -12
- package/src/lib/workflow_validator.ts +183 -1
- package/src/resources/assets/assets.ts +766 -132
- package/src/resources/assets/download.ts +61 -9
- 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 +2935 -512
- package/src/resources/index.ts +37 -0
- package/src/resources/jobs.ts +277 -121
- package/src/resources/models/description.ts +126 -2
- package/src/resources/models/examples.ts +318 -92
- package/src/resources/models/index.ts +25 -0
- package/src/resources/models/models.ts +463 -124
- 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 +202 -87
- 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 +220 -8
- 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 +30 -7
- package/src/resources/usages.ts +98 -50
- package/src/resources/workflows.ts +2053 -434
- 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
|
@@ -4,6 +4,7 @@ import { APIResource } from '../../core/resource';
|
|
|
4
4
|
import { APIPromise } from '../../core/api-promise';
|
|
5
5
|
import { RequestOptions } from '../../internal/request-options';
|
|
6
6
|
import { path } from '../../internal/utils/path';
|
|
7
|
+
import { omitUndefined } from '../../internal/utils/values';
|
|
7
8
|
|
|
8
9
|
export class Train extends APIResource {
|
|
9
10
|
/**
|
|
@@ -14,11 +15,11 @@ export class Train extends APIResource {
|
|
|
14
15
|
params: TrainActionParams,
|
|
15
16
|
options?: RequestOptions,
|
|
16
17
|
): APIPromise<TrainActionResponse> {
|
|
17
|
-
const {
|
|
18
|
+
const { projectId, ...body } = params;
|
|
18
19
|
return this._client.post(path`/models/${modelID}/train/action`, {
|
|
19
|
-
query: { originalAssets, projectId },
|
|
20
20
|
body,
|
|
21
21
|
...options,
|
|
22
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
22
23
|
});
|
|
23
24
|
}
|
|
24
25
|
|
|
@@ -32,9 +33,9 @@ export class Train extends APIResource {
|
|
|
32
33
|
): APIPromise<TrainTriggerResponse> {
|
|
33
34
|
const { dryRun, originalAssets, projectId, trainingImagesCount, ...body } = params;
|
|
34
35
|
return this._client.put(path`/models/${modelID}/train`, {
|
|
35
|
-
query: { dryRun, originalAssets, projectId, trainingImagesCount },
|
|
36
36
|
body,
|
|
37
37
|
...options,
|
|
38
|
+
query: { dryRun, originalAssets, projectId, trainingImagesCount, ...omitUndefined(options?.query) },
|
|
38
39
|
});
|
|
39
40
|
}
|
|
40
41
|
}
|
|
@@ -179,8 +180,8 @@ export namespace TrainActionResponse {
|
|
|
179
180
|
updatedAt: string;
|
|
180
181
|
|
|
181
182
|
/**
|
|
182
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
183
|
-
* 75:
|
|
183
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
184
|
+
* 75: Max plan 100: Enterprise plan
|
|
184
185
|
*/
|
|
185
186
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
186
187
|
|
|
@@ -229,6 +230,12 @@ export namespace TrainActionResponse {
|
|
|
229
230
|
*/
|
|
230
231
|
inputs?: Array<Model.Input>;
|
|
231
232
|
|
|
233
|
+
/**
|
|
234
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
235
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
236
|
+
*/
|
|
237
|
+
jobId?: string;
|
|
238
|
+
|
|
232
239
|
/**
|
|
233
240
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
234
241
|
* parameters
|
|
@@ -493,7 +500,9 @@ export namespace TrainActionResponse {
|
|
|
493
500
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
494
501
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
495
502
|
* not able to create the asset on the flight on API side with dataurl without
|
|
496
|
-
* data:kind, prefix
|
|
503
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
504
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
505
|
+
* generation time.
|
|
497
506
|
*/
|
|
498
507
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
499
508
|
|
|
@@ -521,8 +530,9 @@ export namespace TrainActionResponse {
|
|
|
521
530
|
maxDuration?: number;
|
|
522
531
|
|
|
523
532
|
/**
|
|
524
|
-
* The maximum allowed length for \`string\`
|
|
525
|
-
* \`string_array
|
|
533
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
534
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
535
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
526
536
|
*/
|
|
527
537
|
maxLength?: number;
|
|
528
538
|
|
|
@@ -539,8 +549,9 @@ export namespace TrainActionResponse {
|
|
|
539
549
|
min?: number;
|
|
540
550
|
|
|
541
551
|
/**
|
|
542
|
-
* The minimum allowed length for string
|
|
543
|
-
* \`string_array
|
|
552
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
553
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
554
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
544
555
|
*/
|
|
545
556
|
minLength?: number;
|
|
546
557
|
|
|
@@ -614,8 +625,7 @@ export namespace TrainActionResponse {
|
|
|
614
625
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
615
626
|
* defined
|
|
616
627
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
617
|
-
* - \`
|
|
618
|
-
* value
|
|
628
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
619
629
|
*
|
|
620
630
|
* By default, the input is not required.
|
|
621
631
|
*/
|
|
@@ -635,8 +645,7 @@ export namespace TrainActionResponse {
|
|
|
635
645
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
636
646
|
* defined
|
|
637
647
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
638
|
-
* - \`
|
|
639
|
-
* value
|
|
648
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
640
649
|
*
|
|
641
650
|
* By default, the input is not required.
|
|
642
651
|
*/
|
|
@@ -647,12 +656,9 @@ export namespace TrainActionResponse {
|
|
|
647
656
|
always?: boolean;
|
|
648
657
|
|
|
649
658
|
/**
|
|
650
|
-
* Makes this input required when
|
|
651
|
-
*
|
|
652
|
-
* - Key: name of the input to check
|
|
653
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
659
|
+
* Makes this input required when other inputs have one of the listed values
|
|
654
660
|
*/
|
|
655
|
-
|
|
661
|
+
conditional?: Required.Conditional;
|
|
656
662
|
|
|
657
663
|
/**
|
|
658
664
|
* Makes this input required when another input is defined:
|
|
@@ -670,6 +676,26 @@ export namespace TrainActionResponse {
|
|
|
670
676
|
*/
|
|
671
677
|
ifNotDefined?: unknown;
|
|
672
678
|
}
|
|
679
|
+
|
|
680
|
+
export namespace Required {
|
|
681
|
+
/**
|
|
682
|
+
* Makes this input required when other inputs have one of the listed values
|
|
683
|
+
*/
|
|
684
|
+
export interface Conditional {
|
|
685
|
+
/**
|
|
686
|
+
* The conditions to check:
|
|
687
|
+
*
|
|
688
|
+
* - Key: name of the input to check
|
|
689
|
+
* - Value: values of that input that satisfy the condition
|
|
690
|
+
*/
|
|
691
|
+
values: unknown;
|
|
692
|
+
|
|
693
|
+
/**
|
|
694
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
695
|
+
*/
|
|
696
|
+
operator?: 'and' | 'or';
|
|
697
|
+
}
|
|
698
|
+
}
|
|
673
699
|
}
|
|
674
700
|
|
|
675
701
|
/**
|
|
@@ -1236,6 +1262,11 @@ export namespace TrainActionResponse {
|
|
|
1236
1262
|
*/
|
|
1237
1263
|
lorasComponent?: UiConfig.LorasComponent;
|
|
1238
1264
|
|
|
1265
|
+
/**
|
|
1266
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
1267
|
+
*/
|
|
1268
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
1269
|
+
|
|
1239
1270
|
/**
|
|
1240
1271
|
* Configuration for the presets
|
|
1241
1272
|
*/
|
|
@@ -1290,6 +1321,10 @@ export namespace TrainActionResponse {
|
|
|
1290
1321
|
modelIdInput?: string;
|
|
1291
1322
|
}
|
|
1292
1323
|
|
|
1324
|
+
export interface OutputProperties {
|
|
1325
|
+
label: string;
|
|
1326
|
+
}
|
|
1327
|
+
|
|
1293
1328
|
export interface Preset {
|
|
1294
1329
|
fields: Array<string>;
|
|
1295
1330
|
|
|
@@ -1362,8 +1397,8 @@ export interface TrainTriggerResponse {
|
|
|
1362
1397
|
/**
|
|
1363
1398
|
* Compute Units cost per billing action for this request, after discount. Values
|
|
1364
1399
|
* sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
|
|
1365
|
-
* charge appear. Lets clients split the total (e.g. generation vs
|
|
1366
|
-
*
|
|
1400
|
+
* charge appear. Lets clients split the total (e.g. generation vs `quality-gate`)
|
|
1401
|
+
* — including on dryRun estimates.
|
|
1367
1402
|
*/
|
|
1368
1403
|
costDetails?: TrainTriggerResponse.CostDetails;
|
|
1369
1404
|
|
|
@@ -1568,6 +1603,7 @@ export namespace TrainTriggerResponse {
|
|
|
1568
1603
|
| 'remove-background'
|
|
1569
1604
|
| 'transform'
|
|
1570
1605
|
| 'user-approval'
|
|
1606
|
+
| 'user-selection'
|
|
1571
1607
|
| 'workflow';
|
|
1572
1608
|
|
|
1573
1609
|
/**
|
|
@@ -1598,14 +1634,15 @@ export namespace TrainTriggerResponse {
|
|
|
1598
1634
|
includeOutputsInWorkflowJob?: true;
|
|
1599
1635
|
|
|
1600
1636
|
/**
|
|
1601
|
-
* The inputs of the node.
|
|
1637
|
+
* The inputs of the node. For a user-selection node, the array input's `min`/`max`
|
|
1638
|
+
* bound how many items the user may pick (defaults: 1 and 100); conditional
|
|
1639
|
+
* connections may be present as additional inputs.
|
|
1602
1640
|
*/
|
|
1603
1641
|
inputs?: Array<Flow.Input>;
|
|
1604
1642
|
|
|
1605
1643
|
/**
|
|
1606
|
-
* Statically-configured items for a List node
|
|
1607
|
-
*
|
|
1608
|
-
* numbers, or asset IDs.
|
|
1644
|
+
* Statically-configured items for a List node, or the frozen candidate list of a
|
|
1645
|
+
* UserSelection node. The values can be strings, numbers, or asset IDs.
|
|
1609
1646
|
*/
|
|
1610
1647
|
items?: Array<string>;
|
|
1611
1648
|
|
|
@@ -1754,7 +1791,9 @@ export namespace TrainTriggerResponse {
|
|
|
1754
1791
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1755
1792
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1756
1793
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1757
|
-
* data:kind, prefix
|
|
1794
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1795
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1796
|
+
* generation time.
|
|
1758
1797
|
*/
|
|
1759
1798
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1760
1799
|
|
|
@@ -1782,8 +1821,9 @@ export namespace TrainTriggerResponse {
|
|
|
1782
1821
|
maxDuration?: number;
|
|
1783
1822
|
|
|
1784
1823
|
/**
|
|
1785
|
-
* The maximum allowed length for \`string\`
|
|
1786
|
-
* \`string_array
|
|
1824
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1825
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1826
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1787
1827
|
*/
|
|
1788
1828
|
maxLength?: number;
|
|
1789
1829
|
|
|
@@ -1800,8 +1840,9 @@ export namespace TrainTriggerResponse {
|
|
|
1800
1840
|
min?: number;
|
|
1801
1841
|
|
|
1802
1842
|
/**
|
|
1803
|
-
* The minimum allowed length for string
|
|
1804
|
-
* \`string_array
|
|
1843
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1844
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1845
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1805
1846
|
*/
|
|
1806
1847
|
minLength?: number;
|
|
1807
1848
|
|
|
@@ -1881,8 +1922,7 @@ export namespace TrainTriggerResponse {
|
|
|
1881
1922
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1882
1923
|
* defined
|
|
1883
1924
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1884
|
-
* - \`
|
|
1885
|
-
* value
|
|
1925
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1886
1926
|
*
|
|
1887
1927
|
* By default, the input is not required.
|
|
1888
1928
|
*/
|
|
@@ -1981,7 +2021,9 @@ export namespace TrainTriggerResponse {
|
|
|
1981
2021
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1982
2022
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1983
2023
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1984
|
-
* data:kind, prefix
|
|
2024
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2025
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2026
|
+
* generation time.
|
|
1985
2027
|
*/
|
|
1986
2028
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1987
2029
|
|
|
@@ -2009,8 +2051,9 @@ export namespace TrainTriggerResponse {
|
|
|
2009
2051
|
maxDuration?: number;
|
|
2010
2052
|
|
|
2011
2053
|
/**
|
|
2012
|
-
* The maximum allowed length for \`string\`
|
|
2013
|
-
* \`string_array
|
|
2054
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2055
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2056
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2014
2057
|
*/
|
|
2015
2058
|
maxLength?: number;
|
|
2016
2059
|
|
|
@@ -2027,8 +2070,9 @@ export namespace TrainTriggerResponse {
|
|
|
2027
2070
|
min?: number;
|
|
2028
2071
|
|
|
2029
2072
|
/**
|
|
2030
|
-
* The minimum allowed length for string
|
|
2031
|
-
* \`string_array
|
|
2073
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2074
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2075
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2032
2076
|
*/
|
|
2033
2077
|
minLength?: number;
|
|
2034
2078
|
|
|
@@ -2108,8 +2152,7 @@ export namespace TrainTriggerResponse {
|
|
|
2108
2152
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2109
2153
|
* defined
|
|
2110
2154
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2111
|
-
* - \`
|
|
2112
|
-
* value
|
|
2155
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2113
2156
|
*
|
|
2114
2157
|
* By default, the input is not required.
|
|
2115
2158
|
*/
|
|
@@ -2166,8 +2209,7 @@ export namespace TrainTriggerResponse {
|
|
|
2166
2209
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2167
2210
|
* defined
|
|
2168
2211
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2169
|
-
* - \`
|
|
2170
|
-
* value
|
|
2212
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2171
2213
|
*
|
|
2172
2214
|
* By default, the input is not required.
|
|
2173
2215
|
*/
|
|
@@ -2178,12 +2220,9 @@ export namespace TrainTriggerResponse {
|
|
|
2178
2220
|
always?: boolean;
|
|
2179
2221
|
|
|
2180
2222
|
/**
|
|
2181
|
-
* Makes this input required when
|
|
2182
|
-
*
|
|
2183
|
-
* - Key: name of the input to check
|
|
2184
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2223
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2185
2224
|
*/
|
|
2186
|
-
|
|
2225
|
+
conditional?: Required.Conditional;
|
|
2187
2226
|
|
|
2188
2227
|
/**
|
|
2189
2228
|
* Makes this input required when another input is defined:
|
|
@@ -2201,6 +2240,26 @@ export namespace TrainTriggerResponse {
|
|
|
2201
2240
|
*/
|
|
2202
2241
|
ifNotDefined?: unknown;
|
|
2203
2242
|
}
|
|
2243
|
+
|
|
2244
|
+
export namespace Required {
|
|
2245
|
+
/**
|
|
2246
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2247
|
+
*/
|
|
2248
|
+
export interface Conditional {
|
|
2249
|
+
/**
|
|
2250
|
+
* The conditions to check:
|
|
2251
|
+
*
|
|
2252
|
+
* - Key: name of the input to check
|
|
2253
|
+
* - Value: values of that input that satisfy the condition
|
|
2254
|
+
*/
|
|
2255
|
+
values: unknown;
|
|
2256
|
+
|
|
2257
|
+
/**
|
|
2258
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2259
|
+
*/
|
|
2260
|
+
operator?: 'and' | 'or';
|
|
2261
|
+
}
|
|
2262
|
+
}
|
|
2204
2263
|
}
|
|
2205
2264
|
|
|
2206
2265
|
/**
|
|
@@ -2241,8 +2300,7 @@ export namespace TrainTriggerResponse {
|
|
|
2241
2300
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2242
2301
|
* defined
|
|
2243
2302
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2244
|
-
* - \`
|
|
2245
|
-
* value
|
|
2303
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2246
2304
|
*
|
|
2247
2305
|
* By default, the input is not required.
|
|
2248
2306
|
*/
|
|
@@ -2253,12 +2311,9 @@ export namespace TrainTriggerResponse {
|
|
|
2253
2311
|
always?: boolean;
|
|
2254
2312
|
|
|
2255
2313
|
/**
|
|
2256
|
-
* Makes this input required when
|
|
2257
|
-
*
|
|
2258
|
-
* - Key: name of the input to check
|
|
2259
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2314
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2260
2315
|
*/
|
|
2261
|
-
|
|
2316
|
+
conditional?: Required.Conditional;
|
|
2262
2317
|
|
|
2263
2318
|
/**
|
|
2264
2319
|
* Makes this input required when another input is defined:
|
|
@@ -2276,6 +2331,26 @@ export namespace TrainTriggerResponse {
|
|
|
2276
2331
|
*/
|
|
2277
2332
|
ifNotDefined?: unknown;
|
|
2278
2333
|
}
|
|
2334
|
+
|
|
2335
|
+
export namespace Required {
|
|
2336
|
+
/**
|
|
2337
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2338
|
+
*/
|
|
2339
|
+
export interface Conditional {
|
|
2340
|
+
/**
|
|
2341
|
+
* The conditions to check:
|
|
2342
|
+
*
|
|
2343
|
+
* - Key: name of the input to check
|
|
2344
|
+
* - Value: values of that input that satisfy the condition
|
|
2345
|
+
*/
|
|
2346
|
+
values: unknown;
|
|
2347
|
+
|
|
2348
|
+
/**
|
|
2349
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2350
|
+
*/
|
|
2351
|
+
operator?: 'and' | 'or';
|
|
2352
|
+
}
|
|
2353
|
+
}
|
|
2279
2354
|
}
|
|
2280
2355
|
|
|
2281
2356
|
/**
|
|
@@ -2333,7 +2408,7 @@ export namespace TrainTriggerResponse {
|
|
|
2333
2408
|
|
|
2334
2409
|
/**
|
|
2335
2410
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2336
|
-
* top of the generation itself, such as `
|
|
2411
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2337
2412
|
*
|
|
2338
2413
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2339
2414
|
* values here.
|
|
@@ -2363,7 +2438,7 @@ export namespace TrainTriggerResponse {
|
|
|
2363
2438
|
export namespace Billing {
|
|
2364
2439
|
/**
|
|
2365
2440
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2366
|
-
* top of the generation itself, such as `
|
|
2441
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2367
2442
|
*
|
|
2368
2443
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2369
2444
|
* values here.
|
|
@@ -2383,7 +2458,7 @@ export namespace TrainTriggerResponse {
|
|
|
2383
2458
|
export interface CuCostDetails {
|
|
2384
2459
|
'ip-detection'?: number;
|
|
2385
2460
|
|
|
2386
|
-
'
|
|
2461
|
+
'quality-gate'?: number;
|
|
2387
2462
|
}
|
|
2388
2463
|
}
|
|
2389
2464
|
}
|
|
@@ -2523,8 +2598,8 @@ export namespace TrainTriggerResponse {
|
|
|
2523
2598
|
updatedAt: string;
|
|
2524
2599
|
|
|
2525
2600
|
/**
|
|
2526
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
2527
|
-
* 75:
|
|
2601
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
2602
|
+
* 75: Max plan 100: Enterprise plan
|
|
2528
2603
|
*/
|
|
2529
2604
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
2530
2605
|
|
|
@@ -2573,6 +2648,12 @@ export namespace TrainTriggerResponse {
|
|
|
2573
2648
|
*/
|
|
2574
2649
|
inputs?: Array<Model.Input>;
|
|
2575
2650
|
|
|
2651
|
+
/**
|
|
2652
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
2653
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
2654
|
+
*/
|
|
2655
|
+
jobId?: string;
|
|
2656
|
+
|
|
2576
2657
|
/**
|
|
2577
2658
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
2578
2659
|
* parameters
|
|
@@ -2837,7 +2918,9 @@ export namespace TrainTriggerResponse {
|
|
|
2837
2918
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2838
2919
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2839
2920
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2840
|
-
* data:kind, prefix
|
|
2921
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2922
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2923
|
+
* generation time.
|
|
2841
2924
|
*/
|
|
2842
2925
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2843
2926
|
|
|
@@ -2865,8 +2948,9 @@ export namespace TrainTriggerResponse {
|
|
|
2865
2948
|
maxDuration?: number;
|
|
2866
2949
|
|
|
2867
2950
|
/**
|
|
2868
|
-
* The maximum allowed length for \`string\`
|
|
2869
|
-
* \`string_array
|
|
2951
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2952
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2953
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2870
2954
|
*/
|
|
2871
2955
|
maxLength?: number;
|
|
2872
2956
|
|
|
@@ -2883,8 +2967,9 @@ export namespace TrainTriggerResponse {
|
|
|
2883
2967
|
min?: number;
|
|
2884
2968
|
|
|
2885
2969
|
/**
|
|
2886
|
-
* The minimum allowed length for string
|
|
2887
|
-
* \`string_array
|
|
2970
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2971
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2972
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2888
2973
|
*/
|
|
2889
2974
|
minLength?: number;
|
|
2890
2975
|
|
|
@@ -2958,8 +3043,7 @@ export namespace TrainTriggerResponse {
|
|
|
2958
3043
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2959
3044
|
* defined
|
|
2960
3045
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2961
|
-
* - \`
|
|
2962
|
-
* value
|
|
3046
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2963
3047
|
*
|
|
2964
3048
|
* By default, the input is not required.
|
|
2965
3049
|
*/
|
|
@@ -2979,8 +3063,7 @@ export namespace TrainTriggerResponse {
|
|
|
2979
3063
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2980
3064
|
* defined
|
|
2981
3065
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2982
|
-
* - \`
|
|
2983
|
-
* value
|
|
3066
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2984
3067
|
*
|
|
2985
3068
|
* By default, the input is not required.
|
|
2986
3069
|
*/
|
|
@@ -2991,12 +3074,9 @@ export namespace TrainTriggerResponse {
|
|
|
2991
3074
|
always?: boolean;
|
|
2992
3075
|
|
|
2993
3076
|
/**
|
|
2994
|
-
* Makes this input required when
|
|
2995
|
-
*
|
|
2996
|
-
* - Key: name of the input to check
|
|
2997
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
3077
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2998
3078
|
*/
|
|
2999
|
-
|
|
3079
|
+
conditional?: Required.Conditional;
|
|
3000
3080
|
|
|
3001
3081
|
/**
|
|
3002
3082
|
* Makes this input required when another input is defined:
|
|
@@ -3014,6 +3094,26 @@ export namespace TrainTriggerResponse {
|
|
|
3014
3094
|
*/
|
|
3015
3095
|
ifNotDefined?: unknown;
|
|
3016
3096
|
}
|
|
3097
|
+
|
|
3098
|
+
export namespace Required {
|
|
3099
|
+
/**
|
|
3100
|
+
* Makes this input required when other inputs have one of the listed values
|
|
3101
|
+
*/
|
|
3102
|
+
export interface Conditional {
|
|
3103
|
+
/**
|
|
3104
|
+
* The conditions to check:
|
|
3105
|
+
*
|
|
3106
|
+
* - Key: name of the input to check
|
|
3107
|
+
* - Value: values of that input that satisfy the condition
|
|
3108
|
+
*/
|
|
3109
|
+
values: unknown;
|
|
3110
|
+
|
|
3111
|
+
/**
|
|
3112
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
3113
|
+
*/
|
|
3114
|
+
operator?: 'and' | 'or';
|
|
3115
|
+
}
|
|
3116
|
+
}
|
|
3017
3117
|
}
|
|
3018
3118
|
|
|
3019
3119
|
/**
|
|
@@ -3580,6 +3680,11 @@ export namespace TrainTriggerResponse {
|
|
|
3580
3680
|
*/
|
|
3581
3681
|
lorasComponent?: UiConfig.LorasComponent;
|
|
3582
3682
|
|
|
3683
|
+
/**
|
|
3684
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
3685
|
+
*/
|
|
3686
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
3687
|
+
|
|
3583
3688
|
/**
|
|
3584
3689
|
* Configuration for the presets
|
|
3585
3690
|
*/
|
|
@@ -3634,6 +3739,10 @@ export namespace TrainTriggerResponse {
|
|
|
3634
3739
|
modelIdInput?: string;
|
|
3635
3740
|
}
|
|
3636
3741
|
|
|
3742
|
+
export interface OutputProperties {
|
|
3743
|
+
label: string;
|
|
3744
|
+
}
|
|
3745
|
+
|
|
3637
3746
|
export interface Preset {
|
|
3638
3747
|
fields: Array<string>;
|
|
3639
3748
|
|
|
@@ -3700,8 +3809,8 @@ export namespace TrainTriggerResponse {
|
|
|
3700
3809
|
/**
|
|
3701
3810
|
* Compute Units cost per billing action for this request, after discount. Values
|
|
3702
3811
|
* sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
|
|
3703
|
-
* charge appear. Lets clients split the total (e.g. generation vs
|
|
3704
|
-
*
|
|
3812
|
+
* charge appear. Lets clients split the total (e.g. generation vs `quality-gate`)
|
|
3813
|
+
* — including on dryRun estimates.
|
|
3705
3814
|
*/
|
|
3706
3815
|
export interface CostDetails {
|
|
3707
3816
|
'assistant-message'?: number;
|
|
@@ -3726,6 +3835,8 @@ export namespace TrainTriggerResponse {
|
|
|
3726
3835
|
|
|
3727
3836
|
prompt?: number;
|
|
3728
3837
|
|
|
3838
|
+
'quality-gate'?: number;
|
|
3839
|
+
|
|
3729
3840
|
'remove-background'?: number;
|
|
3730
3841
|
|
|
3731
3842
|
repaint?: number;
|
|
@@ -3738,8 +3849,6 @@ export namespace TrainTriggerResponse {
|
|
|
3738
3849
|
|
|
3739
3850
|
'skybox-upscale-360'?: number;
|
|
3740
3851
|
|
|
3741
|
-
'slop-detection'?: number;
|
|
3742
|
-
|
|
3743
3852
|
texture?: number;
|
|
3744
3853
|
|
|
3745
3854
|
'train-model'?: number;
|
|
@@ -3761,8 +3870,16 @@ export namespace TrainTriggerResponse {
|
|
|
3761
3870
|
action: 'allowed' | 'blocked' | 'flagged';
|
|
3762
3871
|
|
|
3763
3872
|
/**
|
|
3764
|
-
*
|
|
3765
|
-
*
|
|
3873
|
+
* Number of images the detectors actually analyzed — a video counts as each of its
|
|
3874
|
+
* extracted frames, and an image that could not be read is excluded (and not
|
|
3875
|
+
* billed). Each of them is priced once per enabled filter.
|
|
3876
|
+
*/
|
|
3877
|
+
analyzedImagesCount: number;
|
|
3878
|
+
|
|
3879
|
+
/**
|
|
3880
|
+
* IP-detection CU fee, separate from creativeUnitsCost: it follows the provider
|
|
3881
|
+
* tokens the run sends — the prompt plus every analyzed image, once per enabled
|
|
3882
|
+
* filter — with a 1 CU minimum per run.
|
|
3766
3883
|
*/
|
|
3767
3884
|
creativeUnitsCharged: number;
|
|
3768
3885
|
|
|
@@ -3777,7 +3894,8 @@ export namespace TrainTriggerResponse {
|
|
|
3777
3894
|
findings: Array<IPDetection.Finding>;
|
|
3778
3895
|
|
|
3779
3896
|
/**
|
|
3780
|
-
*
|
|
3897
|
+
* Whether a filter considered the inputs an IP risk. Independent of `action`: a
|
|
3898
|
+
* request blocked because a detector errored is `blocked` and NOT flagged.
|
|
3781
3899
|
*/
|
|
3782
3900
|
flagged: boolean;
|
|
3783
3901
|
|
|
@@ -3836,11 +3954,6 @@ export interface TrainActionParams {
|
|
|
3836
3954
|
*/
|
|
3837
3955
|
action: 'cancel';
|
|
3838
3956
|
|
|
3839
|
-
/**
|
|
3840
|
-
* Query param: If set to true, returns the original asset without transformation
|
|
3841
|
-
*/
|
|
3842
|
-
originalAssets?: boolean;
|
|
3843
|
-
|
|
3844
3957
|
/**
|
|
3845
3958
|
* Query param: The projectId used for ownership resource management. Either to
|
|
3846
3959
|
* assert ownership or to set the owner of the resource(s)
|
|
@@ -3850,9 +3963,10 @@ export interface TrainActionParams {
|
|
|
3850
3963
|
|
|
3851
3964
|
export interface TrainTriggerParams {
|
|
3852
3965
|
/**
|
|
3853
|
-
* Query param
|
|
3966
|
+
* Query param: Estimate the operation instead of running it: the call returns a
|
|
3967
|
+
* 269 response carrying the creative units cost. `api` estimates at the API tier.
|
|
3854
3968
|
*/
|
|
3855
|
-
dryRun?:
|
|
3969
|
+
dryRun?: 'true' | 'api';
|
|
3856
3970
|
|
|
3857
3971
|
/**
|
|
3858
3972
|
* Query param: If set to true, returns the original asset without transformation
|
|
@@ -3866,7 +3980,8 @@ export interface TrainTriggerParams {
|
|
|
3866
3980
|
projectId?: string;
|
|
3867
3981
|
|
|
3868
3982
|
/**
|
|
3869
|
-
* Query param: Simulate the number of training images, used for dryRun purpose
|
|
3983
|
+
* Query param: Simulate the number of training images, used for dryRun purpose.
|
|
3984
|
+
* Ignored if the model already has training images.
|
|
3870
3985
|
*/
|
|
3871
3986
|
trainingImagesCount?: number;
|
|
3872
3987
|
|