@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
|
@@ -72,8 +72,8 @@ export declare namespace TrainActionResponse {
|
|
|
72
72
|
*/
|
|
73
73
|
updatedAt: string;
|
|
74
74
|
/**
|
|
75
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
76
|
-
* 75:
|
|
75
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
76
|
+
* 75: Max plan 100: Enterprise plan
|
|
77
77
|
*/
|
|
78
78
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
79
79
|
/**
|
|
@@ -113,6 +113,11 @@ export declare namespace TrainActionResponse {
|
|
|
113
113
|
* it by modelId with GET /models/{modelId}
|
|
114
114
|
*/
|
|
115
115
|
inputs?: Array<Model.Input>;
|
|
116
|
+
/**
|
|
117
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
118
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
119
|
+
*/
|
|
120
|
+
jobId?: string;
|
|
116
121
|
/**
|
|
117
122
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
118
123
|
* parameters
|
|
@@ -326,7 +331,9 @@ export declare namespace TrainActionResponse {
|
|
|
326
331
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
327
332
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
328
333
|
* not able to create the asset on the flight on API side with dataurl without
|
|
329
|
-
* data:kind, prefix
|
|
334
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
335
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
336
|
+
* generation time.
|
|
330
337
|
*/
|
|
331
338
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
332
339
|
/**
|
|
@@ -349,8 +356,9 @@ export declare namespace TrainActionResponse {
|
|
|
349
356
|
*/
|
|
350
357
|
maxDuration?: number;
|
|
351
358
|
/**
|
|
352
|
-
* The maximum allowed length for \`string\`
|
|
353
|
-
* \`string_array
|
|
359
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
360
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
361
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
354
362
|
*/
|
|
355
363
|
maxLength?: number;
|
|
356
364
|
/**
|
|
@@ -364,8 +372,9 @@ export declare namespace TrainActionResponse {
|
|
|
364
372
|
*/
|
|
365
373
|
min?: number;
|
|
366
374
|
/**
|
|
367
|
-
* The minimum allowed length for string
|
|
368
|
-
* \`string_array
|
|
375
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
376
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
377
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
369
378
|
*/
|
|
370
379
|
minLength?: number;
|
|
371
380
|
/**
|
|
@@ -401,8 +410,7 @@ export declare namespace TrainActionResponse {
|
|
|
401
410
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
402
411
|
* defined
|
|
403
412
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
404
|
-
* - \`
|
|
405
|
-
* value
|
|
413
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
406
414
|
*
|
|
407
415
|
* By default, the input is not required.
|
|
408
416
|
*/
|
|
@@ -420,8 +428,7 @@ export declare namespace TrainActionResponse {
|
|
|
420
428
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
421
429
|
* defined
|
|
422
430
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
423
|
-
* - \`
|
|
424
|
-
* value
|
|
431
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
425
432
|
*
|
|
426
433
|
* By default, the input is not required.
|
|
427
434
|
*/
|
|
@@ -431,12 +438,9 @@ export declare namespace TrainActionResponse {
|
|
|
431
438
|
*/
|
|
432
439
|
always?: boolean;
|
|
433
440
|
/**
|
|
434
|
-
* Makes this input required when
|
|
435
|
-
*
|
|
436
|
-
* - Key: name of the input to check
|
|
437
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
441
|
+
* Makes this input required when other inputs have one of the listed values
|
|
438
442
|
*/
|
|
439
|
-
|
|
443
|
+
conditional?: Required.Conditional;
|
|
440
444
|
/**
|
|
441
445
|
* Makes this input required when another input is defined:
|
|
442
446
|
*
|
|
@@ -452,6 +456,24 @@ export declare namespace TrainActionResponse {
|
|
|
452
456
|
*/
|
|
453
457
|
ifNotDefined?: unknown;
|
|
454
458
|
}
|
|
459
|
+
namespace Required {
|
|
460
|
+
/**
|
|
461
|
+
* Makes this input required when other inputs have one of the listed values
|
|
462
|
+
*/
|
|
463
|
+
interface Conditional {
|
|
464
|
+
/**
|
|
465
|
+
* The conditions to check:
|
|
466
|
+
*
|
|
467
|
+
* - Key: name of the input to check
|
|
468
|
+
* - Value: values of that input that satisfy the condition
|
|
469
|
+
*/
|
|
470
|
+
values: unknown;
|
|
471
|
+
/**
|
|
472
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
473
|
+
*/
|
|
474
|
+
operator?: 'and' | 'or';
|
|
475
|
+
}
|
|
476
|
+
}
|
|
455
477
|
}
|
|
456
478
|
/**
|
|
457
479
|
* The parameters of the model
|
|
@@ -927,6 +949,12 @@ export declare namespace TrainActionResponse {
|
|
|
927
949
|
* Configuration for the loras component
|
|
928
950
|
*/
|
|
929
951
|
lorasComponent?: UiConfig.LorasComponent;
|
|
952
|
+
/**
|
|
953
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
954
|
+
*/
|
|
955
|
+
outputProperties?: {
|
|
956
|
+
[key: string]: UiConfig.OutputProperties;
|
|
957
|
+
};
|
|
930
958
|
/**
|
|
931
959
|
* Configuration for the presets
|
|
932
960
|
*/
|
|
@@ -974,6 +1002,9 @@ export declare namespace TrainActionResponse {
|
|
|
974
1002
|
*/
|
|
975
1003
|
modelIdInput?: string;
|
|
976
1004
|
}
|
|
1005
|
+
interface OutputProperties {
|
|
1006
|
+
label: string;
|
|
1007
|
+
}
|
|
977
1008
|
interface Preset {
|
|
978
1009
|
fields: Array<string>;
|
|
979
1010
|
presets: unknown;
|
|
@@ -1032,8 +1063,8 @@ export interface TrainTriggerResponse {
|
|
|
1032
1063
|
/**
|
|
1033
1064
|
* Compute Units cost per billing action for this request, after discount. Values
|
|
1034
1065
|
* sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
|
|
1035
|
-
* charge appear. Lets clients split the total (e.g. generation vs
|
|
1036
|
-
*
|
|
1066
|
+
* charge appear. Lets clients split the total (e.g. generation vs `quality-gate`)
|
|
1067
|
+
* — including on dryRun estimates.
|
|
1037
1068
|
*/
|
|
1038
1069
|
costDetails?: TrainTriggerResponse.CostDetails;
|
|
1039
1070
|
/**
|
|
@@ -1158,7 +1189,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
1158
1189
|
/**
|
|
1159
1190
|
* The type of the job for the node.
|
|
1160
1191
|
*/
|
|
1161
|
-
type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'workflow';
|
|
1192
|
+
type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'user-selection' | 'workflow';
|
|
1162
1193
|
/**
|
|
1163
1194
|
* List of produced assets for this node.
|
|
1164
1195
|
*/
|
|
@@ -1183,13 +1214,14 @@ export declare namespace TrainTriggerResponse {
|
|
|
1183
1214
|
*/
|
|
1184
1215
|
includeOutputsInWorkflowJob?: true;
|
|
1185
1216
|
/**
|
|
1186
|
-
* The inputs of the node.
|
|
1217
|
+
* The inputs of the node. For a user-selection node, the array input's `min`/`max`
|
|
1218
|
+
* bound how many items the user may pick (defaults: 1 and 100); conditional
|
|
1219
|
+
* connections may be present as additional inputs.
|
|
1187
1220
|
*/
|
|
1188
1221
|
inputs?: Array<Flow.Input>;
|
|
1189
1222
|
/**
|
|
1190
|
-
* Statically-configured items for a List node
|
|
1191
|
-
*
|
|
1192
|
-
* numbers, or asset IDs.
|
|
1223
|
+
* Statically-configured items for a List node, or the frozen candidate list of a
|
|
1224
|
+
* UserSelection node. The values can be strings, numbers, or asset IDs.
|
|
1193
1225
|
*/
|
|
1194
1226
|
items?: Array<string>;
|
|
1195
1227
|
/**
|
|
@@ -1306,7 +1338,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
1306
1338
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1307
1339
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1308
1340
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1309
|
-
* data:kind, prefix
|
|
1341
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1342
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1343
|
+
* generation time.
|
|
1310
1344
|
*/
|
|
1311
1345
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1312
1346
|
/**
|
|
@@ -1329,8 +1363,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
1329
1363
|
*/
|
|
1330
1364
|
maxDuration?: number;
|
|
1331
1365
|
/**
|
|
1332
|
-
* The maximum allowed length for \`string\`
|
|
1333
|
-
* \`string_array
|
|
1366
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1367
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1368
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1334
1369
|
*/
|
|
1335
1370
|
maxLength?: number;
|
|
1336
1371
|
/**
|
|
@@ -1344,8 +1379,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
1344
1379
|
*/
|
|
1345
1380
|
min?: number;
|
|
1346
1381
|
/**
|
|
1347
|
-
* The minimum allowed length for string
|
|
1348
|
-
* \`string_array
|
|
1382
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1383
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1384
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1349
1385
|
*/
|
|
1350
1386
|
minLength?: number;
|
|
1351
1387
|
/**
|
|
@@ -1386,8 +1422,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
1386
1422
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1387
1423
|
* defined
|
|
1388
1424
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1389
|
-
* - \`
|
|
1390
|
-
* value
|
|
1425
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1391
1426
|
*
|
|
1392
1427
|
* By default, the input is not required.
|
|
1393
1428
|
*/
|
|
@@ -1464,7 +1499,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
1464
1499
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1465
1500
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1466
1501
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1467
|
-
* data:kind, prefix
|
|
1502
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1503
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1504
|
+
* generation time.
|
|
1468
1505
|
*/
|
|
1469
1506
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1470
1507
|
/**
|
|
@@ -1487,8 +1524,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
1487
1524
|
*/
|
|
1488
1525
|
maxDuration?: number;
|
|
1489
1526
|
/**
|
|
1490
|
-
* The maximum allowed length for \`string\`
|
|
1491
|
-
* \`string_array
|
|
1527
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1528
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1529
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1492
1530
|
*/
|
|
1493
1531
|
maxLength?: number;
|
|
1494
1532
|
/**
|
|
@@ -1502,8 +1540,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
1502
1540
|
*/
|
|
1503
1541
|
min?: number;
|
|
1504
1542
|
/**
|
|
1505
|
-
* The minimum allowed length for string
|
|
1506
|
-
* \`string_array
|
|
1543
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1544
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1545
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1507
1546
|
*/
|
|
1508
1547
|
minLength?: number;
|
|
1509
1548
|
/**
|
|
@@ -1544,8 +1583,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
1544
1583
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1545
1584
|
* defined
|
|
1546
1585
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1547
|
-
* - \`
|
|
1548
|
-
* value
|
|
1586
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1549
1587
|
*
|
|
1550
1588
|
* By default, the input is not required.
|
|
1551
1589
|
*/
|
|
@@ -1595,8 +1633,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
1595
1633
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1596
1634
|
* defined
|
|
1597
1635
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1598
|
-
* - \`
|
|
1599
|
-
* value
|
|
1636
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1600
1637
|
*
|
|
1601
1638
|
* By default, the input is not required.
|
|
1602
1639
|
*/
|
|
@@ -1606,12 +1643,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
1606
1643
|
*/
|
|
1607
1644
|
always?: boolean;
|
|
1608
1645
|
/**
|
|
1609
|
-
* Makes this input required when
|
|
1610
|
-
*
|
|
1611
|
-
* - Key: name of the input to check
|
|
1612
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
1646
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1613
1647
|
*/
|
|
1614
|
-
|
|
1648
|
+
conditional?: Required.Conditional;
|
|
1615
1649
|
/**
|
|
1616
1650
|
* Makes this input required when another input is defined:
|
|
1617
1651
|
*
|
|
@@ -1627,6 +1661,24 @@ export declare namespace TrainTriggerResponse {
|
|
|
1627
1661
|
*/
|
|
1628
1662
|
ifNotDefined?: unknown;
|
|
1629
1663
|
}
|
|
1664
|
+
namespace Required {
|
|
1665
|
+
/**
|
|
1666
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1667
|
+
*/
|
|
1668
|
+
interface Conditional {
|
|
1669
|
+
/**
|
|
1670
|
+
* The conditions to check:
|
|
1671
|
+
*
|
|
1672
|
+
* - Key: name of the input to check
|
|
1673
|
+
* - Value: values of that input that satisfy the condition
|
|
1674
|
+
*/
|
|
1675
|
+
values: unknown;
|
|
1676
|
+
/**
|
|
1677
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
1678
|
+
*/
|
|
1679
|
+
operator?: 'and' | 'or';
|
|
1680
|
+
}
|
|
1681
|
+
}
|
|
1630
1682
|
}
|
|
1631
1683
|
/**
|
|
1632
1684
|
* The reference to another input or output of the same workflow. Must have at
|
|
@@ -1662,8 +1714,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
1662
1714
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1663
1715
|
* defined
|
|
1664
1716
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1665
|
-
* - \`
|
|
1666
|
-
* value
|
|
1717
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1667
1718
|
*
|
|
1668
1719
|
* By default, the input is not required.
|
|
1669
1720
|
*/
|
|
@@ -1673,12 +1724,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
1673
1724
|
*/
|
|
1674
1725
|
always?: boolean;
|
|
1675
1726
|
/**
|
|
1676
|
-
* Makes this input required when
|
|
1677
|
-
*
|
|
1678
|
-
* - Key: name of the input to check
|
|
1679
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
1727
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1680
1728
|
*/
|
|
1681
|
-
|
|
1729
|
+
conditional?: Required.Conditional;
|
|
1682
1730
|
/**
|
|
1683
1731
|
* Makes this input required when another input is defined:
|
|
1684
1732
|
*
|
|
@@ -1694,6 +1742,24 @@ export declare namespace TrainTriggerResponse {
|
|
|
1694
1742
|
*/
|
|
1695
1743
|
ifNotDefined?: unknown;
|
|
1696
1744
|
}
|
|
1745
|
+
namespace Required {
|
|
1746
|
+
/**
|
|
1747
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1748
|
+
*/
|
|
1749
|
+
interface Conditional {
|
|
1750
|
+
/**
|
|
1751
|
+
* The conditions to check:
|
|
1752
|
+
*
|
|
1753
|
+
* - Key: name of the input to check
|
|
1754
|
+
* - Value: values of that input that satisfy the condition
|
|
1755
|
+
*/
|
|
1756
|
+
values: unknown;
|
|
1757
|
+
/**
|
|
1758
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
1759
|
+
*/
|
|
1760
|
+
operator?: 'and' | 'or';
|
|
1761
|
+
}
|
|
1762
|
+
}
|
|
1697
1763
|
}
|
|
1698
1764
|
/**
|
|
1699
1765
|
* The logic of the node. Only available for logic nodes.
|
|
@@ -1733,7 +1799,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
1733
1799
|
cuDiscount: number;
|
|
1734
1800
|
/**
|
|
1735
1801
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1736
|
-
* top of the generation itself, such as `
|
|
1802
|
+
* top of the generation itself, such as `quality-gate`.
|
|
1737
1803
|
*
|
|
1738
1804
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1739
1805
|
* values here.
|
|
@@ -1761,7 +1827,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
1761
1827
|
namespace Billing {
|
|
1762
1828
|
/**
|
|
1763
1829
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1764
|
-
* top of the generation itself, such as `
|
|
1830
|
+
* top of the generation itself, such as `quality-gate`.
|
|
1765
1831
|
*
|
|
1766
1832
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1767
1833
|
* values here.
|
|
@@ -1780,7 +1846,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
1780
1846
|
*/
|
|
1781
1847
|
interface CuCostDetails {
|
|
1782
1848
|
'ip-detection'?: number;
|
|
1783
|
-
'
|
|
1849
|
+
'quality-gate'?: number;
|
|
1784
1850
|
}
|
|
1785
1851
|
}
|
|
1786
1852
|
}
|
|
@@ -1841,8 +1907,8 @@ export declare namespace TrainTriggerResponse {
|
|
|
1841
1907
|
*/
|
|
1842
1908
|
updatedAt: string;
|
|
1843
1909
|
/**
|
|
1844
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
1845
|
-
* 75:
|
|
1910
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
1911
|
+
* 75: Max plan 100: Enterprise plan
|
|
1846
1912
|
*/
|
|
1847
1913
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
1848
1914
|
/**
|
|
@@ -1882,6 +1948,11 @@ export declare namespace TrainTriggerResponse {
|
|
|
1882
1948
|
* it by modelId with GET /models/{modelId}
|
|
1883
1949
|
*/
|
|
1884
1950
|
inputs?: Array<Model.Input>;
|
|
1951
|
+
/**
|
|
1952
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
1953
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
1954
|
+
*/
|
|
1955
|
+
jobId?: string;
|
|
1885
1956
|
/**
|
|
1886
1957
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
1887
1958
|
* parameters
|
|
@@ -2095,7 +2166,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
2095
2166
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2096
2167
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2097
2168
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2098
|
-
* data:kind, prefix
|
|
2169
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2170
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2171
|
+
* generation time.
|
|
2099
2172
|
*/
|
|
2100
2173
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2101
2174
|
/**
|
|
@@ -2118,8 +2191,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
2118
2191
|
*/
|
|
2119
2192
|
maxDuration?: number;
|
|
2120
2193
|
/**
|
|
2121
|
-
* The maximum allowed length for \`string\`
|
|
2122
|
-
* \`string_array
|
|
2194
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2195
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2196
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2123
2197
|
*/
|
|
2124
2198
|
maxLength?: number;
|
|
2125
2199
|
/**
|
|
@@ -2133,8 +2207,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
2133
2207
|
*/
|
|
2134
2208
|
min?: number;
|
|
2135
2209
|
/**
|
|
2136
|
-
* The minimum allowed length for string
|
|
2137
|
-
* \`string_array
|
|
2210
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2211
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2212
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2138
2213
|
*/
|
|
2139
2214
|
minLength?: number;
|
|
2140
2215
|
/**
|
|
@@ -2170,8 +2245,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
2170
2245
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2171
2246
|
* defined
|
|
2172
2247
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2173
|
-
* - \`
|
|
2174
|
-
* value
|
|
2248
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2175
2249
|
*
|
|
2176
2250
|
* By default, the input is not required.
|
|
2177
2251
|
*/
|
|
@@ -2189,8 +2263,7 @@ export declare namespace TrainTriggerResponse {
|
|
|
2189
2263
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2190
2264
|
* defined
|
|
2191
2265
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2192
|
-
* - \`
|
|
2193
|
-
* value
|
|
2266
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2194
2267
|
*
|
|
2195
2268
|
* By default, the input is not required.
|
|
2196
2269
|
*/
|
|
@@ -2200,12 +2273,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
2200
2273
|
*/
|
|
2201
2274
|
always?: boolean;
|
|
2202
2275
|
/**
|
|
2203
|
-
* Makes this input required when
|
|
2204
|
-
*
|
|
2205
|
-
* - Key: name of the input to check
|
|
2206
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2276
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2207
2277
|
*/
|
|
2208
|
-
|
|
2278
|
+
conditional?: Required.Conditional;
|
|
2209
2279
|
/**
|
|
2210
2280
|
* Makes this input required when another input is defined:
|
|
2211
2281
|
*
|
|
@@ -2221,6 +2291,24 @@ export declare namespace TrainTriggerResponse {
|
|
|
2221
2291
|
*/
|
|
2222
2292
|
ifNotDefined?: unknown;
|
|
2223
2293
|
}
|
|
2294
|
+
namespace Required {
|
|
2295
|
+
/**
|
|
2296
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2297
|
+
*/
|
|
2298
|
+
interface Conditional {
|
|
2299
|
+
/**
|
|
2300
|
+
* The conditions to check:
|
|
2301
|
+
*
|
|
2302
|
+
* - Key: name of the input to check
|
|
2303
|
+
* - Value: values of that input that satisfy the condition
|
|
2304
|
+
*/
|
|
2305
|
+
values: unknown;
|
|
2306
|
+
/**
|
|
2307
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2308
|
+
*/
|
|
2309
|
+
operator?: 'and' | 'or';
|
|
2310
|
+
}
|
|
2311
|
+
}
|
|
2224
2312
|
}
|
|
2225
2313
|
/**
|
|
2226
2314
|
* The parameters of the model
|
|
@@ -2696,6 +2784,12 @@ export declare namespace TrainTriggerResponse {
|
|
|
2696
2784
|
* Configuration for the loras component
|
|
2697
2785
|
*/
|
|
2698
2786
|
lorasComponent?: UiConfig.LorasComponent;
|
|
2787
|
+
/**
|
|
2788
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
2789
|
+
*/
|
|
2790
|
+
outputProperties?: {
|
|
2791
|
+
[key: string]: UiConfig.OutputProperties;
|
|
2792
|
+
};
|
|
2699
2793
|
/**
|
|
2700
2794
|
* Configuration for the presets
|
|
2701
2795
|
*/
|
|
@@ -2743,6 +2837,9 @@ export declare namespace TrainTriggerResponse {
|
|
|
2743
2837
|
*/
|
|
2744
2838
|
modelIdInput?: string;
|
|
2745
2839
|
}
|
|
2840
|
+
interface OutputProperties {
|
|
2841
|
+
label: string;
|
|
2842
|
+
}
|
|
2746
2843
|
interface Preset {
|
|
2747
2844
|
fields: Array<string>;
|
|
2748
2845
|
presets: unknown;
|
|
@@ -2797,8 +2894,8 @@ export declare namespace TrainTriggerResponse {
|
|
|
2797
2894
|
/**
|
|
2798
2895
|
* Compute Units cost per billing action for this request, after discount. Values
|
|
2799
2896
|
* sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
|
|
2800
|
-
* charge appear. Lets clients split the total (e.g. generation vs
|
|
2801
|
-
*
|
|
2897
|
+
* charge appear. Lets clients split the total (e.g. generation vs `quality-gate`)
|
|
2898
|
+
* — including on dryRun estimates.
|
|
2802
2899
|
*/
|
|
2803
2900
|
interface CostDetails {
|
|
2804
2901
|
'assistant-message'?: number;
|
|
@@ -2812,13 +2909,13 @@ export declare namespace TrainTriggerResponse {
|
|
|
2812
2909
|
'ip-detection'?: number;
|
|
2813
2910
|
pixelate?: number;
|
|
2814
2911
|
prompt?: number;
|
|
2912
|
+
'quality-gate'?: number;
|
|
2815
2913
|
'remove-background'?: number;
|
|
2816
2914
|
repaint?: number;
|
|
2817
2915
|
restyle?: number;
|
|
2818
2916
|
segmentation?: number;
|
|
2819
2917
|
'skybox-base-360'?: number;
|
|
2820
2918
|
'skybox-upscale-360'?: number;
|
|
2821
|
-
'slop-detection'?: number;
|
|
2822
2919
|
texture?: number;
|
|
2823
2920
|
'train-model'?: number;
|
|
2824
2921
|
translate?: number;
|
|
@@ -2834,8 +2931,15 @@ export declare namespace TrainTriggerResponse {
|
|
|
2834
2931
|
*/
|
|
2835
2932
|
action: 'allowed' | 'blocked' | 'flagged';
|
|
2836
2933
|
/**
|
|
2837
|
-
*
|
|
2838
|
-
*
|
|
2934
|
+
* Number of images the detectors actually analyzed — a video counts as each of its
|
|
2935
|
+
* extracted frames, and an image that could not be read is excluded (and not
|
|
2936
|
+
* billed). Each of them is priced once per enabled filter.
|
|
2937
|
+
*/
|
|
2938
|
+
analyzedImagesCount: number;
|
|
2939
|
+
/**
|
|
2940
|
+
* IP-detection CU fee, separate from creativeUnitsCost: it follows the provider
|
|
2941
|
+
* tokens the run sends — the prompt plus every analyzed image, once per enabled
|
|
2942
|
+
* filter — with a 1 CU minimum per run.
|
|
2839
2943
|
*/
|
|
2840
2944
|
creativeUnitsCharged: number;
|
|
2841
2945
|
/**
|
|
@@ -2847,7 +2951,8 @@ export declare namespace TrainTriggerResponse {
|
|
|
2847
2951
|
*/
|
|
2848
2952
|
findings: Array<IPDetection.Finding>;
|
|
2849
2953
|
/**
|
|
2850
|
-
*
|
|
2954
|
+
* Whether a filter considered the inputs an IP risk. Independent of `action`: a
|
|
2955
|
+
* request blocked because a detector errored is `blocked` and NOT flagged.
|
|
2851
2956
|
*/
|
|
2852
2957
|
flagged: boolean;
|
|
2853
2958
|
/**
|
|
@@ -2896,10 +3001,6 @@ export interface TrainActionParams {
|
|
|
2896
3001
|
* Body param: The action to perform on the model training
|
|
2897
3002
|
*/
|
|
2898
3003
|
action: 'cancel';
|
|
2899
|
-
/**
|
|
2900
|
-
* Query param: If set to true, returns the original asset without transformation
|
|
2901
|
-
*/
|
|
2902
|
-
originalAssets?: boolean;
|
|
2903
3004
|
/**
|
|
2904
3005
|
* Query param: The projectId used for ownership resource management. Either to
|
|
2905
3006
|
* assert ownership or to set the owner of the resource(s)
|
|
@@ -2908,9 +3009,10 @@ export interface TrainActionParams {
|
|
|
2908
3009
|
}
|
|
2909
3010
|
export interface TrainTriggerParams {
|
|
2910
3011
|
/**
|
|
2911
|
-
* Query param
|
|
3012
|
+
* Query param: Estimate the operation instead of running it: the call returns a
|
|
3013
|
+
* 269 response carrying the creative units cost. `api` estimates at the API tier.
|
|
2912
3014
|
*/
|
|
2913
|
-
dryRun?:
|
|
3015
|
+
dryRun?: 'true' | 'api';
|
|
2914
3016
|
/**
|
|
2915
3017
|
* Query param: If set to true, returns the original asset without transformation
|
|
2916
3018
|
*/
|
|
@@ -2921,7 +3023,8 @@ export interface TrainTriggerParams {
|
|
|
2921
3023
|
*/
|
|
2922
3024
|
projectId?: string;
|
|
2923
3025
|
/**
|
|
2924
|
-
* Query param: Simulate the number of training images, used for dryRun purpose
|
|
3026
|
+
* Query param: Simulate the number of training images, used for dryRun purpose.
|
|
3027
|
+
* Ignored if the model already has training images.
|
|
2925
3028
|
*/
|
|
2926
3029
|
trainingImagesCount?: number;
|
|
2927
3030
|
/**
|