@scenario-labs/sdk 3.2.0 → 3.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +36 -0
- package/client.d.mts +20 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -5
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +42 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +42 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +79 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +75 -0
- package/core/pagination.mjs.map +1 -1
- package/internal/utils/values.d.mts +6 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +6 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +11 -0
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +10 -0
- package/internal/utils/values.mjs.map +1 -1
- package/lib/asset.d.mts +1 -1
- package/lib/asset.d.ts +1 -1
- package/lib/asset.js +1 -1
- package/lib/asset.mjs +1 -1
- package/lib/generate.js +7 -7
- package/lib/generate.js.map +1 -1
- package/lib/generate.mjs +7 -7
- package/lib/generate.mjs.map +1 -1
- package/lib/job.d.mts +1 -1
- package/lib/job.d.mts.map +1 -1
- package/lib/job.d.ts +1 -1
- package/lib/job.d.ts.map +1 -1
- package/lib/job.js +5 -6
- package/lib/job.js.map +1 -1
- package/lib/job.mjs +6 -7
- package/lib/job.mjs.map +1 -1
- package/lib/models.d.mts.map +1 -1
- package/lib/models.d.ts.map +1 -1
- package/lib/models.js +7 -5
- package/lib/models.js.map +1 -1
- package/lib/models.mjs +8 -6
- package/lib/models.mjs.map +1 -1
- package/lib/query.d.mts +21 -0
- package/lib/query.d.mts.map +1 -0
- package/lib/query.d.ts +21 -0
- package/lib/query.d.ts.map +1 -0
- package/lib/query.js +36 -0
- package/lib/query.js.map +1 -0
- package/lib/query.mjs +33 -0
- package/lib/query.mjs.map +1 -0
- package/lib/scenario.d.mts +3 -0
- package/lib/scenario.d.mts.map +1 -1
- package/lib/scenario.d.ts +3 -0
- package/lib/scenario.d.ts.map +1 -1
- package/lib/scenario.js +6 -0
- package/lib/scenario.js.map +1 -1
- package/lib/scenario.mjs +6 -0
- package/lib/scenario.mjs.map +1 -1
- package/lib/scope.d.mts +27 -7
- package/lib/scope.d.mts.map +1 -1
- package/lib/scope.d.ts +27 -7
- package/lib/scope.d.ts.map +1 -1
- package/lib/scope.js +40 -7
- package/lib/scope.js.map +1 -1
- package/lib/scope.mjs +37 -7
- package/lib/scope.mjs.map +1 -1
- package/lib/upload.d.mts +11 -6
- package/lib/upload.d.mts.map +1 -1
- package/lib/upload.d.ts +11 -6
- package/lib/upload.d.ts.map +1 -1
- package/lib/upload.js +6 -7
- package/lib/upload.js.map +1 -1
- package/lib/upload.mjs +7 -8
- package/lib/upload.mjs.map +1 -1
- package/lib/workflow.d.mts +4 -2
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts +4 -2
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.js +13 -7
- package/lib/workflow.js.map +1 -1
- package/lib/workflow.mjs +14 -8
- package/lib/workflow.mjs.map +1 -1
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +1 -1
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +1 -1
- package/lib/workflow_converter.mjs.map +1 -1
- package/lib/workflow_validator.d.mts +5 -0
- package/lib/workflow_validator.d.mts.map +1 -1
- package/lib/workflow_validator.d.ts +5 -0
- package/lib/workflow_validator.d.ts.map +1 -1
- package/lib/workflow_validator.js +113 -0
- package/lib/workflow_validator.js.map +1 -1
- package/lib/workflow_validator.mjs +113 -0
- package/lib/workflow_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +130 -31
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +130 -31
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +34 -11
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +34 -11
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/download.d.mts +24 -5
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts +24 -5
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.js +15 -3
- package/resources/assets/download.js.map +1 -1
- package/resources/assets/download.mjs +15 -3
- package/resources/assets/download.mjs.map +1 -1
- package/resources/collections/assets.d.mts.map +1 -1
- package/resources/collections/assets.d.ts.map +1 -1
- package/resources/collections/assets.js +3 -2
- package/resources/collections/assets.js.map +1 -1
- package/resources/collections/assets.mjs +3 -2
- package/resources/collections/assets.mjs.map +1 -1
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.js +20 -5
- package/resources/collections/collections.js.map +1 -1
- package/resources/collections/collections.mjs +20 -5
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/models.d.mts.map +1 -1
- package/resources/collections/models.d.ts.map +1 -1
- package/resources/collections/models.js +3 -2
- package/resources/collections/models.js.map +1 -1
- package/resources/collections/models.mjs +3 -2
- package/resources/collections/models.mjs.map +1 -1
- package/resources/generate.d.mts +1719 -225
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +1719 -225
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +65 -8
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +65 -8
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts +5 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +176 -74
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +176 -74
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +16 -4
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +16 -4
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +2 -2
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +2 -2
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/description.js +6 -2
- package/resources/models/description.js.map +1 -1
- package/resources/models/description.mjs +6 -2
- package/resources/models/description.mjs.map +1 -1
- package/resources/models/examples.d.mts +120 -48
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +120 -48
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/examples.js +6 -2
- package/resources/models/examples.js.map +1 -1
- package/resources/models/examples.mjs +6 -2
- package/resources/models/examples.mjs.map +1 -1
- package/resources/models/index.d.mts +3 -0
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +3 -0
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js +7 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs +3 -0
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +215 -77
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +215 -77
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +52 -11
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +52 -11
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/presets.d.mts +1016 -0
- package/resources/models/presets.d.mts.map +1 -0
- package/resources/models/presets.d.ts +1016 -0
- package/resources/models/presets.d.ts.map +1 -0
- package/resources/models/presets.js +52 -0
- package/resources/models/presets.js.map +1 -0
- package/resources/models/presets.mjs +48 -0
- package/resources/models/presets.mjs.map +1 -0
- package/resources/models/prompt-guide.d.mts +64 -0
- package/resources/models/prompt-guide.d.mts.map +1 -0
- package/resources/models/prompt-guide.d.ts +64 -0
- package/resources/models/prompt-guide.d.ts.map +1 -0
- package/resources/models/prompt-guide.js +31 -0
- package/resources/models/prompt-guide.js.map +1 -0
- package/resources/models/prompt-guide.mjs +27 -0
- package/resources/models/prompt-guide.mjs.map +1 -0
- package/resources/models/scores.d.mts +278 -0
- package/resources/models/scores.d.mts.map +1 -0
- package/resources/models/scores.d.ts +278 -0
- package/resources/models/scores.d.ts.map +1 -0
- package/resources/models/scores.js +29 -0
- package/resources/models/scores.js.map +1 -0
- package/resources/models/scores.mjs +25 -0
- package/resources/models/scores.mjs.map +1 -0
- package/resources/models/train.d.mts +108 -45
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +108 -45
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +3 -2
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +3 -2
- package/resources/models/train.mjs.map +1 -1
- package/resources/models/training-images.d.mts.map +1 -1
- package/resources/models/training-images.d.ts.map +1 -1
- package/resources/models/training-images.js +5 -4
- package/resources/models/training-images.js.map +1 -1
- package/resources/models/training-images.mjs +5 -4
- package/resources/models/training-images.mjs.map +1 -1
- package/resources/projects/api-keys.d.mts +54 -0
- package/resources/projects/api-keys.d.mts.map +1 -0
- package/resources/projects/api-keys.d.ts +54 -0
- package/resources/projects/api-keys.d.ts.map +1 -0
- package/resources/projects/api-keys.js +23 -0
- package/resources/projects/api-keys.js.map +1 -0
- package/resources/projects/api-keys.mjs +19 -0
- package/resources/projects/api-keys.mjs.map +1 -0
- package/resources/projects/brief.d.mts +149 -0
- package/resources/projects/brief.d.mts.map +1 -0
- package/resources/projects/brief.d.ts +149 -0
- package/resources/projects/brief.d.ts.map +1 -0
- package/resources/projects/brief.js +28 -0
- package/resources/projects/brief.js.map +1 -0
- package/resources/projects/brief.mjs +24 -0
- package/resources/projects/brief.mjs.map +1 -0
- package/resources/projects/index.d.mts +9 -0
- package/resources/projects/index.d.mts.map +1 -0
- package/resources/projects/index.d.ts +9 -0
- package/resources/projects/index.d.ts.map +1 -0
- package/resources/projects/index.js +21 -0
- package/resources/projects/index.js.map +1 -0
- package/resources/projects/index.mjs +10 -0
- package/resources/projects/index.mjs.map +1 -0
- package/resources/projects/instructions.d.mts +102 -0
- package/resources/projects/instructions.d.mts.map +1 -0
- package/resources/projects/instructions.d.ts +102 -0
- package/resources/projects/instructions.d.ts.map +1 -0
- package/resources/projects/instructions.js +24 -0
- package/resources/projects/instructions.js.map +1 -0
- package/resources/projects/instructions.mjs +20 -0
- package/resources/projects/instructions.mjs.map +1 -0
- package/resources/projects/members.d.mts +788 -0
- package/resources/projects/members.d.mts.map +1 -0
- package/resources/projects/members.d.ts +788 -0
- package/resources/projects/members.d.ts.map +1 -0
- package/resources/projects/members.js +30 -0
- package/resources/projects/members.js.map +1 -0
- package/resources/projects/members.mjs +26 -0
- package/resources/projects/members.mjs.map +1 -0
- package/resources/projects/memory.d.mts +102 -0
- package/resources/projects/memory.d.mts.map +1 -0
- package/resources/projects/memory.d.ts +102 -0
- package/resources/projects/memory.d.ts.map +1 -0
- package/resources/projects/memory.js +24 -0
- package/resources/projects/memory.js.map +1 -0
- package/resources/projects/memory.mjs +20 -0
- package/resources/projects/memory.mjs.map +1 -0
- package/resources/projects/projects.d.mts +1129 -0
- package/resources/projects/projects.d.mts.map +1 -0
- package/resources/projects/projects.d.ts +1129 -0
- package/resources/projects/projects.d.ts.map +1 -0
- package/resources/projects/projects.js +79 -0
- package/resources/projects/projects.js.map +1 -0
- package/resources/projects/projects.mjs +74 -0
- package/resources/projects/projects.mjs.map +1 -0
- package/resources/projects/watermark.d.mts +459 -0
- package/resources/projects/watermark.d.mts.map +1 -0
- package/resources/projects/watermark.d.ts +459 -0
- package/resources/projects/watermark.d.ts.map +1 -0
- package/resources/projects/watermark.js +46 -0
- package/resources/projects/watermark.js.map +1 -0
- package/resources/projects/watermark.mjs +42 -0
- package/resources/projects/watermark.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/events.d.mts +87 -0
- package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/events.d.ts +87 -0
- package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/events.js +28 -0
- package/resources/projects/webhook-endpoints/events.js.map +1 -0
- package/resources/projects/webhook-endpoints/events.mjs +24 -0
- package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/index.d.mts +3 -0
- package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/index.d.ts +3 -0
- package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/index.js +9 -0
- package/resources/projects/webhook-endpoints/index.js.map +1 -0
- package/resources/projects/webhook-endpoints/index.mjs +4 -0
- package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
- package/resources/projects/webhook-endpoints.d.mts +2 -0
- package/resources/projects/webhook-endpoints.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints.d.ts +2 -0
- package/resources/projects/webhook-endpoints.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints.js +6 -0
- package/resources/projects/webhook-endpoints.js.map +1 -0
- package/resources/projects/webhook-endpoints.mjs +3 -0
- package/resources/projects/webhook-endpoints.mjs.map +1 -0
- package/resources/projects.d.mts +2 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts +2 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +6 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +3 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/recommendations.d.mts +1107 -0
- package/resources/recommendations.d.mts.map +1 -0
- package/resources/recommendations.d.ts +1107 -0
- package/resources/recommendations.d.ts.map +1 -0
- package/resources/recommendations.js +17 -0
- package/resources/recommendations.js.map +1 -0
- package/resources/recommendations.mjs +13 -0
- package/resources/recommendations.mjs.map +1 -0
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +4 -3
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +4 -3
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts.map +1 -1
- package/resources/tags.d.ts.map +1 -1
- package/resources/tags.js +5 -1
- package/resources/tags.js.map +1 -1
- package/resources/tags.mjs +5 -1
- package/resources/tags.mjs.map +1 -1
- package/resources/teams/brief.d.mts +149 -0
- package/resources/teams/brief.d.mts.map +1 -0
- package/resources/teams/brief.d.ts +149 -0
- package/resources/teams/brief.d.ts.map +1 -0
- package/resources/teams/brief.js +28 -0
- package/resources/teams/brief.js.map +1 -0
- package/resources/teams/brief.mjs +24 -0
- package/resources/teams/brief.mjs.map +1 -0
- package/resources/teams/index.d.mts +7 -0
- package/resources/teams/index.d.mts.map +1 -0
- package/resources/teams/index.d.ts +7 -0
- package/resources/teams/index.d.ts.map +1 -0
- package/resources/teams/index.js +17 -0
- package/resources/teams/index.js.map +1 -0
- package/resources/teams/index.mjs +8 -0
- package/resources/teams/index.mjs.map +1 -0
- package/resources/teams/ip-filters.d.mts +115 -0
- package/resources/teams/ip-filters.d.mts.map +1 -0
- package/resources/teams/ip-filters.d.ts +115 -0
- package/resources/teams/ip-filters.d.ts.map +1 -0
- package/resources/teams/ip-filters.js +45 -0
- package/resources/teams/ip-filters.js.map +1 -0
- package/resources/teams/ip-filters.mjs +41 -0
- package/resources/teams/ip-filters.mjs.map +1 -0
- package/resources/teams/members.d.mts +204 -0
- package/resources/teams/members.d.mts.map +1 -0
- package/resources/teams/members.d.ts +204 -0
- package/resources/teams/members.d.ts.map +1 -0
- package/resources/teams/members.js +30 -0
- package/resources/teams/members.js.map +1 -0
- package/resources/teams/members.mjs +26 -0
- package/resources/teams/members.mjs.map +1 -0
- package/resources/teams/teams.d.mts +878 -0
- package/resources/teams/teams.d.mts.map +1 -0
- package/resources/teams/teams.d.ts +878 -0
- package/resources/teams/teams.d.ts.map +1 -0
- package/resources/teams/teams.js +66 -0
- package/resources/teams/teams.js.map +1 -0
- package/resources/teams/teams.mjs +61 -0
- package/resources/teams/teams.mjs.map +1 -0
- package/resources/teams/watermark.d.mts +459 -0
- package/resources/teams/watermark.d.mts.map +1 -0
- package/resources/teams/watermark.d.ts +459 -0
- package/resources/teams/watermark.d.ts.map +1 -0
- package/resources/teams/watermark.js +46 -0
- package/resources/teams/watermark.js.map +1 -0
- package/resources/teams/watermark.mjs +42 -0
- package/resources/teams/watermark.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/events.d.mts +87 -0
- package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/events.d.ts +87 -0
- package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/events.js +28 -0
- package/resources/teams/webhook-endpoints/events.js.map +1 -0
- package/resources/teams/webhook-endpoints/events.mjs +24 -0
- package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/index.d.mts +3 -0
- package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/index.d.ts +3 -0
- package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/index.js +9 -0
- package/resources/teams/webhook-endpoints/index.js.map +1 -0
- package/resources/teams/webhook-endpoints/index.mjs +4 -0
- package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
- package/resources/teams/webhook-endpoints.d.mts +2 -0
- package/resources/teams/webhook-endpoints.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints.d.ts +2 -0
- package/resources/teams/webhook-endpoints.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints.js +6 -0
- package/resources/teams/webhook-endpoints.js.map +1 -0
- package/resources/teams/webhook-endpoints.mjs +3 -0
- package/resources/teams/webhook-endpoints.mjs.map +1 -0
- package/resources/teams.d.mts +2 -0
- package/resources/teams.d.mts.map +1 -0
- package/resources/teams.d.ts +2 -0
- package/resources/teams.d.ts.map +1 -0
- package/resources/teams.js +6 -0
- package/resources/teams.js.map +1 -0
- package/resources/teams.mjs +3 -0
- package/resources/teams.mjs.map +1 -0
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +15 -3
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +15 -3
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +51 -24
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +51 -24
- package/resources/usages.d.ts.map +1 -1
- package/resources/usages.js +2 -1
- package/resources/usages.js.map +1 -1
- package/resources/usages.mjs +2 -1
- package/resources/usages.mjs.map +1 -1
- package/resources/workflows.d.mts +1381 -280
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +1381 -280
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +39 -8
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +39 -8
- package/resources/workflows.mjs.map +1 -1
- package/src/client.ts +101 -0
- package/src/core/pagination.ts +144 -0
- package/src/internal/utils/values.ts +10 -0
- package/src/lib/asset.ts +1 -1
- package/src/lib/generate.ts +7 -7
- package/src/lib/job.ts +9 -7
- package/src/lib/models.ts +8 -6
- package/src/lib/query.ts +42 -0
- package/src/lib/scenario.ts +8 -0
- package/src/lib/scope.ts +42 -7
- package/src/lib/upload.ts +20 -13
- package/src/lib/workflow.ts +21 -8
- package/src/lib/workflow_converter.ts +4 -2
- package/src/lib/workflow_validator.ts +115 -0
- package/src/resources/assets/assets.ts +192 -33
- package/src/resources/assets/download.ts +43 -8
- package/src/resources/collections/assets.ts +3 -2
- package/src/resources/collections/collections.ts +20 -5
- package/src/resources/collections/models.ts +3 -2
- package/src/resources/generate.ts +2350 -186
- package/src/resources/index.ts +34 -0
- package/src/resources/jobs.ts +204 -74
- package/src/resources/models/description.ts +10 -2
- package/src/resources/models/examples.ts +140 -46
- package/src/resources/models/index.ts +25 -0
- package/src/resources/models/models.ts +326 -88
- package/src/resources/models/presets.ts +1335 -0
- package/src/resources/models/prompt-guide.ts +102 -0
- package/src/resources/models/scores.ts +383 -0
- package/src/resources/models/train.ts +121 -46
- package/src/resources/models/training-images.ts +5 -4
- package/src/resources/projects/api-keys.ts +86 -0
- package/src/resources/projects/brief.ts +197 -0
- package/src/resources/projects/index.ts +71 -0
- package/src/resources/projects/instructions.ts +134 -0
- package/src/resources/projects/members.ts +958 -0
- package/src/resources/projects/memory.ts +134 -0
- package/src/resources/projects/projects.ts +1478 -0
- package/src/resources/projects/watermark.ts +590 -0
- package/src/resources/projects/webhook-endpoints/events.ts +179 -0
- package/src/resources/projects/webhook-endpoints/index.ts +19 -0
- package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
- package/src/resources/projects/webhook-endpoints.ts +3 -0
- package/src/resources/projects.ts +3 -0
- package/src/resources/recommendations.ts +1502 -0
- package/src/resources/search.ts +4 -3
- package/src/resources/tags.ts +5 -1
- package/src/resources/teams/brief.ts +193 -0
- package/src/resources/teams/index.ts +62 -0
- package/src/resources/teams/ip-filters.ts +177 -0
- package/src/resources/teams/members.ts +282 -0
- package/src/resources/teams/teams.ts +1255 -0
- package/src/resources/teams/watermark.ts +590 -0
- package/src/resources/teams/webhook-endpoints/events.ts +179 -0
- package/src/resources/teams/webhook-endpoints/index.ts +19 -0
- package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
- package/src/resources/teams/webhook-endpoints.ts +3 -0
- package/src/resources/teams.ts +3 -0
- package/src/resources/uploads.ts +15 -3
- package/src/resources/usages.ts +58 -23
- package/src/resources/workflows.ts +1707 -241
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/src/resources/index.ts
CHANGED
|
@@ -47,16 +47,20 @@ export {
|
|
|
47
47
|
type GenerateDescribeStyleResponse,
|
|
48
48
|
type GenerateDetectResponse,
|
|
49
49
|
type GenerateEmbedResponse,
|
|
50
|
+
type GenerateIPDetectionResponse,
|
|
50
51
|
type GeneratePatchResponse,
|
|
51
52
|
type GeneratePromptResponse,
|
|
53
|
+
type GenerateQualityGateResponse,
|
|
52
54
|
type GenerateRunModelResponse,
|
|
53
55
|
type GenerateTranslateResponse,
|
|
54
56
|
type GenerateCaptionParams,
|
|
55
57
|
type GenerateDescribeStyleParams,
|
|
56
58
|
type GenerateDetectParams,
|
|
57
59
|
type GenerateEmbedParams,
|
|
60
|
+
type GenerateIPDetectionParams,
|
|
58
61
|
type GeneratePatchParams,
|
|
59
62
|
type GeneratePromptParams,
|
|
63
|
+
type GenerateQualityGateParams,
|
|
60
64
|
type GenerateRunModelParams,
|
|
61
65
|
type GenerateTranslateParams,
|
|
62
66
|
} from './generate';
|
|
@@ -98,6 +102,24 @@ export {
|
|
|
98
102
|
} from './models/models';
|
|
99
103
|
export { Oscu, type OscuRetrievePricesResponse } from './oscu';
|
|
100
104
|
export { Pricing } from './pricing/pricing';
|
|
105
|
+
export {
|
|
106
|
+
Projects,
|
|
107
|
+
type ProjectCreateResponse,
|
|
108
|
+
type ProjectRetrieveResponse,
|
|
109
|
+
type ProjectUpdateResponse,
|
|
110
|
+
type ProjectListResponse,
|
|
111
|
+
type ProjectDeleteResponse,
|
|
112
|
+
type ProjectCreateParams,
|
|
113
|
+
type ProjectUpdateParams,
|
|
114
|
+
type ProjectListParams,
|
|
115
|
+
type ProjectListResponsesProjectsCursor,
|
|
116
|
+
} from './projects/projects';
|
|
117
|
+
export {
|
|
118
|
+
Recommendations,
|
|
119
|
+
type RecommendationListModelsResponse,
|
|
120
|
+
type RecommendationListModelsParams,
|
|
121
|
+
type RecommendationListModelsResponsesRecommendationsCursor,
|
|
122
|
+
} from './recommendations';
|
|
101
123
|
export {
|
|
102
124
|
Search,
|
|
103
125
|
type SearchAssetSearchResponse,
|
|
@@ -111,6 +133,16 @@ export {
|
|
|
111
133
|
type SearchWorkflowSearchResponsesSearchHitsOffset,
|
|
112
134
|
} from './search';
|
|
113
135
|
export { Tags, type TagListResponse, type TagListParams, type TagListResponsesTagsCursor } from './tags';
|
|
136
|
+
export {
|
|
137
|
+
Teams,
|
|
138
|
+
type TeamRetrieveResponse,
|
|
139
|
+
type TeamUpdateResponse,
|
|
140
|
+
type TeamListResponse,
|
|
141
|
+
type TeamDeleteInvitationsResponse,
|
|
142
|
+
type TeamRetrieveLimitsResponse,
|
|
143
|
+
type TeamUpdateParams,
|
|
144
|
+
type TeamDeleteInvitationsParams,
|
|
145
|
+
} from './teams/teams';
|
|
114
146
|
export {
|
|
115
147
|
Uploads,
|
|
116
148
|
type UploadCreateResponse,
|
|
@@ -131,6 +163,7 @@ export {
|
|
|
131
163
|
type WorkflowGetTagsResponse,
|
|
132
164
|
type WorkflowRunResponse,
|
|
133
165
|
type WorkflowUserApprovalResponse,
|
|
166
|
+
type WorkflowUserSelectionResponse,
|
|
134
167
|
type WorkflowCreateParams,
|
|
135
168
|
type WorkflowRetrieveParams,
|
|
136
169
|
type WorkflowUpdateParams,
|
|
@@ -139,6 +172,7 @@ export {
|
|
|
139
172
|
type WorkflowGetTagsParams,
|
|
140
173
|
type WorkflowRunParams,
|
|
141
174
|
type WorkflowUserApprovalParams,
|
|
175
|
+
type WorkflowUserSelectionParams,
|
|
142
176
|
type WorkflowApproveUserParams,
|
|
143
177
|
type WorkflowListResponsesWorkflowsCursor,
|
|
144
178
|
} from './workflows';
|
package/src/resources/jobs.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { APIPromise } from '../core/api-promise';
|
|
|
5
5
|
import { JobsCursor, type JobsCursorParams, PagePromise } from '../core/pagination';
|
|
6
6
|
import { RequestOptions } from '../internal/request-options';
|
|
7
7
|
import { path } from '../internal/utils/path';
|
|
8
|
+
import { omitUndefined } from '../internal/utils/values';
|
|
8
9
|
|
|
9
10
|
export class Jobs extends APIResource {
|
|
10
11
|
/**
|
|
@@ -15,20 +16,27 @@ export class Jobs extends APIResource {
|
|
|
15
16
|
query: JobRetrieveParams | null | undefined = {},
|
|
16
17
|
options?: RequestOptions,
|
|
17
18
|
): APIPromise<JobRetrieveResponse> {
|
|
18
|
-
return this._client.get(path`/jobs/${jobID}`, {
|
|
19
|
+
return this._client.get(path`/jobs/${jobID}`, {
|
|
20
|
+
...options,
|
|
21
|
+
query: { ...query, ...omitUndefined(options?.query) },
|
|
22
|
+
});
|
|
19
23
|
}
|
|
20
24
|
|
|
21
25
|
/**
|
|
22
26
|
* List all jobs matching the given filters. A job is a synchronous operation or an
|
|
23
27
|
* asynchronous task such as a training, a generation, etc. It offers a unified
|
|
24
28
|
* view of all operations running on the platform along with their status and
|
|
25
|
-
* results.
|
|
29
|
+
* results. A page can hold fewer jobs than "pageSize", or none, while
|
|
30
|
+
* "nextPaginationToken" is set: keep paginating until it is absent.
|
|
26
31
|
*/
|
|
27
32
|
list(
|
|
28
33
|
query: JobListParams | null | undefined = {},
|
|
29
34
|
options?: RequestOptions,
|
|
30
35
|
): PagePromise<JobListResponsesJobsCursor, JobListResponse> {
|
|
31
|
-
return this._client.getAPIList('/jobs', JobsCursor<JobListResponse>, {
|
|
36
|
+
return this._client.getAPIList('/jobs', JobsCursor<JobListResponse>, {
|
|
37
|
+
...options,
|
|
38
|
+
query: { ...query, ...omitUndefined(options?.query) },
|
|
39
|
+
});
|
|
32
40
|
}
|
|
33
41
|
|
|
34
42
|
/**
|
|
@@ -40,7 +48,11 @@ export class Jobs extends APIResource {
|
|
|
40
48
|
options?: RequestOptions,
|
|
41
49
|
): APIPromise<JobTriggerActionResponse> {
|
|
42
50
|
const { projectId, ...body } = params;
|
|
43
|
-
return this._client.post(path`/jobs/${jobID}/action`, {
|
|
51
|
+
return this._client.post(path`/jobs/${jobID}/action`, {
|
|
52
|
+
body,
|
|
53
|
+
...options,
|
|
54
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
55
|
+
});
|
|
44
56
|
}
|
|
45
57
|
}
|
|
46
58
|
|
|
@@ -235,6 +247,7 @@ export namespace JobRetrieveResponse {
|
|
|
235
247
|
| 'remove-background'
|
|
236
248
|
| 'transform'
|
|
237
249
|
| 'user-approval'
|
|
250
|
+
| 'user-selection'
|
|
238
251
|
| 'workflow';
|
|
239
252
|
|
|
240
253
|
/**
|
|
@@ -265,14 +278,15 @@ export namespace JobRetrieveResponse {
|
|
|
265
278
|
includeOutputsInWorkflowJob?: true;
|
|
266
279
|
|
|
267
280
|
/**
|
|
268
|
-
* The inputs of the node.
|
|
281
|
+
* The inputs of the node. For a user-selection node, the array input's `min`/`max`
|
|
282
|
+
* bound how many items the user may pick (defaults: 1 and 100); conditional
|
|
283
|
+
* connections may be present as additional inputs.
|
|
269
284
|
*/
|
|
270
285
|
inputs?: Array<Flow.Input>;
|
|
271
286
|
|
|
272
287
|
/**
|
|
273
|
-
* Statically-configured items for a List node
|
|
274
|
-
*
|
|
275
|
-
* numbers, or asset IDs.
|
|
288
|
+
* Statically-configured items for a List node, or the frozen candidate list of a
|
|
289
|
+
* UserSelection node. The values can be strings, numbers, or asset IDs.
|
|
276
290
|
*/
|
|
277
291
|
items?: Array<string>;
|
|
278
292
|
|
|
@@ -552,8 +566,7 @@ export namespace JobRetrieveResponse {
|
|
|
552
566
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
553
567
|
* defined
|
|
554
568
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
555
|
-
* - \`
|
|
556
|
-
* value
|
|
569
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
557
570
|
*
|
|
558
571
|
* By default, the input is not required.
|
|
559
572
|
*/
|
|
@@ -783,8 +796,7 @@ export namespace JobRetrieveResponse {
|
|
|
783
796
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
784
797
|
* defined
|
|
785
798
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
786
|
-
* - \`
|
|
787
|
-
* value
|
|
799
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
788
800
|
*
|
|
789
801
|
* By default, the input is not required.
|
|
790
802
|
*/
|
|
@@ -841,8 +853,7 @@ export namespace JobRetrieveResponse {
|
|
|
841
853
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
842
854
|
* defined
|
|
843
855
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
844
|
-
* - \`
|
|
845
|
-
* value
|
|
856
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
846
857
|
*
|
|
847
858
|
* By default, the input is not required.
|
|
848
859
|
*/
|
|
@@ -853,12 +864,9 @@ export namespace JobRetrieveResponse {
|
|
|
853
864
|
always?: boolean;
|
|
854
865
|
|
|
855
866
|
/**
|
|
856
|
-
* Makes this input required when
|
|
857
|
-
*
|
|
858
|
-
* - Key: name of the input to check
|
|
859
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
867
|
+
* Makes this input required when other inputs have one of the listed values
|
|
860
868
|
*/
|
|
861
|
-
|
|
869
|
+
conditional?: Required.Conditional;
|
|
862
870
|
|
|
863
871
|
/**
|
|
864
872
|
* Makes this input required when another input is defined:
|
|
@@ -876,6 +884,26 @@ export namespace JobRetrieveResponse {
|
|
|
876
884
|
*/
|
|
877
885
|
ifNotDefined?: unknown;
|
|
878
886
|
}
|
|
887
|
+
|
|
888
|
+
export namespace Required {
|
|
889
|
+
/**
|
|
890
|
+
* Makes this input required when other inputs have one of the listed values
|
|
891
|
+
*/
|
|
892
|
+
export interface Conditional {
|
|
893
|
+
/**
|
|
894
|
+
* The conditions to check:
|
|
895
|
+
*
|
|
896
|
+
* - Key: name of the input to check
|
|
897
|
+
* - Value: values of that input that satisfy the condition
|
|
898
|
+
*/
|
|
899
|
+
values: unknown;
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
903
|
+
*/
|
|
904
|
+
operator?: 'and' | 'or';
|
|
905
|
+
}
|
|
906
|
+
}
|
|
879
907
|
}
|
|
880
908
|
|
|
881
909
|
/**
|
|
@@ -916,8 +944,7 @@ export namespace JobRetrieveResponse {
|
|
|
916
944
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
917
945
|
* defined
|
|
918
946
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
919
|
-
* - \`
|
|
920
|
-
* value
|
|
947
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
921
948
|
*
|
|
922
949
|
* By default, the input is not required.
|
|
923
950
|
*/
|
|
@@ -928,12 +955,9 @@ export namespace JobRetrieveResponse {
|
|
|
928
955
|
always?: boolean;
|
|
929
956
|
|
|
930
957
|
/**
|
|
931
|
-
* Makes this input required when
|
|
932
|
-
*
|
|
933
|
-
* - Key: name of the input to check
|
|
934
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
958
|
+
* Makes this input required when other inputs have one of the listed values
|
|
935
959
|
*/
|
|
936
|
-
|
|
960
|
+
conditional?: Required.Conditional;
|
|
937
961
|
|
|
938
962
|
/**
|
|
939
963
|
* Makes this input required when another input is defined:
|
|
@@ -951,6 +975,26 @@ export namespace JobRetrieveResponse {
|
|
|
951
975
|
*/
|
|
952
976
|
ifNotDefined?: unknown;
|
|
953
977
|
}
|
|
978
|
+
|
|
979
|
+
export namespace Required {
|
|
980
|
+
/**
|
|
981
|
+
* Makes this input required when other inputs have one of the listed values
|
|
982
|
+
*/
|
|
983
|
+
export interface Conditional {
|
|
984
|
+
/**
|
|
985
|
+
* The conditions to check:
|
|
986
|
+
*
|
|
987
|
+
* - Key: name of the input to check
|
|
988
|
+
* - Value: values of that input that satisfy the condition
|
|
989
|
+
*/
|
|
990
|
+
values: unknown;
|
|
991
|
+
|
|
992
|
+
/**
|
|
993
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
994
|
+
*/
|
|
995
|
+
operator?: 'and' | 'or';
|
|
996
|
+
}
|
|
997
|
+
}
|
|
954
998
|
}
|
|
955
999
|
|
|
956
1000
|
/**
|
|
@@ -1248,6 +1292,7 @@ export namespace JobListResponse {
|
|
|
1248
1292
|
| 'remove-background'
|
|
1249
1293
|
| 'transform'
|
|
1250
1294
|
| 'user-approval'
|
|
1295
|
+
| 'user-selection'
|
|
1251
1296
|
| 'workflow';
|
|
1252
1297
|
|
|
1253
1298
|
/**
|
|
@@ -1278,14 +1323,15 @@ export namespace JobListResponse {
|
|
|
1278
1323
|
includeOutputsInWorkflowJob?: true;
|
|
1279
1324
|
|
|
1280
1325
|
/**
|
|
1281
|
-
* The inputs of the node.
|
|
1326
|
+
* The inputs of the node. For a user-selection node, the array input's `min`/`max`
|
|
1327
|
+
* bound how many items the user may pick (defaults: 1 and 100); conditional
|
|
1328
|
+
* connections may be present as additional inputs.
|
|
1282
1329
|
*/
|
|
1283
1330
|
inputs?: Array<Flow.Input>;
|
|
1284
1331
|
|
|
1285
1332
|
/**
|
|
1286
|
-
* Statically-configured items for a List node
|
|
1287
|
-
*
|
|
1288
|
-
* numbers, or asset IDs.
|
|
1333
|
+
* Statically-configured items for a List node, or the frozen candidate list of a
|
|
1334
|
+
* UserSelection node. The values can be strings, numbers, or asset IDs.
|
|
1289
1335
|
*/
|
|
1290
1336
|
items?: Array<string>;
|
|
1291
1337
|
|
|
@@ -1565,8 +1611,7 @@ export namespace JobListResponse {
|
|
|
1565
1611
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1566
1612
|
* defined
|
|
1567
1613
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1568
|
-
* - \`
|
|
1569
|
-
* value
|
|
1614
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1570
1615
|
*
|
|
1571
1616
|
* By default, the input is not required.
|
|
1572
1617
|
*/
|
|
@@ -1796,8 +1841,7 @@ export namespace JobListResponse {
|
|
|
1796
1841
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1797
1842
|
* defined
|
|
1798
1843
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1799
|
-
* - \`
|
|
1800
|
-
* value
|
|
1844
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1801
1845
|
*
|
|
1802
1846
|
* By default, the input is not required.
|
|
1803
1847
|
*/
|
|
@@ -1854,8 +1898,7 @@ export namespace JobListResponse {
|
|
|
1854
1898
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1855
1899
|
* defined
|
|
1856
1900
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1857
|
-
* - \`
|
|
1858
|
-
* value
|
|
1901
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1859
1902
|
*
|
|
1860
1903
|
* By default, the input is not required.
|
|
1861
1904
|
*/
|
|
@@ -1866,12 +1909,9 @@ export namespace JobListResponse {
|
|
|
1866
1909
|
always?: boolean;
|
|
1867
1910
|
|
|
1868
1911
|
/**
|
|
1869
|
-
* Makes this input required when
|
|
1870
|
-
*
|
|
1871
|
-
* - Key: name of the input to check
|
|
1872
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
1912
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1873
1913
|
*/
|
|
1874
|
-
|
|
1914
|
+
conditional?: Required.Conditional;
|
|
1875
1915
|
|
|
1876
1916
|
/**
|
|
1877
1917
|
* Makes this input required when another input is defined:
|
|
@@ -1889,6 +1929,26 @@ export namespace JobListResponse {
|
|
|
1889
1929
|
*/
|
|
1890
1930
|
ifNotDefined?: unknown;
|
|
1891
1931
|
}
|
|
1932
|
+
|
|
1933
|
+
export namespace Required {
|
|
1934
|
+
/**
|
|
1935
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1936
|
+
*/
|
|
1937
|
+
export interface Conditional {
|
|
1938
|
+
/**
|
|
1939
|
+
* The conditions to check:
|
|
1940
|
+
*
|
|
1941
|
+
* - Key: name of the input to check
|
|
1942
|
+
* - Value: values of that input that satisfy the condition
|
|
1943
|
+
*/
|
|
1944
|
+
values: unknown;
|
|
1945
|
+
|
|
1946
|
+
/**
|
|
1947
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
1948
|
+
*/
|
|
1949
|
+
operator?: 'and' | 'or';
|
|
1950
|
+
}
|
|
1951
|
+
}
|
|
1892
1952
|
}
|
|
1893
1953
|
|
|
1894
1954
|
/**
|
|
@@ -1929,8 +1989,7 @@ export namespace JobListResponse {
|
|
|
1929
1989
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1930
1990
|
* defined
|
|
1931
1991
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1932
|
-
* - \`
|
|
1933
|
-
* value
|
|
1992
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1934
1993
|
*
|
|
1935
1994
|
* By default, the input is not required.
|
|
1936
1995
|
*/
|
|
@@ -1941,12 +2000,9 @@ export namespace JobListResponse {
|
|
|
1941
2000
|
always?: boolean;
|
|
1942
2001
|
|
|
1943
2002
|
/**
|
|
1944
|
-
* Makes this input required when
|
|
1945
|
-
*
|
|
1946
|
-
* - Key: name of the input to check
|
|
1947
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2003
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1948
2004
|
*/
|
|
1949
|
-
|
|
2005
|
+
conditional?: Required.Conditional;
|
|
1950
2006
|
|
|
1951
2007
|
/**
|
|
1952
2008
|
* Makes this input required when another input is defined:
|
|
@@ -1964,6 +2020,26 @@ export namespace JobListResponse {
|
|
|
1964
2020
|
*/
|
|
1965
2021
|
ifNotDefined?: unknown;
|
|
1966
2022
|
}
|
|
2023
|
+
|
|
2024
|
+
export namespace Required {
|
|
2025
|
+
/**
|
|
2026
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2027
|
+
*/
|
|
2028
|
+
export interface Conditional {
|
|
2029
|
+
/**
|
|
2030
|
+
* The conditions to check:
|
|
2031
|
+
*
|
|
2032
|
+
* - Key: name of the input to check
|
|
2033
|
+
* - Value: values of that input that satisfy the condition
|
|
2034
|
+
*/
|
|
2035
|
+
values: unknown;
|
|
2036
|
+
|
|
2037
|
+
/**
|
|
2038
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2039
|
+
*/
|
|
2040
|
+
operator?: 'and' | 'or';
|
|
2041
|
+
}
|
|
2042
|
+
}
|
|
1967
2043
|
}
|
|
1968
2044
|
|
|
1969
2045
|
/**
|
|
@@ -2265,6 +2341,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2265
2341
|
| 'remove-background'
|
|
2266
2342
|
| 'transform'
|
|
2267
2343
|
| 'user-approval'
|
|
2344
|
+
| 'user-selection'
|
|
2268
2345
|
| 'workflow';
|
|
2269
2346
|
|
|
2270
2347
|
/**
|
|
@@ -2295,14 +2372,15 @@ export namespace JobTriggerActionResponse {
|
|
|
2295
2372
|
includeOutputsInWorkflowJob?: true;
|
|
2296
2373
|
|
|
2297
2374
|
/**
|
|
2298
|
-
* The inputs of the node.
|
|
2375
|
+
* The inputs of the node. For a user-selection node, the array input's `min`/`max`
|
|
2376
|
+
* bound how many items the user may pick (defaults: 1 and 100); conditional
|
|
2377
|
+
* connections may be present as additional inputs.
|
|
2299
2378
|
*/
|
|
2300
2379
|
inputs?: Array<Flow.Input>;
|
|
2301
2380
|
|
|
2302
2381
|
/**
|
|
2303
|
-
* Statically-configured items for a List node
|
|
2304
|
-
*
|
|
2305
|
-
* numbers, or asset IDs.
|
|
2382
|
+
* Statically-configured items for a List node, or the frozen candidate list of a
|
|
2383
|
+
* UserSelection node. The values can be strings, numbers, or asset IDs.
|
|
2306
2384
|
*/
|
|
2307
2385
|
items?: Array<string>;
|
|
2308
2386
|
|
|
@@ -2582,8 +2660,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2582
2660
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2583
2661
|
* defined
|
|
2584
2662
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2585
|
-
* - \`
|
|
2586
|
-
* value
|
|
2663
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2587
2664
|
*
|
|
2588
2665
|
* By default, the input is not required.
|
|
2589
2666
|
*/
|
|
@@ -2813,8 +2890,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2813
2890
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2814
2891
|
* defined
|
|
2815
2892
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2816
|
-
* - \`
|
|
2817
|
-
* value
|
|
2893
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2818
2894
|
*
|
|
2819
2895
|
* By default, the input is not required.
|
|
2820
2896
|
*/
|
|
@@ -2871,8 +2947,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2871
2947
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2872
2948
|
* defined
|
|
2873
2949
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2874
|
-
* - \`
|
|
2875
|
-
* value
|
|
2950
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2876
2951
|
*
|
|
2877
2952
|
* By default, the input is not required.
|
|
2878
2953
|
*/
|
|
@@ -2883,12 +2958,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2883
2958
|
always?: boolean;
|
|
2884
2959
|
|
|
2885
2960
|
/**
|
|
2886
|
-
* Makes this input required when
|
|
2887
|
-
*
|
|
2888
|
-
* - Key: name of the input to check
|
|
2889
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2961
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2890
2962
|
*/
|
|
2891
|
-
|
|
2963
|
+
conditional?: Required.Conditional;
|
|
2892
2964
|
|
|
2893
2965
|
/**
|
|
2894
2966
|
* Makes this input required when another input is defined:
|
|
@@ -2906,6 +2978,26 @@ export namespace JobTriggerActionResponse {
|
|
|
2906
2978
|
*/
|
|
2907
2979
|
ifNotDefined?: unknown;
|
|
2908
2980
|
}
|
|
2981
|
+
|
|
2982
|
+
export namespace Required {
|
|
2983
|
+
/**
|
|
2984
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2985
|
+
*/
|
|
2986
|
+
export interface Conditional {
|
|
2987
|
+
/**
|
|
2988
|
+
* The conditions to check:
|
|
2989
|
+
*
|
|
2990
|
+
* - Key: name of the input to check
|
|
2991
|
+
* - Value: values of that input that satisfy the condition
|
|
2992
|
+
*/
|
|
2993
|
+
values: unknown;
|
|
2994
|
+
|
|
2995
|
+
/**
|
|
2996
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
2997
|
+
*/
|
|
2998
|
+
operator?: 'and' | 'or';
|
|
2999
|
+
}
|
|
3000
|
+
}
|
|
2909
3001
|
}
|
|
2910
3002
|
|
|
2911
3003
|
/**
|
|
@@ -2946,8 +3038,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2946
3038
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2947
3039
|
* defined
|
|
2948
3040
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2949
|
-
* - \`
|
|
2950
|
-
* value
|
|
3041
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2951
3042
|
*
|
|
2952
3043
|
* By default, the input is not required.
|
|
2953
3044
|
*/
|
|
@@ -2958,12 +3049,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2958
3049
|
always?: boolean;
|
|
2959
3050
|
|
|
2960
3051
|
/**
|
|
2961
|
-
* Makes this input required when
|
|
2962
|
-
*
|
|
2963
|
-
* - Key: name of the input to check
|
|
2964
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
3052
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2965
3053
|
*/
|
|
2966
|
-
|
|
3054
|
+
conditional?: Required.Conditional;
|
|
2967
3055
|
|
|
2968
3056
|
/**
|
|
2969
3057
|
* Makes this input required when another input is defined:
|
|
@@ -2981,6 +3069,26 @@ export namespace JobTriggerActionResponse {
|
|
|
2981
3069
|
*/
|
|
2982
3070
|
ifNotDefined?: unknown;
|
|
2983
3071
|
}
|
|
3072
|
+
|
|
3073
|
+
export namespace Required {
|
|
3074
|
+
/**
|
|
3075
|
+
* Makes this input required when other inputs have one of the listed values
|
|
3076
|
+
*/
|
|
3077
|
+
export interface Conditional {
|
|
3078
|
+
/**
|
|
3079
|
+
* The conditions to check:
|
|
3080
|
+
*
|
|
3081
|
+
* - Key: name of the input to check
|
|
3082
|
+
* - Value: values of that input that satisfy the condition
|
|
3083
|
+
*/
|
|
3084
|
+
values: unknown;
|
|
3085
|
+
|
|
3086
|
+
/**
|
|
3087
|
+
* How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
|
|
3088
|
+
*/
|
|
3089
|
+
operator?: 'and' | 'or';
|
|
3090
|
+
}
|
|
3091
|
+
}
|
|
2984
3092
|
}
|
|
2985
3093
|
|
|
2986
3094
|
/**
|
|
@@ -3104,18 +3212,32 @@ export interface JobRetrieveParams {
|
|
|
3104
3212
|
|
|
3105
3213
|
export interface JobListParams extends JobsCursorParams {
|
|
3106
3214
|
/**
|
|
3107
|
-
* The authorId of the jobs to return.
|
|
3215
|
+
* The authorId of the jobs to return. When set, only jobs from the last 30 days
|
|
3216
|
+
* are returned (by creation date, or by update date when "status", "type", "types"
|
|
3217
|
+
* or "workflowId" is set) unless "createdAfter" or "updatedAfter" is set.
|
|
3218
|
+
* Optional.
|
|
3108
3219
|
*/
|
|
3109
3220
|
authorId?: string;
|
|
3110
3221
|
|
|
3111
3222
|
/**
|
|
3112
|
-
*
|
|
3223
|
+
* Only return the jobs created after this date (ISO 8601). Only allowed without
|
|
3224
|
+
* "status", "type", "types" and "workflowId", which sort jobs by update date: use
|
|
3225
|
+
* "updatedAfter" with them. Overrides the 30-day window applied with "authorId" or
|
|
3226
|
+
* "hideResults=false". Optional.
|
|
3227
|
+
*/
|
|
3228
|
+
createdAfter?: string;
|
|
3229
|
+
|
|
3230
|
+
/**
|
|
3231
|
+
* If false, jobs submitted with "hideResults": true are not returned. When false,
|
|
3232
|
+
* only jobs from the last 30 days are returned (by creation date, or by update
|
|
3233
|
+
* date when "status", "type", "types" or "workflowId" is set) unless
|
|
3234
|
+
* "createdAfter" or "updatedAfter" is set. Optional.
|
|
3113
3235
|
*/
|
|
3114
3236
|
hideResults?: boolean;
|
|
3115
3237
|
|
|
3116
3238
|
/**
|
|
3117
|
-
* The number of items to return in the response. The default value is
|
|
3118
|
-
* value is
|
|
3239
|
+
* The number of items to return in the response. The default value is 50, maximum
|
|
3240
|
+
* value is 100, minimum value is 1
|
|
3119
3241
|
*/
|
|
3120
3242
|
pageSize?: number;
|
|
3121
3243
|
|
|
@@ -3230,6 +3352,14 @@ export interface JobListParams extends JobsCursorParams {
|
|
|
3230
3352
|
| 'workflow'
|
|
3231
3353
|
>;
|
|
3232
3354
|
|
|
3355
|
+
/**
|
|
3356
|
+
* Only return the jobs updated after this date (ISO 8601). Only allowed with
|
|
3357
|
+
* "status", "type", "types" or "workflowId": without them jobs are sorted by
|
|
3358
|
+
* creation date, use "createdAfter". Overrides the 30-day window applied with
|
|
3359
|
+
* "authorId" or "hideResults=false". Optional.
|
|
3360
|
+
*/
|
|
3361
|
+
updatedAfter?: string;
|
|
3362
|
+
|
|
3233
3363
|
/**
|
|
3234
3364
|
* Only return the jobs produced by the given workflow. Optional.
|
|
3235
3365
|
*/
|