@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
package/resources/jobs.d.ts
CHANGED
|
@@ -11,7 +11,8 @@ export declare class Jobs extends APIResource {
|
|
|
11
11
|
* List all jobs matching the given filters. A job is a synchronous operation or an
|
|
12
12
|
* asynchronous task such as a training, a generation, etc. It offers a unified
|
|
13
13
|
* view of all operations running on the platform along with their status and
|
|
14
|
-
* results.
|
|
14
|
+
* results. A page can hold fewer jobs than "pageSize", or none, while
|
|
15
|
+
* "nextPaginationToken" is set: keep paginating until it is absent.
|
|
15
16
|
*/
|
|
16
17
|
list(query?: JobListParams | null | undefined, options?: RequestOptions): PagePromise<JobListResponsesJobsCursor, JobListResponse>;
|
|
17
18
|
/**
|
|
@@ -132,7 +133,7 @@ export declare namespace JobRetrieveResponse {
|
|
|
132
133
|
/**
|
|
133
134
|
* The type of the job for the node.
|
|
134
135
|
*/
|
|
135
|
-
type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'workflow';
|
|
136
|
+
type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'user-selection' | 'workflow';
|
|
136
137
|
/**
|
|
137
138
|
* List of produced assets for this node.
|
|
138
139
|
*/
|
|
@@ -157,13 +158,14 @@ export declare namespace JobRetrieveResponse {
|
|
|
157
158
|
*/
|
|
158
159
|
includeOutputsInWorkflowJob?: true;
|
|
159
160
|
/**
|
|
160
|
-
* The inputs of the node.
|
|
161
|
+
* The inputs of the node. For a user-selection node, the array input's `min`/`max`
|
|
162
|
+
* bound how many items the user may pick (defaults: 1 and 100); conditional
|
|
163
|
+
* connections may be present as additional inputs.
|
|
161
164
|
*/
|
|
162
165
|
inputs?: Array<Flow.Input>;
|
|
163
166
|
/**
|
|
164
|
-
* Statically-configured items for a List node
|
|
165
|
-
*
|
|
166
|
-
* numbers, or asset IDs.
|
|
167
|
+
* Statically-configured items for a List node, or the frozen candidate list of a
|
|
168
|
+
* UserSelection node. The values can be strings, numbers, or asset IDs.
|
|
167
169
|
*/
|
|
168
170
|
items?: Array<string>;
|
|
169
171
|
/**
|
|
@@ -280,7 +282,9 @@ export declare namespace JobRetrieveResponse {
|
|
|
280
282
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
281
283
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
282
284
|
* not able to create the asset on the flight on API side with dataurl without
|
|
283
|
-
* data:kind, prefix
|
|
285
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
286
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
287
|
+
* generation time.
|
|
284
288
|
*/
|
|
285
289
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
286
290
|
/**
|
|
@@ -303,8 +307,9 @@ export declare namespace JobRetrieveResponse {
|
|
|
303
307
|
*/
|
|
304
308
|
maxDuration?: number;
|
|
305
309
|
/**
|
|
306
|
-
* The maximum allowed length for \`string\`
|
|
307
|
-
* \`string_array
|
|
310
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
311
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
312
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
308
313
|
*/
|
|
309
314
|
maxLength?: number;
|
|
310
315
|
/**
|
|
@@ -318,8 +323,9 @@ export declare namespace JobRetrieveResponse {
|
|
|
318
323
|
*/
|
|
319
324
|
min?: number;
|
|
320
325
|
/**
|
|
321
|
-
* The minimum allowed length for string
|
|
322
|
-
* \`string_array
|
|
326
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
327
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
328
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
323
329
|
*/
|
|
324
330
|
minLength?: number;
|
|
325
331
|
/**
|
|
@@ -360,8 +366,7 @@ export declare namespace JobRetrieveResponse {
|
|
|
360
366
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
361
367
|
* defined
|
|
362
368
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
363
|
-
* - \`
|
|
364
|
-
* value
|
|
369
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
365
370
|
*
|
|
366
371
|
* By default, the input is not required.
|
|
367
372
|
*/
|
|
@@ -438,7 +443,9 @@ export declare namespace JobRetrieveResponse {
|
|
|
438
443
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
439
444
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
440
445
|
* not able to create the asset on the flight on API side with dataurl without
|
|
441
|
-
* data:kind, prefix
|
|
446
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
447
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
448
|
+
* generation time.
|
|
442
449
|
*/
|
|
443
450
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
444
451
|
/**
|
|
@@ -461,8 +468,9 @@ export declare namespace JobRetrieveResponse {
|
|
|
461
468
|
*/
|
|
462
469
|
maxDuration?: number;
|
|
463
470
|
/**
|
|
464
|
-
* The maximum allowed length for \`string\`
|
|
465
|
-
* \`string_array
|
|
471
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
472
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
473
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
466
474
|
*/
|
|
467
475
|
maxLength?: number;
|
|
468
476
|
/**
|
|
@@ -476,8 +484,9 @@ export declare namespace JobRetrieveResponse {
|
|
|
476
484
|
*/
|
|
477
485
|
min?: number;
|
|
478
486
|
/**
|
|
479
|
-
* The minimum allowed length for string
|
|
480
|
-
* \`string_array
|
|
487
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
488
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
489
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
481
490
|
*/
|
|
482
491
|
minLength?: number;
|
|
483
492
|
/**
|
|
@@ -518,8 +527,7 @@ export declare namespace JobRetrieveResponse {
|
|
|
518
527
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
519
528
|
* defined
|
|
520
529
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
521
|
-
* - \`
|
|
522
|
-
* value
|
|
530
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
523
531
|
*
|
|
524
532
|
* By default, the input is not required.
|
|
525
533
|
*/
|
|
@@ -569,8 +577,7 @@ export declare namespace JobRetrieveResponse {
|
|
|
569
577
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
570
578
|
* defined
|
|
571
579
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
572
|
-
* - \`
|
|
573
|
-
* value
|
|
580
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
574
581
|
*
|
|
575
582
|
* By default, the input is not required.
|
|
576
583
|
*/
|
|
@@ -580,12 +587,9 @@ export declare namespace JobRetrieveResponse {
|
|
|
580
587
|
*/
|
|
581
588
|
always?: boolean;
|
|
582
589
|
/**
|
|
583
|
-
* Makes this input required when
|
|
584
|
-
*
|
|
585
|
-
* - Key: name of the input to check
|
|
586
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
590
|
+
* Makes this input required when other inputs have one of the listed values
|
|
587
591
|
*/
|
|
588
|
-
|
|
592
|
+
conditional?: Required.Conditional;
|
|
589
593
|
/**
|
|
590
594
|
* Makes this input required when another input is defined:
|
|
591
595
|
*
|
|
@@ -601,6 +605,24 @@ export declare namespace JobRetrieveResponse {
|
|
|
601
605
|
*/
|
|
602
606
|
ifNotDefined?: unknown;
|
|
603
607
|
}
|
|
608
|
+
namespace Required {
|
|
609
|
+
/**
|
|
610
|
+
* Makes this input required when other inputs have one of the listed values
|
|
611
|
+
*/
|
|
612
|
+
interface Conditional {
|
|
613
|
+
/**
|
|
614
|
+
* The conditions to check:
|
|
615
|
+
*
|
|
616
|
+
* - Key: name of the input to check
|
|
617
|
+
* - Value: values of that input that satisfy the condition
|
|
618
|
+
*/
|
|
619
|
+
values: unknown;
|
|
620
|
+
/**
|
|
621
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
622
|
+
*/
|
|
623
|
+
operator?: 'and' | 'or';
|
|
624
|
+
}
|
|
625
|
+
}
|
|
604
626
|
}
|
|
605
627
|
/**
|
|
606
628
|
* The reference to another input or output of the same workflow. Must have at
|
|
@@ -636,8 +658,7 @@ export declare namespace JobRetrieveResponse {
|
|
|
636
658
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
637
659
|
* defined
|
|
638
660
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
639
|
-
* - \`
|
|
640
|
-
* value
|
|
661
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
641
662
|
*
|
|
642
663
|
* By default, the input is not required.
|
|
643
664
|
*/
|
|
@@ -647,12 +668,9 @@ export declare namespace JobRetrieveResponse {
|
|
|
647
668
|
*/
|
|
648
669
|
always?: boolean;
|
|
649
670
|
/**
|
|
650
|
-
* Makes this input required when
|
|
651
|
-
*
|
|
652
|
-
* - Key: name of the input to check
|
|
653
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
671
|
+
* Makes this input required when other inputs have one of the listed values
|
|
654
672
|
*/
|
|
655
|
-
|
|
673
|
+
conditional?: Required.Conditional;
|
|
656
674
|
/**
|
|
657
675
|
* Makes this input required when another input is defined:
|
|
658
676
|
*
|
|
@@ -668,6 +686,24 @@ export declare namespace JobRetrieveResponse {
|
|
|
668
686
|
*/
|
|
669
687
|
ifNotDefined?: unknown;
|
|
670
688
|
}
|
|
689
|
+
namespace Required {
|
|
690
|
+
/**
|
|
691
|
+
* Makes this input required when other inputs have one of the listed values
|
|
692
|
+
*/
|
|
693
|
+
interface Conditional {
|
|
694
|
+
/**
|
|
695
|
+
* The conditions to check:
|
|
696
|
+
*
|
|
697
|
+
* - Key: name of the input to check
|
|
698
|
+
* - Value: values of that input that satisfy the condition
|
|
699
|
+
*/
|
|
700
|
+
values: unknown;
|
|
701
|
+
/**
|
|
702
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
703
|
+
*/
|
|
704
|
+
operator?: 'and' | 'or';
|
|
705
|
+
}
|
|
706
|
+
}
|
|
671
707
|
}
|
|
672
708
|
/**
|
|
673
709
|
* The logic of the node. Only available for logic nodes.
|
|
@@ -707,7 +743,7 @@ export declare namespace JobRetrieveResponse {
|
|
|
707
743
|
cuDiscount: number;
|
|
708
744
|
/**
|
|
709
745
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
710
|
-
* top of the generation itself, such as `
|
|
746
|
+
* top of the generation itself, such as `quality-gate`.
|
|
711
747
|
*
|
|
712
748
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
713
749
|
* values here.
|
|
@@ -735,7 +771,7 @@ export declare namespace JobRetrieveResponse {
|
|
|
735
771
|
namespace Billing {
|
|
736
772
|
/**
|
|
737
773
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
738
|
-
* top of the generation itself, such as `
|
|
774
|
+
* top of the generation itself, such as `quality-gate`.
|
|
739
775
|
*
|
|
740
776
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
741
777
|
* values here.
|
|
@@ -754,7 +790,7 @@ export declare namespace JobRetrieveResponse {
|
|
|
754
790
|
*/
|
|
755
791
|
interface CuCostDetails {
|
|
756
792
|
'ip-detection'?: number;
|
|
757
|
-
'
|
|
793
|
+
'quality-gate'?: number;
|
|
758
794
|
}
|
|
759
795
|
}
|
|
760
796
|
}
|
|
@@ -867,7 +903,7 @@ export declare namespace JobListResponse {
|
|
|
867
903
|
/**
|
|
868
904
|
* The type of the job for the node.
|
|
869
905
|
*/
|
|
870
|
-
type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'workflow';
|
|
906
|
+
type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'user-selection' | 'workflow';
|
|
871
907
|
/**
|
|
872
908
|
* List of produced assets for this node.
|
|
873
909
|
*/
|
|
@@ -892,13 +928,14 @@ export declare namespace JobListResponse {
|
|
|
892
928
|
*/
|
|
893
929
|
includeOutputsInWorkflowJob?: true;
|
|
894
930
|
/**
|
|
895
|
-
* The inputs of the node.
|
|
931
|
+
* The inputs of the node. For a user-selection node, the array input's `min`/`max`
|
|
932
|
+
* bound how many items the user may pick (defaults: 1 and 100); conditional
|
|
933
|
+
* connections may be present as additional inputs.
|
|
896
934
|
*/
|
|
897
935
|
inputs?: Array<Flow.Input>;
|
|
898
936
|
/**
|
|
899
|
-
* Statically-configured items for a List node
|
|
900
|
-
*
|
|
901
|
-
* numbers, or asset IDs.
|
|
937
|
+
* Statically-configured items for a List node, or the frozen candidate list of a
|
|
938
|
+
* UserSelection node. The values can be strings, numbers, or asset IDs.
|
|
902
939
|
*/
|
|
903
940
|
items?: Array<string>;
|
|
904
941
|
/**
|
|
@@ -1015,7 +1052,9 @@ export declare namespace JobListResponse {
|
|
|
1015
1052
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1016
1053
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1017
1054
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1018
|
-
* data:kind, prefix
|
|
1055
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1056
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1057
|
+
* generation time.
|
|
1019
1058
|
*/
|
|
1020
1059
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1021
1060
|
/**
|
|
@@ -1038,8 +1077,9 @@ export declare namespace JobListResponse {
|
|
|
1038
1077
|
*/
|
|
1039
1078
|
maxDuration?: number;
|
|
1040
1079
|
/**
|
|
1041
|
-
* The maximum allowed length for \`string\`
|
|
1042
|
-
* \`string_array
|
|
1080
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1081
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1082
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1043
1083
|
*/
|
|
1044
1084
|
maxLength?: number;
|
|
1045
1085
|
/**
|
|
@@ -1053,8 +1093,9 @@ export declare namespace JobListResponse {
|
|
|
1053
1093
|
*/
|
|
1054
1094
|
min?: number;
|
|
1055
1095
|
/**
|
|
1056
|
-
* The minimum allowed length for string
|
|
1057
|
-
* \`string_array
|
|
1096
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1097
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1098
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1058
1099
|
*/
|
|
1059
1100
|
minLength?: number;
|
|
1060
1101
|
/**
|
|
@@ -1095,8 +1136,7 @@ export declare namespace JobListResponse {
|
|
|
1095
1136
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1096
1137
|
* defined
|
|
1097
1138
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1098
|
-
* - \`
|
|
1099
|
-
* value
|
|
1139
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1100
1140
|
*
|
|
1101
1141
|
* By default, the input is not required.
|
|
1102
1142
|
*/
|
|
@@ -1173,7 +1213,9 @@ export declare namespace JobListResponse {
|
|
|
1173
1213
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1174
1214
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1175
1215
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1176
|
-
* data:kind, prefix
|
|
1216
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1217
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1218
|
+
* generation time.
|
|
1177
1219
|
*/
|
|
1178
1220
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1179
1221
|
/**
|
|
@@ -1196,8 +1238,9 @@ export declare namespace JobListResponse {
|
|
|
1196
1238
|
*/
|
|
1197
1239
|
maxDuration?: number;
|
|
1198
1240
|
/**
|
|
1199
|
-
* The maximum allowed length for \`string\`
|
|
1200
|
-
* \`string_array
|
|
1241
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1242
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1243
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1201
1244
|
*/
|
|
1202
1245
|
maxLength?: number;
|
|
1203
1246
|
/**
|
|
@@ -1211,8 +1254,9 @@ export declare namespace JobListResponse {
|
|
|
1211
1254
|
*/
|
|
1212
1255
|
min?: number;
|
|
1213
1256
|
/**
|
|
1214
|
-
* The minimum allowed length for string
|
|
1215
|
-
* \`string_array
|
|
1257
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1258
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1259
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1216
1260
|
*/
|
|
1217
1261
|
minLength?: number;
|
|
1218
1262
|
/**
|
|
@@ -1253,8 +1297,7 @@ export declare namespace JobListResponse {
|
|
|
1253
1297
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1254
1298
|
* defined
|
|
1255
1299
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1256
|
-
* - \`
|
|
1257
|
-
* value
|
|
1300
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1258
1301
|
*
|
|
1259
1302
|
* By default, the input is not required.
|
|
1260
1303
|
*/
|
|
@@ -1304,8 +1347,7 @@ export declare namespace JobListResponse {
|
|
|
1304
1347
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1305
1348
|
* defined
|
|
1306
1349
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1307
|
-
* - \`
|
|
1308
|
-
* value
|
|
1350
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1309
1351
|
*
|
|
1310
1352
|
* By default, the input is not required.
|
|
1311
1353
|
*/
|
|
@@ -1315,12 +1357,9 @@ export declare namespace JobListResponse {
|
|
|
1315
1357
|
*/
|
|
1316
1358
|
always?: boolean;
|
|
1317
1359
|
/**
|
|
1318
|
-
* Makes this input required when
|
|
1319
|
-
*
|
|
1320
|
-
* - Key: name of the input to check
|
|
1321
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
1360
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1322
1361
|
*/
|
|
1323
|
-
|
|
1362
|
+
conditional?: Required.Conditional;
|
|
1324
1363
|
/**
|
|
1325
1364
|
* Makes this input required when another input is defined:
|
|
1326
1365
|
*
|
|
@@ -1336,6 +1375,24 @@ export declare namespace JobListResponse {
|
|
|
1336
1375
|
*/
|
|
1337
1376
|
ifNotDefined?: unknown;
|
|
1338
1377
|
}
|
|
1378
|
+
namespace Required {
|
|
1379
|
+
/**
|
|
1380
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1381
|
+
*/
|
|
1382
|
+
interface Conditional {
|
|
1383
|
+
/**
|
|
1384
|
+
* The conditions to check:
|
|
1385
|
+
*
|
|
1386
|
+
* - Key: name of the input to check
|
|
1387
|
+
* - Value: values of that input that satisfy the condition
|
|
1388
|
+
*/
|
|
1389
|
+
values: unknown;
|
|
1390
|
+
/**
|
|
1391
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
1392
|
+
*/
|
|
1393
|
+
operator?: 'and' | 'or';
|
|
1394
|
+
}
|
|
1395
|
+
}
|
|
1339
1396
|
}
|
|
1340
1397
|
/**
|
|
1341
1398
|
* The reference to another input or output of the same workflow. Must have at
|
|
@@ -1371,8 +1428,7 @@ export declare namespace JobListResponse {
|
|
|
1371
1428
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1372
1429
|
* defined
|
|
1373
1430
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1374
|
-
* - \`
|
|
1375
|
-
* value
|
|
1431
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1376
1432
|
*
|
|
1377
1433
|
* By default, the input is not required.
|
|
1378
1434
|
*/
|
|
@@ -1382,12 +1438,9 @@ export declare namespace JobListResponse {
|
|
|
1382
1438
|
*/
|
|
1383
1439
|
always?: boolean;
|
|
1384
1440
|
/**
|
|
1385
|
-
* Makes this input required when
|
|
1386
|
-
*
|
|
1387
|
-
* - Key: name of the input to check
|
|
1388
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
1441
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1389
1442
|
*/
|
|
1390
|
-
|
|
1443
|
+
conditional?: Required.Conditional;
|
|
1391
1444
|
/**
|
|
1392
1445
|
* Makes this input required when another input is defined:
|
|
1393
1446
|
*
|
|
@@ -1403,6 +1456,24 @@ export declare namespace JobListResponse {
|
|
|
1403
1456
|
*/
|
|
1404
1457
|
ifNotDefined?: unknown;
|
|
1405
1458
|
}
|
|
1459
|
+
namespace Required {
|
|
1460
|
+
/**
|
|
1461
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1462
|
+
*/
|
|
1463
|
+
interface Conditional {
|
|
1464
|
+
/**
|
|
1465
|
+
* The conditions to check:
|
|
1466
|
+
*
|
|
1467
|
+
* - Key: name of the input to check
|
|
1468
|
+
* - Value: values of that input that satisfy the condition
|
|
1469
|
+
*/
|
|
1470
|
+
values: unknown;
|
|
1471
|
+
/**
|
|
1472
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
1473
|
+
*/
|
|
1474
|
+
operator?: 'and' | 'or';
|
|
1475
|
+
}
|
|
1476
|
+
}
|
|
1406
1477
|
}
|
|
1407
1478
|
/**
|
|
1408
1479
|
* The logic of the node. Only available for logic nodes.
|
|
@@ -1442,7 +1513,7 @@ export declare namespace JobListResponse {
|
|
|
1442
1513
|
cuDiscount: number;
|
|
1443
1514
|
/**
|
|
1444
1515
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1445
|
-
* top of the generation itself, such as `
|
|
1516
|
+
* top of the generation itself, such as `quality-gate`.
|
|
1446
1517
|
*
|
|
1447
1518
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1448
1519
|
* values here.
|
|
@@ -1470,7 +1541,7 @@ export declare namespace JobListResponse {
|
|
|
1470
1541
|
namespace Billing {
|
|
1471
1542
|
/**
|
|
1472
1543
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1473
|
-
* top of the generation itself, such as `
|
|
1544
|
+
* top of the generation itself, such as `quality-gate`.
|
|
1474
1545
|
*
|
|
1475
1546
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1476
1547
|
* values here.
|
|
@@ -1489,7 +1560,7 @@ export declare namespace JobListResponse {
|
|
|
1489
1560
|
*/
|
|
1490
1561
|
interface CuCostDetails {
|
|
1491
1562
|
'ip-detection'?: number;
|
|
1492
|
-
'
|
|
1563
|
+
'quality-gate'?: number;
|
|
1493
1564
|
}
|
|
1494
1565
|
}
|
|
1495
1566
|
}
|
|
@@ -1605,7 +1676,7 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1605
1676
|
/**
|
|
1606
1677
|
* The type of the job for the node.
|
|
1607
1678
|
*/
|
|
1608
|
-
type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'workflow';
|
|
1679
|
+
type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'user-selection' | 'workflow';
|
|
1609
1680
|
/**
|
|
1610
1681
|
* List of produced assets for this node.
|
|
1611
1682
|
*/
|
|
@@ -1630,13 +1701,14 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1630
1701
|
*/
|
|
1631
1702
|
includeOutputsInWorkflowJob?: true;
|
|
1632
1703
|
/**
|
|
1633
|
-
* The inputs of the node.
|
|
1704
|
+
* The inputs of the node. For a user-selection node, the array input's `min`/`max`
|
|
1705
|
+
* bound how many items the user may pick (defaults: 1 and 100); conditional
|
|
1706
|
+
* connections may be present as additional inputs.
|
|
1634
1707
|
*/
|
|
1635
1708
|
inputs?: Array<Flow.Input>;
|
|
1636
1709
|
/**
|
|
1637
|
-
* Statically-configured items for a List node
|
|
1638
|
-
*
|
|
1639
|
-
* numbers, or asset IDs.
|
|
1710
|
+
* Statically-configured items for a List node, or the frozen candidate list of a
|
|
1711
|
+
* UserSelection node. The values can be strings, numbers, or asset IDs.
|
|
1640
1712
|
*/
|
|
1641
1713
|
items?: Array<string>;
|
|
1642
1714
|
/**
|
|
@@ -1753,7 +1825,9 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1753
1825
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1754
1826
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1755
1827
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1756
|
-
* data:kind, prefix
|
|
1828
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1829
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1830
|
+
* generation time.
|
|
1757
1831
|
*/
|
|
1758
1832
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1759
1833
|
/**
|
|
@@ -1776,8 +1850,9 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1776
1850
|
*/
|
|
1777
1851
|
maxDuration?: number;
|
|
1778
1852
|
/**
|
|
1779
|
-
* The maximum allowed length for \`string\`
|
|
1780
|
-
* \`string_array
|
|
1853
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1854
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1855
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1781
1856
|
*/
|
|
1782
1857
|
maxLength?: number;
|
|
1783
1858
|
/**
|
|
@@ -1791,8 +1866,9 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1791
1866
|
*/
|
|
1792
1867
|
min?: number;
|
|
1793
1868
|
/**
|
|
1794
|
-
* The minimum allowed length for string
|
|
1795
|
-
* \`string_array
|
|
1869
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1870
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1871
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1796
1872
|
*/
|
|
1797
1873
|
minLength?: number;
|
|
1798
1874
|
/**
|
|
@@ -1833,8 +1909,7 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1833
1909
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1834
1910
|
* defined
|
|
1835
1911
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1836
|
-
* - \`
|
|
1837
|
-
* value
|
|
1912
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1838
1913
|
*
|
|
1839
1914
|
* By default, the input is not required.
|
|
1840
1915
|
*/
|
|
@@ -1911,7 +1986,9 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1911
1986
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1912
1987
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1913
1988
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1914
|
-
* data:kind, prefix
|
|
1989
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1990
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1991
|
+
* generation time.
|
|
1915
1992
|
*/
|
|
1916
1993
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1917
1994
|
/**
|
|
@@ -1934,8 +2011,9 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1934
2011
|
*/
|
|
1935
2012
|
maxDuration?: number;
|
|
1936
2013
|
/**
|
|
1937
|
-
* The maximum allowed length for \`string\`
|
|
1938
|
-
* \`string_array
|
|
2014
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2015
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2016
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1939
2017
|
*/
|
|
1940
2018
|
maxLength?: number;
|
|
1941
2019
|
/**
|
|
@@ -1949,8 +2027,9 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1949
2027
|
*/
|
|
1950
2028
|
min?: number;
|
|
1951
2029
|
/**
|
|
1952
|
-
* The minimum allowed length for string
|
|
1953
|
-
* \`string_array
|
|
2030
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2031
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2032
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1954
2033
|
*/
|
|
1955
2034
|
minLength?: number;
|
|
1956
2035
|
/**
|
|
@@ -1991,8 +2070,7 @@ export declare namespace JobTriggerActionResponse {
|
|
|
1991
2070
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1992
2071
|
* defined
|
|
1993
2072
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1994
|
-
* - \`
|
|
1995
|
-
* value
|
|
2073
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1996
2074
|
*
|
|
1997
2075
|
* By default, the input is not required.
|
|
1998
2076
|
*/
|
|
@@ -2042,8 +2120,7 @@ export declare namespace JobTriggerActionResponse {
|
|
|
2042
2120
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2043
2121
|
* defined
|
|
2044
2122
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2045
|
-
* - \`
|
|
2046
|
-
* value
|
|
2123
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2047
2124
|
*
|
|
2048
2125
|
* By default, the input is not required.
|
|
2049
2126
|
*/
|
|
@@ -2053,12 +2130,9 @@ export declare namespace JobTriggerActionResponse {
|
|
|
2053
2130
|
*/
|
|
2054
2131
|
always?: boolean;
|
|
2055
2132
|
/**
|
|
2056
|
-
* Makes this input required when
|
|
2057
|
-
*
|
|
2058
|
-
* - Key: name of the input to check
|
|
2059
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2133
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2060
2134
|
*/
|
|
2061
|
-
|
|
2135
|
+
conditional?: Required.Conditional;
|
|
2062
2136
|
/**
|
|
2063
2137
|
* Makes this input required when another input is defined:
|
|
2064
2138
|
*
|
|
@@ -2074,6 +2148,24 @@ export declare namespace JobTriggerActionResponse {
|
|
|
2074
2148
|
*/
|
|
2075
2149
|
ifNotDefined?: unknown;
|
|
2076
2150
|
}
|
|
2151
|
+
namespace Required {
|
|
2152
|
+
/**
|
|
2153
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2154
|
+
*/
|
|
2155
|
+
interface Conditional {
|
|
2156
|
+
/**
|
|
2157
|
+
* The conditions to check:
|
|
2158
|
+
*
|
|
2159
|
+
* - Key: name of the input to check
|
|
2160
|
+
* - Value: values of that input that satisfy the condition
|
|
2161
|
+
*/
|
|
2162
|
+
values: unknown;
|
|
2163
|
+
/**
|
|
2164
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2165
|
+
*/
|
|
2166
|
+
operator?: 'and' | 'or';
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
2077
2169
|
}
|
|
2078
2170
|
/**
|
|
2079
2171
|
* The reference to another input or output of the same workflow. Must have at
|
|
@@ -2109,8 +2201,7 @@ export declare namespace JobTriggerActionResponse {
|
|
|
2109
2201
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2110
2202
|
* defined
|
|
2111
2203
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2112
|
-
* - \`
|
|
2113
|
-
* value
|
|
2204
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2114
2205
|
*
|
|
2115
2206
|
* By default, the input is not required.
|
|
2116
2207
|
*/
|
|
@@ -2120,12 +2211,9 @@ export declare namespace JobTriggerActionResponse {
|
|
|
2120
2211
|
*/
|
|
2121
2212
|
always?: boolean;
|
|
2122
2213
|
/**
|
|
2123
|
-
* Makes this input required when
|
|
2124
|
-
*
|
|
2125
|
-
* - Key: name of the input to check
|
|
2126
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2214
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2127
2215
|
*/
|
|
2128
|
-
|
|
2216
|
+
conditional?: Required.Conditional;
|
|
2129
2217
|
/**
|
|
2130
2218
|
* Makes this input required when another input is defined:
|
|
2131
2219
|
*
|
|
@@ -2141,6 +2229,24 @@ export declare namespace JobTriggerActionResponse {
|
|
|
2141
2229
|
*/
|
|
2142
2230
|
ifNotDefined?: unknown;
|
|
2143
2231
|
}
|
|
2232
|
+
namespace Required {
|
|
2233
|
+
/**
|
|
2234
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2235
|
+
*/
|
|
2236
|
+
interface Conditional {
|
|
2237
|
+
/**
|
|
2238
|
+
* The conditions to check:
|
|
2239
|
+
*
|
|
2240
|
+
* - Key: name of the input to check
|
|
2241
|
+
* - Value: values of that input that satisfy the condition
|
|
2242
|
+
*/
|
|
2243
|
+
values: unknown;
|
|
2244
|
+
/**
|
|
2245
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2246
|
+
*/
|
|
2247
|
+
operator?: 'and' | 'or';
|
|
2248
|
+
}
|
|
2249
|
+
}
|
|
2144
2250
|
}
|
|
2145
2251
|
/**
|
|
2146
2252
|
* The logic of the node. Only available for logic nodes.
|
|
@@ -2180,7 +2286,7 @@ export declare namespace JobTriggerActionResponse {
|
|
|
2180
2286
|
cuDiscount: number;
|
|
2181
2287
|
/**
|
|
2182
2288
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2183
|
-
* top of the generation itself, such as `
|
|
2289
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2184
2290
|
*
|
|
2185
2291
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2186
2292
|
* values here.
|
|
@@ -2208,7 +2314,7 @@ export declare namespace JobTriggerActionResponse {
|
|
|
2208
2314
|
namespace Billing {
|
|
2209
2315
|
/**
|
|
2210
2316
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2211
|
-
* top of the generation itself, such as `
|
|
2317
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2212
2318
|
*
|
|
2213
2319
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2214
2320
|
* values here.
|
|
@@ -2227,29 +2333,50 @@ export declare namespace JobTriggerActionResponse {
|
|
|
2227
2333
|
*/
|
|
2228
2334
|
interface CuCostDetails {
|
|
2229
2335
|
'ip-detection'?: number;
|
|
2230
|
-
'
|
|
2336
|
+
'quality-gate'?: number;
|
|
2231
2337
|
}
|
|
2232
2338
|
}
|
|
2233
2339
|
}
|
|
2234
2340
|
}
|
|
2235
2341
|
export interface JobRetrieveParams {
|
|
2236
|
-
|
|
2342
|
+
/**
|
|
2343
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
2344
|
+
* or to set the owner of the resource(s)
|
|
2345
|
+
*/
|
|
2346
|
+
projectId?: string;
|
|
2237
2347
|
}
|
|
2238
2348
|
export interface JobListParams extends JobsCursorParams {
|
|
2239
2349
|
/**
|
|
2240
|
-
* The authorId of the jobs to return.
|
|
2350
|
+
* The authorId of the jobs to return. When set, only jobs from the last 30 days
|
|
2351
|
+
* are returned (by creation date, or by update date when "status", "type", "types"
|
|
2352
|
+
* or "workflowId" is set) unless "createdAfter" or "updatedAfter" is set.
|
|
2353
|
+
* Optional.
|
|
2241
2354
|
*/
|
|
2242
2355
|
authorId?: string;
|
|
2243
2356
|
/**
|
|
2244
|
-
*
|
|
2357
|
+
* Only return the jobs created after this date (ISO 8601). Only allowed without
|
|
2358
|
+
* "status", "type", "types" and "workflowId", which sort jobs by update date: use
|
|
2359
|
+
* "updatedAfter" with them. Overrides the 30-day window applied with "authorId" or
|
|
2360
|
+
* "hideResults=false". Optional.
|
|
2361
|
+
*/
|
|
2362
|
+
createdAfter?: string;
|
|
2363
|
+
/**
|
|
2364
|
+
* If false, jobs submitted with "hideResults": true are not returned. When false,
|
|
2365
|
+
* only jobs from the last 30 days are returned (by creation date, or by update
|
|
2366
|
+
* date when "status", "type", "types" or "workflowId" is set) unless
|
|
2367
|
+
* "createdAfter" or "updatedAfter" is set. Optional.
|
|
2245
2368
|
*/
|
|
2246
2369
|
hideResults?: boolean;
|
|
2247
2370
|
/**
|
|
2248
|
-
* The number of items to return in the response. The default value is
|
|
2249
|
-
* value is
|
|
2371
|
+
* The number of items to return in the response. The default value is 50, maximum
|
|
2372
|
+
* value is 100, minimum value is 1
|
|
2250
2373
|
*/
|
|
2251
2374
|
pageSize?: number;
|
|
2252
|
-
|
|
2375
|
+
/**
|
|
2376
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
2377
|
+
* or to set the owner of the resource(s)
|
|
2378
|
+
*/
|
|
2379
|
+
projectId?: string;
|
|
2253
2380
|
/**
|
|
2254
2381
|
* The status of the jobs to return. Optional.
|
|
2255
2382
|
*/
|
|
@@ -2271,13 +2398,19 @@ export interface JobListParams extends JobsCursorParams {
|
|
|
2271
2398
|
* mesh-preview-rendering, workflow. Optional.
|
|
2272
2399
|
*/
|
|
2273
2400
|
types?: Array<'assets-download' | 'model-training' | 'flux-model-training' | 'musubi-model-training' | 'inference' | 'pixelate' | 'embed' | 'remove-background' | 'vectorize' | 'canvas-export' | 'image-generation' | 'image-prompt-editing' | 'caption' | 'generate-prompt' | 'describe-style' | 'translate' | 'detection' | 'restyle' | 'repaint' | 'reframe' | 'segment' | 'skybox-base-360' | 'skybox-upscale-360' | 'skybox-hdri' | 'skybox-3d' | 'texture' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'flux' | 'openai-image-generation' | 'upload' | 'custom' | 'splat' | 'mesh-preview-rendering' | 'workflow'>;
|
|
2274
|
-
workflowId?: unknown;
|
|
2275
|
-
}
|
|
2276
|
-
export interface JobTriggerActionParams {
|
|
2277
2401
|
/**
|
|
2278
|
-
*
|
|
2402
|
+
* Only return the jobs updated after this date (ISO 8601). Only allowed with
|
|
2403
|
+
* "status", "type", "types" or "workflowId": without them jobs are sorted by
|
|
2404
|
+
* creation date, use "createdAfter". Overrides the 30-day window applied with
|
|
2405
|
+
* "authorId" or "hideResults=false". Optional.
|
|
2279
2406
|
*/
|
|
2280
|
-
|
|
2407
|
+
updatedAfter?: string;
|
|
2408
|
+
/**
|
|
2409
|
+
* Only return the jobs produced by the given workflow. Optional.
|
|
2410
|
+
*/
|
|
2411
|
+
workflowId?: string;
|
|
2412
|
+
}
|
|
2413
|
+
export interface JobTriggerActionParams {
|
|
2281
2414
|
/**
|
|
2282
2415
|
* Query param: The projectId used for ownership resource management. Either to
|
|
2283
2416
|
* assert ownership or to set the owner of the resource(s)
|