@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
|
@@ -17,6 +17,34 @@ import {
|
|
|
17
17
|
ExampleUpdateResponse,
|
|
18
18
|
Examples,
|
|
19
19
|
} from './examples';
|
|
20
|
+
import * as PresetsAPI from './presets';
|
|
21
|
+
import {
|
|
22
|
+
PresetCreateParams,
|
|
23
|
+
PresetCreateResponse,
|
|
24
|
+
PresetDeleteParams,
|
|
25
|
+
PresetDeleteResponse,
|
|
26
|
+
PresetListParams,
|
|
27
|
+
PresetListResponse,
|
|
28
|
+
PresetUpdateParams,
|
|
29
|
+
PresetUpdateResponse,
|
|
30
|
+
Presets,
|
|
31
|
+
} from './presets';
|
|
32
|
+
import * as PromptGuideAPI from './prompt-guide';
|
|
33
|
+
import {
|
|
34
|
+
PromptGuide,
|
|
35
|
+
PromptGuideRetrieveParams,
|
|
36
|
+
PromptGuideRetrieveResponse,
|
|
37
|
+
PromptGuideUpdateParams,
|
|
38
|
+
PromptGuideUpdateResponse,
|
|
39
|
+
} from './prompt-guide';
|
|
40
|
+
import * as ScoresAPI from './scores';
|
|
41
|
+
import {
|
|
42
|
+
ScoreRetrievePromptParams,
|
|
43
|
+
ScoreRetrievePromptResponse,
|
|
44
|
+
ScoreRetrieveTrainingDatasetParams,
|
|
45
|
+
ScoreRetrieveTrainingDatasetResponse,
|
|
46
|
+
Scores,
|
|
47
|
+
} from './scores';
|
|
20
48
|
import * as TrainAPI from './train';
|
|
21
49
|
import {
|
|
22
50
|
Train,
|
|
@@ -41,10 +69,14 @@ import { APIPromise } from '../../core/api-promise';
|
|
|
41
69
|
import { ModelsCursor, type ModelsCursorParams, PagePromise } from '../../core/pagination';
|
|
42
70
|
import { RequestOptions } from '../../internal/request-options';
|
|
43
71
|
import { path } from '../../internal/utils/path';
|
|
72
|
+
import { omitUndefined } from '../../internal/utils/values';
|
|
44
73
|
|
|
45
74
|
export class Models extends APIResource {
|
|
46
75
|
description: DescriptionAPI.Description = new DescriptionAPI.Description(this._client);
|
|
47
76
|
examples: ExamplesAPI.Examples = new ExamplesAPI.Examples(this._client);
|
|
77
|
+
presets: PresetsAPI.Presets = new PresetsAPI.Presets(this._client);
|
|
78
|
+
promptGuide: PromptGuideAPI.PromptGuide = new PromptGuideAPI.PromptGuide(this._client);
|
|
79
|
+
scores: ScoresAPI.Scores = new ScoresAPI.Scores(this._client);
|
|
48
80
|
train: TrainAPI.Train = new TrainAPI.Train(this._client);
|
|
49
81
|
trainingImages: TrainingImagesAPI.TrainingImages = new TrainingImagesAPI.TrainingImages(this._client);
|
|
50
82
|
|
|
@@ -53,7 +85,11 @@ export class Models extends APIResource {
|
|
|
53
85
|
*/
|
|
54
86
|
create(params: ModelCreateParams, options?: RequestOptions): APIPromise<ModelCreateResponse> {
|
|
55
87
|
const { originalAssets, projectId, ...body } = params;
|
|
56
|
-
return this._client.post('/models', {
|
|
88
|
+
return this._client.post('/models', {
|
|
89
|
+
body,
|
|
90
|
+
...options,
|
|
91
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
92
|
+
});
|
|
57
93
|
}
|
|
58
94
|
|
|
59
95
|
/**
|
|
@@ -67,7 +103,10 @@ export class Models extends APIResource {
|
|
|
67
103
|
query: ModelRetrieveParams | null | undefined = {},
|
|
68
104
|
options?: RequestOptions,
|
|
69
105
|
): APIPromise<ModelRetrieveResponse> {
|
|
70
|
-
return this._client.get(path`/models/${modelID}`, {
|
|
106
|
+
return this._client.get(path`/models/${modelID}`, {
|
|
107
|
+
...options,
|
|
108
|
+
query: { ...query, ...omitUndefined(options?.query) },
|
|
109
|
+
});
|
|
71
110
|
}
|
|
72
111
|
|
|
73
112
|
/**
|
|
@@ -80,9 +119,9 @@ export class Models extends APIResource {
|
|
|
80
119
|
): APIPromise<ModelUpdateResponse> {
|
|
81
120
|
const { originalAssets, projectId, ...body } = params;
|
|
82
121
|
return this._client.put(path`/models/${modelID}`, {
|
|
83
|
-
query: { originalAssets, projectId },
|
|
84
122
|
body,
|
|
85
123
|
...options,
|
|
124
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
86
125
|
});
|
|
87
126
|
}
|
|
88
127
|
|
|
@@ -94,7 +133,10 @@ export class Models extends APIResource {
|
|
|
94
133
|
query: ModelListParams | null | undefined = {},
|
|
95
134
|
options?: RequestOptions,
|
|
96
135
|
): PagePromise<ModelListResponsesModelsCursor, ModelListResponse> {
|
|
97
|
-
return this._client.getAPIList('/models', ModelsCursor<ModelListResponse>, {
|
|
136
|
+
return this._client.getAPIList('/models', ModelsCursor<ModelListResponse>, {
|
|
137
|
+
...options,
|
|
138
|
+
query: { ...query, ...omitUndefined(options?.query) },
|
|
139
|
+
});
|
|
98
140
|
}
|
|
99
141
|
|
|
100
142
|
/**
|
|
@@ -106,7 +148,10 @@ export class Models extends APIResource {
|
|
|
106
148
|
options?: RequestOptions,
|
|
107
149
|
): APIPromise<unknown> {
|
|
108
150
|
const { projectId } = params ?? {};
|
|
109
|
-
return this._client.delete(path`/models/${modelID}`, {
|
|
151
|
+
return this._client.delete(path`/models/${modelID}`, {
|
|
152
|
+
...options,
|
|
153
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
154
|
+
});
|
|
110
155
|
}
|
|
111
156
|
|
|
112
157
|
/**
|
|
@@ -116,9 +161,9 @@ export class Models extends APIResource {
|
|
|
116
161
|
copy(modelID: string, params: ModelCopyParams, options?: RequestOptions): APIPromise<ModelCopyResponse> {
|
|
117
162
|
const { originalAssets, projectId, ...body } = params;
|
|
118
163
|
return this._client.post(path`/models/${modelID}/copy`, {
|
|
119
|
-
query: { originalAssets, projectId },
|
|
120
164
|
body,
|
|
121
165
|
...options,
|
|
166
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
122
167
|
});
|
|
123
168
|
}
|
|
124
169
|
|
|
@@ -131,7 +176,10 @@ export class Models extends APIResource {
|
|
|
131
176
|
options?: RequestOptions,
|
|
132
177
|
): APIPromise<unknown> {
|
|
133
178
|
const { ids, projectId } = params;
|
|
134
|
-
return this._client.delete(path`/models/${modelID}/images`, {
|
|
179
|
+
return this._client.delete(path`/models/${modelID}/images`, {
|
|
180
|
+
...options,
|
|
181
|
+
query: { ids, projectId, ...omitUndefined(options?.query) },
|
|
182
|
+
});
|
|
135
183
|
}
|
|
136
184
|
|
|
137
185
|
/**
|
|
@@ -142,8 +190,12 @@ export class Models extends APIResource {
|
|
|
142
190
|
params: ModelDownloadParams,
|
|
143
191
|
options?: RequestOptions,
|
|
144
192
|
): APIPromise<ModelDownloadResponse> {
|
|
145
|
-
const { projectId, ...body } = params;
|
|
146
|
-
return this._client.post(path`/models/${modelID}/download`, {
|
|
193
|
+
const { dryRun, projectId, ...body } = params;
|
|
194
|
+
return this._client.post(path`/models/${modelID}/download`, {
|
|
195
|
+
body,
|
|
196
|
+
...options,
|
|
197
|
+
query: { dryRun, projectId, ...omitUndefined(options?.query) },
|
|
198
|
+
});
|
|
147
199
|
}
|
|
148
200
|
|
|
149
201
|
/**
|
|
@@ -151,7 +203,11 @@ export class Models extends APIResource {
|
|
|
151
203
|
*/
|
|
152
204
|
getBulk(params: ModelGetBulkParams, options?: RequestOptions): APIPromise<ModelGetBulkResponse> {
|
|
153
205
|
const { originalAssets, projectId, ...body } = params;
|
|
154
|
-
return this._client.post('/models/get-bulk', {
|
|
206
|
+
return this._client.post('/models/get-bulk', {
|
|
207
|
+
body,
|
|
208
|
+
...options,
|
|
209
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
210
|
+
});
|
|
155
211
|
}
|
|
156
212
|
|
|
157
213
|
/**
|
|
@@ -164,7 +220,11 @@ export class Models extends APIResource {
|
|
|
164
220
|
options?: RequestOptions,
|
|
165
221
|
): APIPromise<ModelTransferResponse> {
|
|
166
222
|
const { projectId, ...body } = params;
|
|
167
|
-
return this._client.post(path`/models/${modelID}/transfer`, {
|
|
223
|
+
return this._client.post(path`/models/${modelID}/transfer`, {
|
|
224
|
+
body,
|
|
225
|
+
...options,
|
|
226
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
227
|
+
});
|
|
168
228
|
}
|
|
169
229
|
|
|
170
230
|
/**
|
|
@@ -176,7 +236,11 @@ export class Models extends APIResource {
|
|
|
176
236
|
options?: RequestOptions,
|
|
177
237
|
): APIPromise<ModelUpdateTagsResponse> {
|
|
178
238
|
const { projectId, ...body } = params;
|
|
179
|
-
return this._client.put(path`/models/${modelID}/tags`, {
|
|
239
|
+
return this._client.put(path`/models/${modelID}/tags`, {
|
|
240
|
+
body,
|
|
241
|
+
...options,
|
|
242
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
243
|
+
});
|
|
180
244
|
}
|
|
181
245
|
}
|
|
182
246
|
|
|
@@ -322,8 +386,8 @@ export namespace ModelCreateResponse {
|
|
|
322
386
|
updatedAt: string;
|
|
323
387
|
|
|
324
388
|
/**
|
|
325
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
326
|
-
* 75:
|
|
389
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
390
|
+
* 75: Max plan 100: Enterprise plan
|
|
327
391
|
*/
|
|
328
392
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
329
393
|
|
|
@@ -372,6 +436,12 @@ export namespace ModelCreateResponse {
|
|
|
372
436
|
*/
|
|
373
437
|
inputs?: Array<Model.Input>;
|
|
374
438
|
|
|
439
|
+
/**
|
|
440
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
441
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
442
|
+
*/
|
|
443
|
+
jobId?: string;
|
|
444
|
+
|
|
375
445
|
/**
|
|
376
446
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
377
447
|
* parameters
|
|
@@ -636,7 +706,9 @@ export namespace ModelCreateResponse {
|
|
|
636
706
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
637
707
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
638
708
|
* not able to create the asset on the flight on API side with dataurl without
|
|
639
|
-
* data:kind, prefix
|
|
709
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
710
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
711
|
+
* generation time.
|
|
640
712
|
*/
|
|
641
713
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
642
714
|
|
|
@@ -664,8 +736,9 @@ export namespace ModelCreateResponse {
|
|
|
664
736
|
maxDuration?: number;
|
|
665
737
|
|
|
666
738
|
/**
|
|
667
|
-
* The maximum allowed length for \`string\`
|
|
668
|
-
* \`string_array
|
|
739
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
740
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
741
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
669
742
|
*/
|
|
670
743
|
maxLength?: number;
|
|
671
744
|
|
|
@@ -682,8 +755,9 @@ export namespace ModelCreateResponse {
|
|
|
682
755
|
min?: number;
|
|
683
756
|
|
|
684
757
|
/**
|
|
685
|
-
* The minimum allowed length for string
|
|
686
|
-
* \`string_array
|
|
758
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
759
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
760
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
687
761
|
*/
|
|
688
762
|
minLength?: number;
|
|
689
763
|
|
|
@@ -757,8 +831,7 @@ export namespace ModelCreateResponse {
|
|
|
757
831
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
758
832
|
* defined
|
|
759
833
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
760
|
-
* - \`
|
|
761
|
-
* value
|
|
834
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
762
835
|
*
|
|
763
836
|
* By default, the input is not required.
|
|
764
837
|
*/
|
|
@@ -778,8 +851,7 @@ export namespace ModelCreateResponse {
|
|
|
778
851
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
779
852
|
* defined
|
|
780
853
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
781
|
-
* - \`
|
|
782
|
-
* value
|
|
854
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
783
855
|
*
|
|
784
856
|
* By default, the input is not required.
|
|
785
857
|
*/
|
|
@@ -790,12 +862,9 @@ export namespace ModelCreateResponse {
|
|
|
790
862
|
always?: boolean;
|
|
791
863
|
|
|
792
864
|
/**
|
|
793
|
-
* Makes this input required when
|
|
794
|
-
*
|
|
795
|
-
* - Key: name of the input to check
|
|
796
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
865
|
+
* Makes this input required when other inputs have one of the listed values
|
|
797
866
|
*/
|
|
798
|
-
|
|
867
|
+
conditional?: Required.Conditional;
|
|
799
868
|
|
|
800
869
|
/**
|
|
801
870
|
* Makes this input required when another input is defined:
|
|
@@ -813,6 +882,26 @@ export namespace ModelCreateResponse {
|
|
|
813
882
|
*/
|
|
814
883
|
ifNotDefined?: unknown;
|
|
815
884
|
}
|
|
885
|
+
|
|
886
|
+
export namespace Required {
|
|
887
|
+
/**
|
|
888
|
+
* Makes this input required when other inputs have one of the listed values
|
|
889
|
+
*/
|
|
890
|
+
export interface Conditional {
|
|
891
|
+
/**
|
|
892
|
+
* The conditions to check:
|
|
893
|
+
*
|
|
894
|
+
* - Key: name of the input to check
|
|
895
|
+
* - Value: values of that input that satisfy the condition
|
|
896
|
+
*/
|
|
897
|
+
values: unknown;
|
|
898
|
+
|
|
899
|
+
/**
|
|
900
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
901
|
+
*/
|
|
902
|
+
operator?: 'and' | 'or';
|
|
903
|
+
}
|
|
904
|
+
}
|
|
816
905
|
}
|
|
817
906
|
|
|
818
907
|
/**
|
|
@@ -1379,6 +1468,11 @@ export namespace ModelCreateResponse {
|
|
|
1379
1468
|
*/
|
|
1380
1469
|
lorasComponent?: UiConfig.LorasComponent;
|
|
1381
1470
|
|
|
1471
|
+
/**
|
|
1472
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
1473
|
+
*/
|
|
1474
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
1475
|
+
|
|
1382
1476
|
/**
|
|
1383
1477
|
* Configuration for the presets
|
|
1384
1478
|
*/
|
|
@@ -1433,6 +1527,10 @@ export namespace ModelCreateResponse {
|
|
|
1433
1527
|
modelIdInput?: string;
|
|
1434
1528
|
}
|
|
1435
1529
|
|
|
1530
|
+
export interface OutputProperties {
|
|
1531
|
+
label: string;
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1436
1534
|
export interface Preset {
|
|
1437
1535
|
fields: Array<string>;
|
|
1438
1536
|
|
|
@@ -1637,8 +1735,8 @@ export namespace ModelRetrieveResponse {
|
|
|
1637
1735
|
updatedAt: string;
|
|
1638
1736
|
|
|
1639
1737
|
/**
|
|
1640
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
1641
|
-
* 75:
|
|
1738
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
1739
|
+
* 75: Max plan 100: Enterprise plan
|
|
1642
1740
|
*/
|
|
1643
1741
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
1644
1742
|
|
|
@@ -1687,6 +1785,12 @@ export namespace ModelRetrieveResponse {
|
|
|
1687
1785
|
*/
|
|
1688
1786
|
inputs?: Array<Model.Input>;
|
|
1689
1787
|
|
|
1788
|
+
/**
|
|
1789
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
1790
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
1791
|
+
*/
|
|
1792
|
+
jobId?: string;
|
|
1793
|
+
|
|
1690
1794
|
/**
|
|
1691
1795
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
1692
1796
|
* parameters
|
|
@@ -1951,7 +2055,9 @@ export namespace ModelRetrieveResponse {
|
|
|
1951
2055
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1952
2056
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1953
2057
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1954
|
-
* data:kind, prefix
|
|
2058
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2059
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2060
|
+
* generation time.
|
|
1955
2061
|
*/
|
|
1956
2062
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1957
2063
|
|
|
@@ -1979,8 +2085,9 @@ export namespace ModelRetrieveResponse {
|
|
|
1979
2085
|
maxDuration?: number;
|
|
1980
2086
|
|
|
1981
2087
|
/**
|
|
1982
|
-
* The maximum allowed length for \`string\`
|
|
1983
|
-
* \`string_array
|
|
2088
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2089
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2090
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1984
2091
|
*/
|
|
1985
2092
|
maxLength?: number;
|
|
1986
2093
|
|
|
@@ -1997,8 +2104,9 @@ export namespace ModelRetrieveResponse {
|
|
|
1997
2104
|
min?: number;
|
|
1998
2105
|
|
|
1999
2106
|
/**
|
|
2000
|
-
* The minimum allowed length for string
|
|
2001
|
-
* \`string_array
|
|
2107
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2108
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2109
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2002
2110
|
*/
|
|
2003
2111
|
minLength?: number;
|
|
2004
2112
|
|
|
@@ -2072,8 +2180,7 @@ export namespace ModelRetrieveResponse {
|
|
|
2072
2180
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2073
2181
|
* defined
|
|
2074
2182
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2075
|
-
* - \`
|
|
2076
|
-
* value
|
|
2183
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2077
2184
|
*
|
|
2078
2185
|
* By default, the input is not required.
|
|
2079
2186
|
*/
|
|
@@ -2093,8 +2200,7 @@ export namespace ModelRetrieveResponse {
|
|
|
2093
2200
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2094
2201
|
* defined
|
|
2095
2202
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2096
|
-
* - \`
|
|
2097
|
-
* value
|
|
2203
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2098
2204
|
*
|
|
2099
2205
|
* By default, the input is not required.
|
|
2100
2206
|
*/
|
|
@@ -2105,12 +2211,9 @@ export namespace ModelRetrieveResponse {
|
|
|
2105
2211
|
always?: boolean;
|
|
2106
2212
|
|
|
2107
2213
|
/**
|
|
2108
|
-
* Makes this input required when
|
|
2109
|
-
*
|
|
2110
|
-
* - Key: name of the input to check
|
|
2111
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2214
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2112
2215
|
*/
|
|
2113
|
-
|
|
2216
|
+
conditional?: Required.Conditional;
|
|
2114
2217
|
|
|
2115
2218
|
/**
|
|
2116
2219
|
* Makes this input required when another input is defined:
|
|
@@ -2128,6 +2231,26 @@ export namespace ModelRetrieveResponse {
|
|
|
2128
2231
|
*/
|
|
2129
2232
|
ifNotDefined?: unknown;
|
|
2130
2233
|
}
|
|
2234
|
+
|
|
2235
|
+
export namespace Required {
|
|
2236
|
+
/**
|
|
2237
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2238
|
+
*/
|
|
2239
|
+
export interface Conditional {
|
|
2240
|
+
/**
|
|
2241
|
+
* The conditions to check:
|
|
2242
|
+
*
|
|
2243
|
+
* - Key: name of the input to check
|
|
2244
|
+
* - Value: values of that input that satisfy the condition
|
|
2245
|
+
*/
|
|
2246
|
+
values: unknown;
|
|
2247
|
+
|
|
2248
|
+
/**
|
|
2249
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2250
|
+
*/
|
|
2251
|
+
operator?: 'and' | 'or';
|
|
2252
|
+
}
|
|
2253
|
+
}
|
|
2131
2254
|
}
|
|
2132
2255
|
|
|
2133
2256
|
/**
|
|
@@ -2694,6 +2817,11 @@ export namespace ModelRetrieveResponse {
|
|
|
2694
2817
|
*/
|
|
2695
2818
|
lorasComponent?: UiConfig.LorasComponent;
|
|
2696
2819
|
|
|
2820
|
+
/**
|
|
2821
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
2822
|
+
*/
|
|
2823
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
2824
|
+
|
|
2697
2825
|
/**
|
|
2698
2826
|
* Configuration for the presets
|
|
2699
2827
|
*/
|
|
@@ -2748,6 +2876,10 @@ export namespace ModelRetrieveResponse {
|
|
|
2748
2876
|
modelIdInput?: string;
|
|
2749
2877
|
}
|
|
2750
2878
|
|
|
2879
|
+
export interface OutputProperties {
|
|
2880
|
+
label: string;
|
|
2881
|
+
}
|
|
2882
|
+
|
|
2751
2883
|
export interface Preset {
|
|
2752
2884
|
fields: Array<string>;
|
|
2753
2885
|
|
|
@@ -2952,8 +3084,8 @@ export namespace ModelUpdateResponse {
|
|
|
2952
3084
|
updatedAt: string;
|
|
2953
3085
|
|
|
2954
3086
|
/**
|
|
2955
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
2956
|
-
* 75:
|
|
3087
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
3088
|
+
* 75: Max plan 100: Enterprise plan
|
|
2957
3089
|
*/
|
|
2958
3090
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
2959
3091
|
|
|
@@ -3002,6 +3134,12 @@ export namespace ModelUpdateResponse {
|
|
|
3002
3134
|
*/
|
|
3003
3135
|
inputs?: Array<Model.Input>;
|
|
3004
3136
|
|
|
3137
|
+
/**
|
|
3138
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
3139
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
3140
|
+
*/
|
|
3141
|
+
jobId?: string;
|
|
3142
|
+
|
|
3005
3143
|
/**
|
|
3006
3144
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
3007
3145
|
* parameters
|
|
@@ -3266,7 +3404,9 @@ export namespace ModelUpdateResponse {
|
|
|
3266
3404
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
3267
3405
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
3268
3406
|
* not able to create the asset on the flight on API side with dataurl without
|
|
3269
|
-
* data:kind, prefix
|
|
3407
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
3408
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
3409
|
+
* generation time.
|
|
3270
3410
|
*/
|
|
3271
3411
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
3272
3412
|
|
|
@@ -3294,8 +3434,9 @@ export namespace ModelUpdateResponse {
|
|
|
3294
3434
|
maxDuration?: number;
|
|
3295
3435
|
|
|
3296
3436
|
/**
|
|
3297
|
-
* The maximum allowed length for \`string\`
|
|
3298
|
-
* \`string_array
|
|
3437
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3438
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3439
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3299
3440
|
*/
|
|
3300
3441
|
maxLength?: number;
|
|
3301
3442
|
|
|
@@ -3312,8 +3453,9 @@ export namespace ModelUpdateResponse {
|
|
|
3312
3453
|
min?: number;
|
|
3313
3454
|
|
|
3314
3455
|
/**
|
|
3315
|
-
* The minimum allowed length for string
|
|
3316
|
-
* \`string_array
|
|
3456
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
3457
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
3458
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
3317
3459
|
*/
|
|
3318
3460
|
minLength?: number;
|
|
3319
3461
|
|
|
@@ -3387,8 +3529,7 @@ export namespace ModelUpdateResponse {
|
|
|
3387
3529
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
3388
3530
|
* defined
|
|
3389
3531
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
3390
|
-
* - \`
|
|
3391
|
-
* value
|
|
3532
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
3392
3533
|
*
|
|
3393
3534
|
* By default, the input is not required.
|
|
3394
3535
|
*/
|
|
@@ -3408,8 +3549,7 @@ export namespace ModelUpdateResponse {
|
|
|
3408
3549
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
3409
3550
|
* defined
|
|
3410
3551
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
3411
|
-
* - \`
|
|
3412
|
-
* value
|
|
3552
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
3413
3553
|
*
|
|
3414
3554
|
* By default, the input is not required.
|
|
3415
3555
|
*/
|
|
@@ -3420,12 +3560,9 @@ export namespace ModelUpdateResponse {
|
|
|
3420
3560
|
always?: boolean;
|
|
3421
3561
|
|
|
3422
3562
|
/**
|
|
3423
|
-
* Makes this input required when
|
|
3424
|
-
*
|
|
3425
|
-
* - Key: name of the input to check
|
|
3426
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
3563
|
+
* Makes this input required when other inputs have one of the listed values
|
|
3427
3564
|
*/
|
|
3428
|
-
|
|
3565
|
+
conditional?: Required.Conditional;
|
|
3429
3566
|
|
|
3430
3567
|
/**
|
|
3431
3568
|
* Makes this input required when another input is defined:
|
|
@@ -3443,6 +3580,26 @@ export namespace ModelUpdateResponse {
|
|
|
3443
3580
|
*/
|
|
3444
3581
|
ifNotDefined?: unknown;
|
|
3445
3582
|
}
|
|
3583
|
+
|
|
3584
|
+
export namespace Required {
|
|
3585
|
+
/**
|
|
3586
|
+
* Makes this input required when other inputs have one of the listed values
|
|
3587
|
+
*/
|
|
3588
|
+
export interface Conditional {
|
|
3589
|
+
/**
|
|
3590
|
+
* The conditions to check:
|
|
3591
|
+
*
|
|
3592
|
+
* - Key: name of the input to check
|
|
3593
|
+
* - Value: values of that input that satisfy the condition
|
|
3594
|
+
*/
|
|
3595
|
+
values: unknown;
|
|
3596
|
+
|
|
3597
|
+
/**
|
|
3598
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
3599
|
+
*/
|
|
3600
|
+
operator?: 'and' | 'or';
|
|
3601
|
+
}
|
|
3602
|
+
}
|
|
3446
3603
|
}
|
|
3447
3604
|
|
|
3448
3605
|
/**
|
|
@@ -4009,6 +4166,11 @@ export namespace ModelUpdateResponse {
|
|
|
4009
4166
|
*/
|
|
4010
4167
|
lorasComponent?: UiConfig.LorasComponent;
|
|
4011
4168
|
|
|
4169
|
+
/**
|
|
4170
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
4171
|
+
*/
|
|
4172
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
4173
|
+
|
|
4012
4174
|
/**
|
|
4013
4175
|
* Configuration for the presets
|
|
4014
4176
|
*/
|
|
@@ -4063,6 +4225,10 @@ export namespace ModelUpdateResponse {
|
|
|
4063
4225
|
modelIdInput?: string;
|
|
4064
4226
|
}
|
|
4065
4227
|
|
|
4228
|
+
export interface OutputProperties {
|
|
4229
|
+
label: string;
|
|
4230
|
+
}
|
|
4231
|
+
|
|
4066
4232
|
export interface Preset {
|
|
4067
4233
|
fields: Array<string>;
|
|
4068
4234
|
|
|
@@ -4262,8 +4428,8 @@ export interface ModelListResponse {
|
|
|
4262
4428
|
updatedAt: string;
|
|
4263
4429
|
|
|
4264
4430
|
/**
|
|
4265
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
4266
|
-
* 75:
|
|
4431
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
4432
|
+
* 75: Max plan 100: Enterprise plan
|
|
4267
4433
|
*/
|
|
4268
4434
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
4269
4435
|
|
|
@@ -4312,6 +4478,12 @@ export interface ModelListResponse {
|
|
|
4312
4478
|
*/
|
|
4313
4479
|
inputs?: Array<ModelListResponse.Input>;
|
|
4314
4480
|
|
|
4481
|
+
/**
|
|
4482
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
4483
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
4484
|
+
*/
|
|
4485
|
+
jobId?: string;
|
|
4486
|
+
|
|
4315
4487
|
/**
|
|
4316
4488
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
4317
4489
|
* parameters
|
|
@@ -4576,7 +4748,9 @@ export namespace ModelListResponse {
|
|
|
4576
4748
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
4577
4749
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
4578
4750
|
* not able to create the asset on the flight on API side with dataurl without
|
|
4579
|
-
* data:kind, prefix
|
|
4751
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
4752
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
4753
|
+
* generation time.
|
|
4580
4754
|
*/
|
|
4581
4755
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
4582
4756
|
|
|
@@ -4604,8 +4778,9 @@ export namespace ModelListResponse {
|
|
|
4604
4778
|
maxDuration?: number;
|
|
4605
4779
|
|
|
4606
4780
|
/**
|
|
4607
|
-
* The maximum allowed length for \`string\`
|
|
4608
|
-
* \`string_array
|
|
4781
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4782
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4783
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4609
4784
|
*/
|
|
4610
4785
|
maxLength?: number;
|
|
4611
4786
|
|
|
@@ -4622,8 +4797,9 @@ export namespace ModelListResponse {
|
|
|
4622
4797
|
min?: number;
|
|
4623
4798
|
|
|
4624
4799
|
/**
|
|
4625
|
-
* The minimum allowed length for string
|
|
4626
|
-
* \`string_array
|
|
4800
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
4801
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
4802
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
4627
4803
|
*/
|
|
4628
4804
|
minLength?: number;
|
|
4629
4805
|
|
|
@@ -4697,8 +4873,7 @@ export namespace ModelListResponse {
|
|
|
4697
4873
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
4698
4874
|
* defined
|
|
4699
4875
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
4700
|
-
* - \`
|
|
4701
|
-
* value
|
|
4876
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
4702
4877
|
*
|
|
4703
4878
|
* By default, the input is not required.
|
|
4704
4879
|
*/
|
|
@@ -4718,8 +4893,7 @@ export namespace ModelListResponse {
|
|
|
4718
4893
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
4719
4894
|
* defined
|
|
4720
4895
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
4721
|
-
* - \`
|
|
4722
|
-
* value
|
|
4896
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
4723
4897
|
*
|
|
4724
4898
|
* By default, the input is not required.
|
|
4725
4899
|
*/
|
|
@@ -4730,12 +4904,9 @@ export namespace ModelListResponse {
|
|
|
4730
4904
|
always?: boolean;
|
|
4731
4905
|
|
|
4732
4906
|
/**
|
|
4733
|
-
* Makes this input required when
|
|
4734
|
-
*
|
|
4735
|
-
* - Key: name of the input to check
|
|
4736
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
4907
|
+
* Makes this input required when other inputs have one of the listed values
|
|
4737
4908
|
*/
|
|
4738
|
-
|
|
4909
|
+
conditional?: Required.Conditional;
|
|
4739
4910
|
|
|
4740
4911
|
/**
|
|
4741
4912
|
* Makes this input required when another input is defined:
|
|
@@ -4753,6 +4924,26 @@ export namespace ModelListResponse {
|
|
|
4753
4924
|
*/
|
|
4754
4925
|
ifNotDefined?: unknown;
|
|
4755
4926
|
}
|
|
4927
|
+
|
|
4928
|
+
export namespace Required {
|
|
4929
|
+
/**
|
|
4930
|
+
* Makes this input required when other inputs have one of the listed values
|
|
4931
|
+
*/
|
|
4932
|
+
export interface Conditional {
|
|
4933
|
+
/**
|
|
4934
|
+
* The conditions to check:
|
|
4935
|
+
*
|
|
4936
|
+
* - Key: name of the input to check
|
|
4937
|
+
* - Value: values of that input that satisfy the condition
|
|
4938
|
+
*/
|
|
4939
|
+
values: unknown;
|
|
4940
|
+
|
|
4941
|
+
/**
|
|
4942
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
4943
|
+
*/
|
|
4944
|
+
operator?: 'and' | 'or';
|
|
4945
|
+
}
|
|
4946
|
+
}
|
|
4756
4947
|
}
|
|
4757
4948
|
|
|
4758
4949
|
/**
|
|
@@ -5319,6 +5510,11 @@ export namespace ModelListResponse {
|
|
|
5319
5510
|
*/
|
|
5320
5511
|
lorasComponent?: UiConfig.LorasComponent;
|
|
5321
5512
|
|
|
5513
|
+
/**
|
|
5514
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
5515
|
+
*/
|
|
5516
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
5517
|
+
|
|
5322
5518
|
/**
|
|
5323
5519
|
* Configuration for the presets
|
|
5324
5520
|
*/
|
|
@@ -5373,6 +5569,10 @@ export namespace ModelListResponse {
|
|
|
5373
5569
|
modelIdInput?: string;
|
|
5374
5570
|
}
|
|
5375
5571
|
|
|
5572
|
+
export interface OutputProperties {
|
|
5573
|
+
label: string;
|
|
5574
|
+
}
|
|
5575
|
+
|
|
5376
5576
|
export interface Preset {
|
|
5377
5577
|
fields: Array<string>;
|
|
5378
5578
|
|
|
@@ -5578,8 +5778,8 @@ export namespace ModelCopyResponse {
|
|
|
5578
5778
|
updatedAt: string;
|
|
5579
5779
|
|
|
5580
5780
|
/**
|
|
5581
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
5582
|
-
* 75:
|
|
5781
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
5782
|
+
* 75: Max plan 100: Enterprise plan
|
|
5583
5783
|
*/
|
|
5584
5784
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
5585
5785
|
|
|
@@ -5628,6 +5828,12 @@ export namespace ModelCopyResponse {
|
|
|
5628
5828
|
*/
|
|
5629
5829
|
inputs?: Array<Model.Input>;
|
|
5630
5830
|
|
|
5831
|
+
/**
|
|
5832
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
5833
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
5834
|
+
*/
|
|
5835
|
+
jobId?: string;
|
|
5836
|
+
|
|
5631
5837
|
/**
|
|
5632
5838
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
5633
5839
|
* parameters
|
|
@@ -5892,7 +6098,9 @@ export namespace ModelCopyResponse {
|
|
|
5892
6098
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
5893
6099
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
5894
6100
|
* not able to create the asset on the flight on API side with dataurl without
|
|
5895
|
-
* data:kind, prefix
|
|
6101
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
6102
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
6103
|
+
* generation time.
|
|
5896
6104
|
*/
|
|
5897
6105
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
5898
6106
|
|
|
@@ -5920,8 +6128,9 @@ export namespace ModelCopyResponse {
|
|
|
5920
6128
|
maxDuration?: number;
|
|
5921
6129
|
|
|
5922
6130
|
/**
|
|
5923
|
-
* The maximum allowed length for \`string\`
|
|
5924
|
-
* \`string_array
|
|
6131
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6132
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6133
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5925
6134
|
*/
|
|
5926
6135
|
maxLength?: number;
|
|
5927
6136
|
|
|
@@ -5938,8 +6147,9 @@ export namespace ModelCopyResponse {
|
|
|
5938
6147
|
min?: number;
|
|
5939
6148
|
|
|
5940
6149
|
/**
|
|
5941
|
-
* The minimum allowed length for string
|
|
5942
|
-
* \`string_array
|
|
6150
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
6151
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
6152
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
5943
6153
|
*/
|
|
5944
6154
|
minLength?: number;
|
|
5945
6155
|
|
|
@@ -6013,8 +6223,7 @@ export namespace ModelCopyResponse {
|
|
|
6013
6223
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
6014
6224
|
* defined
|
|
6015
6225
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
6016
|
-
* - \`
|
|
6017
|
-
* value
|
|
6226
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
6018
6227
|
*
|
|
6019
6228
|
* By default, the input is not required.
|
|
6020
6229
|
*/
|
|
@@ -6034,8 +6243,7 @@ export namespace ModelCopyResponse {
|
|
|
6034
6243
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
6035
6244
|
* defined
|
|
6036
6245
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
6037
|
-
* - \`
|
|
6038
|
-
* value
|
|
6246
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
6039
6247
|
*
|
|
6040
6248
|
* By default, the input is not required.
|
|
6041
6249
|
*/
|
|
@@ -6046,12 +6254,9 @@ export namespace ModelCopyResponse {
|
|
|
6046
6254
|
always?: boolean;
|
|
6047
6255
|
|
|
6048
6256
|
/**
|
|
6049
|
-
* Makes this input required when
|
|
6050
|
-
*
|
|
6051
|
-
* - Key: name of the input to check
|
|
6052
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
6257
|
+
* Makes this input required when other inputs have one of the listed values
|
|
6053
6258
|
*/
|
|
6054
|
-
|
|
6259
|
+
conditional?: Required.Conditional;
|
|
6055
6260
|
|
|
6056
6261
|
/**
|
|
6057
6262
|
* Makes this input required when another input is defined:
|
|
@@ -6069,6 +6274,26 @@ export namespace ModelCopyResponse {
|
|
|
6069
6274
|
*/
|
|
6070
6275
|
ifNotDefined?: unknown;
|
|
6071
6276
|
}
|
|
6277
|
+
|
|
6278
|
+
export namespace Required {
|
|
6279
|
+
/**
|
|
6280
|
+
* Makes this input required when other inputs have one of the listed values
|
|
6281
|
+
*/
|
|
6282
|
+
export interface Conditional {
|
|
6283
|
+
/**
|
|
6284
|
+
* The conditions to check:
|
|
6285
|
+
*
|
|
6286
|
+
* - Key: name of the input to check
|
|
6287
|
+
* - Value: values of that input that satisfy the condition
|
|
6288
|
+
*/
|
|
6289
|
+
values: unknown;
|
|
6290
|
+
|
|
6291
|
+
/**
|
|
6292
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
6293
|
+
*/
|
|
6294
|
+
operator?: 'and' | 'or';
|
|
6295
|
+
}
|
|
6296
|
+
}
|
|
6072
6297
|
}
|
|
6073
6298
|
|
|
6074
6299
|
/**
|
|
@@ -6635,6 +6860,11 @@ export namespace ModelCopyResponse {
|
|
|
6635
6860
|
*/
|
|
6636
6861
|
lorasComponent?: UiConfig.LorasComponent;
|
|
6637
6862
|
|
|
6863
|
+
/**
|
|
6864
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
6865
|
+
*/
|
|
6866
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
6867
|
+
|
|
6638
6868
|
/**
|
|
6639
6869
|
* Configuration for the presets
|
|
6640
6870
|
*/
|
|
@@ -6689,6 +6919,10 @@ export namespace ModelCopyResponse {
|
|
|
6689
6919
|
modelIdInput?: string;
|
|
6690
6920
|
}
|
|
6691
6921
|
|
|
6922
|
+
export interface OutputProperties {
|
|
6923
|
+
label: string;
|
|
6924
|
+
}
|
|
6925
|
+
|
|
6692
6926
|
export interface Preset {
|
|
6693
6927
|
fields: Array<string>;
|
|
6694
6928
|
|
|
@@ -6815,8 +7049,8 @@ export namespace ModelGetBulkResponse {
|
|
|
6815
7049
|
| 'zimage-turbo-lora';
|
|
6816
7050
|
|
|
6817
7051
|
/**
|
|
6818
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
6819
|
-
* 75:
|
|
7052
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
7053
|
+
* 75: Max plan 100: Enterprise plan
|
|
6820
7054
|
*/
|
|
6821
7055
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
6822
7056
|
|
|
@@ -6926,6 +7160,12 @@ export namespace ModelGetBulkResponse {
|
|
|
6926
7160
|
*/
|
|
6927
7161
|
inputs?: Array<Model.Input>;
|
|
6928
7162
|
|
|
7163
|
+
/**
|
|
7164
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
7165
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
7166
|
+
*/
|
|
7167
|
+
jobId?: string;
|
|
7168
|
+
|
|
6929
7169
|
/**
|
|
6930
7170
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
6931
7171
|
* parameters
|
|
@@ -7216,7 +7456,9 @@ export namespace ModelGetBulkResponse {
|
|
|
7216
7456
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
7217
7457
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
7218
7458
|
* not able to create the asset on the flight on API side with dataurl without
|
|
7219
|
-
* data:kind, prefix
|
|
7459
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
7460
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
7461
|
+
* generation time.
|
|
7220
7462
|
*/
|
|
7221
7463
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
7222
7464
|
|
|
@@ -7244,8 +7486,9 @@ export namespace ModelGetBulkResponse {
|
|
|
7244
7486
|
maxDuration?: number;
|
|
7245
7487
|
|
|
7246
7488
|
/**
|
|
7247
|
-
* The maximum allowed length for \`string\`
|
|
7248
|
-
* \`string_array
|
|
7489
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7490
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7491
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
7249
7492
|
*/
|
|
7250
7493
|
maxLength?: number;
|
|
7251
7494
|
|
|
@@ -7262,8 +7505,9 @@ export namespace ModelGetBulkResponse {
|
|
|
7262
7505
|
min?: number;
|
|
7263
7506
|
|
|
7264
7507
|
/**
|
|
7265
|
-
* The minimum allowed length for string
|
|
7266
|
-
* \`string_array
|
|
7508
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
7509
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
7510
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
7267
7511
|
*/
|
|
7268
7512
|
minLength?: number;
|
|
7269
7513
|
|
|
@@ -7337,8 +7581,7 @@ export namespace ModelGetBulkResponse {
|
|
|
7337
7581
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
7338
7582
|
* defined
|
|
7339
7583
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
7340
|
-
* - \`
|
|
7341
|
-
* value
|
|
7584
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
7342
7585
|
*
|
|
7343
7586
|
* By default, the input is not required.
|
|
7344
7587
|
*/
|
|
@@ -7358,8 +7601,7 @@ export namespace ModelGetBulkResponse {
|
|
|
7358
7601
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
7359
7602
|
* defined
|
|
7360
7603
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
7361
|
-
* - \`
|
|
7362
|
-
* value
|
|
7604
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
7363
7605
|
*
|
|
7364
7606
|
* By default, the input is not required.
|
|
7365
7607
|
*/
|
|
@@ -7370,12 +7612,9 @@ export namespace ModelGetBulkResponse {
|
|
|
7370
7612
|
always?: boolean;
|
|
7371
7613
|
|
|
7372
7614
|
/**
|
|
7373
|
-
* Makes this input required when
|
|
7374
|
-
*
|
|
7375
|
-
* - Key: name of the input to check
|
|
7376
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
7615
|
+
* Makes this input required when other inputs have one of the listed values
|
|
7377
7616
|
*/
|
|
7378
|
-
|
|
7617
|
+
conditional?: Required.Conditional;
|
|
7379
7618
|
|
|
7380
7619
|
/**
|
|
7381
7620
|
* Makes this input required when another input is defined:
|
|
@@ -7393,6 +7632,26 @@ export namespace ModelGetBulkResponse {
|
|
|
7393
7632
|
*/
|
|
7394
7633
|
ifNotDefined?: unknown;
|
|
7395
7634
|
}
|
|
7635
|
+
|
|
7636
|
+
export namespace Required {
|
|
7637
|
+
/**
|
|
7638
|
+
* Makes this input required when other inputs have one of the listed values
|
|
7639
|
+
*/
|
|
7640
|
+
export interface Conditional {
|
|
7641
|
+
/**
|
|
7642
|
+
* The conditions to check:
|
|
7643
|
+
*
|
|
7644
|
+
* - Key: name of the input to check
|
|
7645
|
+
* - Value: values of that input that satisfy the condition
|
|
7646
|
+
*/
|
|
7647
|
+
values: unknown;
|
|
7648
|
+
|
|
7649
|
+
/**
|
|
7650
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
7651
|
+
*/
|
|
7652
|
+
operator?: 'and' | 'or';
|
|
7653
|
+
}
|
|
7654
|
+
}
|
|
7396
7655
|
}
|
|
7397
7656
|
|
|
7398
7657
|
/**
|
|
@@ -7959,6 +8218,11 @@ export namespace ModelGetBulkResponse {
|
|
|
7959
8218
|
*/
|
|
7960
8219
|
lorasComponent?: UiConfig.LorasComponent;
|
|
7961
8220
|
|
|
8221
|
+
/**
|
|
8222
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
8223
|
+
*/
|
|
8224
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
8225
|
+
|
|
7962
8226
|
/**
|
|
7963
8227
|
* Configuration for the presets
|
|
7964
8228
|
*/
|
|
@@ -8013,6 +8277,10 @@ export namespace ModelGetBulkResponse {
|
|
|
8013
8277
|
modelIdInput?: string;
|
|
8014
8278
|
}
|
|
8015
8279
|
|
|
8280
|
+
export interface OutputProperties {
|
|
8281
|
+
label: string;
|
|
8282
|
+
}
|
|
8283
|
+
|
|
8016
8284
|
export interface Preset {
|
|
8017
8285
|
fields: Array<string>;
|
|
8018
8286
|
|
|
@@ -8217,8 +8485,8 @@ export namespace ModelTransferResponse {
|
|
|
8217
8485
|
updatedAt: string;
|
|
8218
8486
|
|
|
8219
8487
|
/**
|
|
8220
|
-
* The access restrictions of the model 0: Free plan 25:
|
|
8221
|
-
* 75:
|
|
8488
|
+
* The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
|
|
8489
|
+
* 75: Max plan 100: Enterprise plan
|
|
8222
8490
|
*/
|
|
8223
8491
|
accessRestrictions?: 0 | 100 | 25 | 50 | 75;
|
|
8224
8492
|
|
|
@@ -8267,6 +8535,12 @@ export namespace ModelTransferResponse {
|
|
|
8267
8535
|
*/
|
|
8268
8536
|
inputs?: Array<Model.Input>;
|
|
8269
8537
|
|
|
8538
|
+
/**
|
|
8539
|
+
* The ID of the job that trained the model, returned to the model owner only
|
|
8540
|
+
* (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
|
|
8541
|
+
*/
|
|
8542
|
+
jobId?: string;
|
|
8543
|
+
|
|
8270
8544
|
/**
|
|
8271
8545
|
* The model keyword, this is a legacy parameter, please use conceptPrompt in
|
|
8272
8546
|
* parameters
|
|
@@ -8531,7 +8805,9 @@ export namespace ModelTransferResponse {
|
|
|
8531
8805
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
8532
8806
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
8533
8807
|
* not able to create the asset on the flight on API side with dataurl without
|
|
8534
|
-
* data:kind, prefix
|
|
8808
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
8809
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
8810
|
+
* generation time.
|
|
8535
8811
|
*/
|
|
8536
8812
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
8537
8813
|
|
|
@@ -8559,8 +8835,9 @@ export namespace ModelTransferResponse {
|
|
|
8559
8835
|
maxDuration?: number;
|
|
8560
8836
|
|
|
8561
8837
|
/**
|
|
8562
|
-
* The maximum allowed length for \`string\`
|
|
8563
|
-
* \`string_array
|
|
8838
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
8839
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
8840
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
8564
8841
|
*/
|
|
8565
8842
|
maxLength?: number;
|
|
8566
8843
|
|
|
@@ -8577,8 +8854,9 @@ export namespace ModelTransferResponse {
|
|
|
8577
8854
|
min?: number;
|
|
8578
8855
|
|
|
8579
8856
|
/**
|
|
8580
|
-
* The minimum allowed length for string
|
|
8581
|
-
* \`string_array
|
|
8857
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
8858
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
8859
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
8582
8860
|
*/
|
|
8583
8861
|
minLength?: number;
|
|
8584
8862
|
|
|
@@ -8652,8 +8930,7 @@ export namespace ModelTransferResponse {
|
|
|
8652
8930
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
8653
8931
|
* defined
|
|
8654
8932
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
8655
|
-
* - \`
|
|
8656
|
-
* value
|
|
8933
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
8657
8934
|
*
|
|
8658
8935
|
* By default, the input is not required.
|
|
8659
8936
|
*/
|
|
@@ -8673,8 +8950,7 @@ export namespace ModelTransferResponse {
|
|
|
8673
8950
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
8674
8951
|
* defined
|
|
8675
8952
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
8676
|
-
* - \`
|
|
8677
|
-
* value
|
|
8953
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
8678
8954
|
*
|
|
8679
8955
|
* By default, the input is not required.
|
|
8680
8956
|
*/
|
|
@@ -8685,12 +8961,9 @@ export namespace ModelTransferResponse {
|
|
|
8685
8961
|
always?: boolean;
|
|
8686
8962
|
|
|
8687
8963
|
/**
|
|
8688
|
-
* Makes this input required when
|
|
8689
|
-
*
|
|
8690
|
-
* - Key: name of the input to check
|
|
8691
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
8964
|
+
* Makes this input required when other inputs have one of the listed values
|
|
8692
8965
|
*/
|
|
8693
|
-
|
|
8966
|
+
conditional?: Required.Conditional;
|
|
8694
8967
|
|
|
8695
8968
|
/**
|
|
8696
8969
|
* Makes this input required when another input is defined:
|
|
@@ -8708,6 +8981,26 @@ export namespace ModelTransferResponse {
|
|
|
8708
8981
|
*/
|
|
8709
8982
|
ifNotDefined?: unknown;
|
|
8710
8983
|
}
|
|
8984
|
+
|
|
8985
|
+
export namespace Required {
|
|
8986
|
+
/**
|
|
8987
|
+
* Makes this input required when other inputs have one of the listed values
|
|
8988
|
+
*/
|
|
8989
|
+
export interface Conditional {
|
|
8990
|
+
/**
|
|
8991
|
+
* The conditions to check:
|
|
8992
|
+
*
|
|
8993
|
+
* - Key: name of the input to check
|
|
8994
|
+
* - Value: values of that input that satisfy the condition
|
|
8995
|
+
*/
|
|
8996
|
+
values: unknown;
|
|
8997
|
+
|
|
8998
|
+
/**
|
|
8999
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
9000
|
+
*/
|
|
9001
|
+
operator?: 'and' | 'or';
|
|
9002
|
+
}
|
|
9003
|
+
}
|
|
8711
9004
|
}
|
|
8712
9005
|
|
|
8713
9006
|
/**
|
|
@@ -9274,6 +9567,11 @@ export namespace ModelTransferResponse {
|
|
|
9274
9567
|
*/
|
|
9275
9568
|
lorasComponent?: UiConfig.LorasComponent;
|
|
9276
9569
|
|
|
9570
|
+
/**
|
|
9571
|
+
* Configuration for the provider outputs exposed by `exposeOutput`
|
|
9572
|
+
*/
|
|
9573
|
+
outputProperties?: { [key: string]: UiConfig.OutputProperties };
|
|
9574
|
+
|
|
9277
9575
|
/**
|
|
9278
9576
|
* Configuration for the presets
|
|
9279
9577
|
*/
|
|
@@ -9328,6 +9626,10 @@ export namespace ModelTransferResponse {
|
|
|
9328
9626
|
modelIdInput?: string;
|
|
9329
9627
|
}
|
|
9330
9628
|
|
|
9629
|
+
export interface OutputProperties {
|
|
9630
|
+
label: string;
|
|
9631
|
+
}
|
|
9632
|
+
|
|
9331
9633
|
export interface Preset {
|
|
9332
9634
|
fields: Array<string>;
|
|
9333
9635
|
|
|
@@ -10181,6 +10483,12 @@ export interface ModelDeleteImagesParams {
|
|
|
10181
10483
|
}
|
|
10182
10484
|
|
|
10183
10485
|
export interface ModelDownloadParams {
|
|
10486
|
+
/**
|
|
10487
|
+
* Query param: Estimate the operation instead of running it: the call returns a
|
|
10488
|
+
* 269 response carrying the creative units cost. `api` estimates at the API tier.
|
|
10489
|
+
*/
|
|
10490
|
+
dryRun?: 'true' | 'api';
|
|
10491
|
+
|
|
10184
10492
|
/**
|
|
10185
10493
|
* Query param: The projectId used for ownership resource management. Either to
|
|
10186
10494
|
* assert ownership or to set the owner of the resource(s)
|
|
@@ -10297,6 +10605,9 @@ export interface ModelUpdateTagsParams {
|
|
|
10297
10605
|
|
|
10298
10606
|
Models.Description = Description;
|
|
10299
10607
|
Models.Examples = Examples;
|
|
10608
|
+
Models.Presets = Presets;
|
|
10609
|
+
Models.PromptGuide = PromptGuide;
|
|
10610
|
+
Models.Scores = Scores;
|
|
10300
10611
|
Models.Train = Train;
|
|
10301
10612
|
Models.TrainingImages = TrainingImages;
|
|
10302
10613
|
|
|
@@ -10343,6 +10654,34 @@ export declare namespace Models {
|
|
|
10343
10654
|
type ExampleListParams as ExampleListParams,
|
|
10344
10655
|
};
|
|
10345
10656
|
|
|
10657
|
+
export {
|
|
10658
|
+
Presets as Presets,
|
|
10659
|
+
type PresetCreateResponse as PresetCreateResponse,
|
|
10660
|
+
type PresetUpdateResponse as PresetUpdateResponse,
|
|
10661
|
+
type PresetListResponse as PresetListResponse,
|
|
10662
|
+
type PresetDeleteResponse as PresetDeleteResponse,
|
|
10663
|
+
type PresetCreateParams as PresetCreateParams,
|
|
10664
|
+
type PresetUpdateParams as PresetUpdateParams,
|
|
10665
|
+
type PresetListParams as PresetListParams,
|
|
10666
|
+
type PresetDeleteParams as PresetDeleteParams,
|
|
10667
|
+
};
|
|
10668
|
+
|
|
10669
|
+
export {
|
|
10670
|
+
PromptGuide as PromptGuide,
|
|
10671
|
+
type PromptGuideRetrieveResponse as PromptGuideRetrieveResponse,
|
|
10672
|
+
type PromptGuideUpdateResponse as PromptGuideUpdateResponse,
|
|
10673
|
+
type PromptGuideRetrieveParams as PromptGuideRetrieveParams,
|
|
10674
|
+
type PromptGuideUpdateParams as PromptGuideUpdateParams,
|
|
10675
|
+
};
|
|
10676
|
+
|
|
10677
|
+
export {
|
|
10678
|
+
Scores as Scores,
|
|
10679
|
+
type ScoreRetrievePromptResponse as ScoreRetrievePromptResponse,
|
|
10680
|
+
type ScoreRetrieveTrainingDatasetResponse as ScoreRetrieveTrainingDatasetResponse,
|
|
10681
|
+
type ScoreRetrievePromptParams as ScoreRetrievePromptParams,
|
|
10682
|
+
type ScoreRetrieveTrainingDatasetParams as ScoreRetrieveTrainingDatasetParams,
|
|
10683
|
+
};
|
|
10684
|
+
|
|
10346
10685
|
export {
|
|
10347
10686
|
Train as Train,
|
|
10348
10687
|
type TrainActionResponse as TrainActionResponse,
|