@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/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
|
/**
|
|
@@ -39,11 +47,11 @@ export class Jobs extends APIResource {
|
|
|
39
47
|
params: JobTriggerActionParams,
|
|
40
48
|
options?: RequestOptions,
|
|
41
49
|
): APIPromise<JobTriggerActionResponse> {
|
|
42
|
-
const {
|
|
50
|
+
const { projectId, ...body } = params;
|
|
43
51
|
return this._client.post(path`/jobs/${jobID}/action`, {
|
|
44
|
-
query: { originalAssets, projectId },
|
|
45
52
|
body,
|
|
46
53
|
...options,
|
|
54
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
47
55
|
});
|
|
48
56
|
}
|
|
49
57
|
}
|
|
@@ -239,6 +247,7 @@ export namespace JobRetrieveResponse {
|
|
|
239
247
|
| 'remove-background'
|
|
240
248
|
| 'transform'
|
|
241
249
|
| 'user-approval'
|
|
250
|
+
| 'user-selection'
|
|
242
251
|
| 'workflow';
|
|
243
252
|
|
|
244
253
|
/**
|
|
@@ -269,14 +278,15 @@ export namespace JobRetrieveResponse {
|
|
|
269
278
|
includeOutputsInWorkflowJob?: true;
|
|
270
279
|
|
|
271
280
|
/**
|
|
272
|
-
* 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.
|
|
273
284
|
*/
|
|
274
285
|
inputs?: Array<Flow.Input>;
|
|
275
286
|
|
|
276
287
|
/**
|
|
277
|
-
* Statically-configured items for a List node
|
|
278
|
-
*
|
|
279
|
-
* 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.
|
|
280
290
|
*/
|
|
281
291
|
items?: Array<string>;
|
|
282
292
|
|
|
@@ -425,7 +435,9 @@ export namespace JobRetrieveResponse {
|
|
|
425
435
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
426
436
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
427
437
|
* not able to create the asset on the flight on API side with dataurl without
|
|
428
|
-
* data:kind, prefix
|
|
438
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
439
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
440
|
+
* generation time.
|
|
429
441
|
*/
|
|
430
442
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
431
443
|
|
|
@@ -453,8 +465,9 @@ export namespace JobRetrieveResponse {
|
|
|
453
465
|
maxDuration?: number;
|
|
454
466
|
|
|
455
467
|
/**
|
|
456
|
-
* The maximum allowed length for \`string\`
|
|
457
|
-
* \`string_array
|
|
468
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
469
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
470
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
458
471
|
*/
|
|
459
472
|
maxLength?: number;
|
|
460
473
|
|
|
@@ -471,8 +484,9 @@ export namespace JobRetrieveResponse {
|
|
|
471
484
|
min?: number;
|
|
472
485
|
|
|
473
486
|
/**
|
|
474
|
-
* The minimum allowed length for string
|
|
475
|
-
* \`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.
|
|
476
490
|
*/
|
|
477
491
|
minLength?: number;
|
|
478
492
|
|
|
@@ -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
|
*/
|
|
@@ -652,7 +665,9 @@ export namespace JobRetrieveResponse {
|
|
|
652
665
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
653
666
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
654
667
|
* not able to create the asset on the flight on API side with dataurl without
|
|
655
|
-
* data:kind, prefix
|
|
668
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
669
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
670
|
+
* generation time.
|
|
656
671
|
*/
|
|
657
672
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
658
673
|
|
|
@@ -680,8 +695,9 @@ export namespace JobRetrieveResponse {
|
|
|
680
695
|
maxDuration?: number;
|
|
681
696
|
|
|
682
697
|
/**
|
|
683
|
-
* The maximum allowed length for \`string\`
|
|
684
|
-
* \`string_array
|
|
698
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
699
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
700
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
685
701
|
*/
|
|
686
702
|
maxLength?: number;
|
|
687
703
|
|
|
@@ -698,8 +714,9 @@ export namespace JobRetrieveResponse {
|
|
|
698
714
|
min?: number;
|
|
699
715
|
|
|
700
716
|
/**
|
|
701
|
-
* The minimum allowed length for string
|
|
702
|
-
* \`string_array
|
|
717
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
718
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
719
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
703
720
|
*/
|
|
704
721
|
minLength?: number;
|
|
705
722
|
|
|
@@ -779,8 +796,7 @@ export namespace JobRetrieveResponse {
|
|
|
779
796
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
780
797
|
* defined
|
|
781
798
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
782
|
-
* - \`
|
|
783
|
-
* value
|
|
799
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
784
800
|
*
|
|
785
801
|
* By default, the input is not required.
|
|
786
802
|
*/
|
|
@@ -837,8 +853,7 @@ export namespace JobRetrieveResponse {
|
|
|
837
853
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
838
854
|
* defined
|
|
839
855
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
840
|
-
* - \`
|
|
841
|
-
* value
|
|
856
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
842
857
|
*
|
|
843
858
|
* By default, the input is not required.
|
|
844
859
|
*/
|
|
@@ -849,12 +864,9 @@ export namespace JobRetrieveResponse {
|
|
|
849
864
|
always?: boolean;
|
|
850
865
|
|
|
851
866
|
/**
|
|
852
|
-
* Makes this input required when
|
|
853
|
-
*
|
|
854
|
-
* - Key: name of the input to check
|
|
855
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
867
|
+
* Makes this input required when other inputs have one of the listed values
|
|
856
868
|
*/
|
|
857
|
-
|
|
869
|
+
conditional?: Required.Conditional;
|
|
858
870
|
|
|
859
871
|
/**
|
|
860
872
|
* Makes this input required when another input is defined:
|
|
@@ -872,6 +884,26 @@ export namespace JobRetrieveResponse {
|
|
|
872
884
|
*/
|
|
873
885
|
ifNotDefined?: unknown;
|
|
874
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
|
+
}
|
|
875
907
|
}
|
|
876
908
|
|
|
877
909
|
/**
|
|
@@ -912,8 +944,7 @@ export namespace JobRetrieveResponse {
|
|
|
912
944
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
913
945
|
* defined
|
|
914
946
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
915
|
-
* - \`
|
|
916
|
-
* value
|
|
947
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
917
948
|
*
|
|
918
949
|
* By default, the input is not required.
|
|
919
950
|
*/
|
|
@@ -924,12 +955,9 @@ export namespace JobRetrieveResponse {
|
|
|
924
955
|
always?: boolean;
|
|
925
956
|
|
|
926
957
|
/**
|
|
927
|
-
* Makes this input required when
|
|
928
|
-
*
|
|
929
|
-
* - Key: name of the input to check
|
|
930
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
958
|
+
* Makes this input required when other inputs have one of the listed values
|
|
931
959
|
*/
|
|
932
|
-
|
|
960
|
+
conditional?: Required.Conditional;
|
|
933
961
|
|
|
934
962
|
/**
|
|
935
963
|
* Makes this input required when another input is defined:
|
|
@@ -947,6 +975,26 @@ export namespace JobRetrieveResponse {
|
|
|
947
975
|
*/
|
|
948
976
|
ifNotDefined?: unknown;
|
|
949
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
|
+
}
|
|
950
998
|
}
|
|
951
999
|
|
|
952
1000
|
/**
|
|
@@ -1004,7 +1052,7 @@ export namespace JobRetrieveResponse {
|
|
|
1004
1052
|
|
|
1005
1053
|
/**
|
|
1006
1054
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1007
|
-
* top of the generation itself, such as `
|
|
1055
|
+
* top of the generation itself, such as `quality-gate`.
|
|
1008
1056
|
*
|
|
1009
1057
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1010
1058
|
* values here.
|
|
@@ -1034,7 +1082,7 @@ export namespace JobRetrieveResponse {
|
|
|
1034
1082
|
export namespace Billing {
|
|
1035
1083
|
/**
|
|
1036
1084
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
1037
|
-
* top of the generation itself, such as `
|
|
1085
|
+
* top of the generation itself, such as `quality-gate`.
|
|
1038
1086
|
*
|
|
1039
1087
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
1040
1088
|
* values here.
|
|
@@ -1054,7 +1102,7 @@ export namespace JobRetrieveResponse {
|
|
|
1054
1102
|
export interface CuCostDetails {
|
|
1055
1103
|
'ip-detection'?: number;
|
|
1056
1104
|
|
|
1057
|
-
'
|
|
1105
|
+
'quality-gate'?: number;
|
|
1058
1106
|
}
|
|
1059
1107
|
}
|
|
1060
1108
|
}
|
|
@@ -1244,6 +1292,7 @@ export namespace JobListResponse {
|
|
|
1244
1292
|
| 'remove-background'
|
|
1245
1293
|
| 'transform'
|
|
1246
1294
|
| 'user-approval'
|
|
1295
|
+
| 'user-selection'
|
|
1247
1296
|
| 'workflow';
|
|
1248
1297
|
|
|
1249
1298
|
/**
|
|
@@ -1274,14 +1323,15 @@ export namespace JobListResponse {
|
|
|
1274
1323
|
includeOutputsInWorkflowJob?: true;
|
|
1275
1324
|
|
|
1276
1325
|
/**
|
|
1277
|
-
* 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.
|
|
1278
1329
|
*/
|
|
1279
1330
|
inputs?: Array<Flow.Input>;
|
|
1280
1331
|
|
|
1281
1332
|
/**
|
|
1282
|
-
* Statically-configured items for a List node
|
|
1283
|
-
*
|
|
1284
|
-
* 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.
|
|
1285
1335
|
*/
|
|
1286
1336
|
items?: Array<string>;
|
|
1287
1337
|
|
|
@@ -1430,7 +1480,9 @@ export namespace JobListResponse {
|
|
|
1430
1480
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1431
1481
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1432
1482
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1433
|
-
* data:kind, prefix
|
|
1483
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1484
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1485
|
+
* generation time.
|
|
1434
1486
|
*/
|
|
1435
1487
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1436
1488
|
|
|
@@ -1458,8 +1510,9 @@ export namespace JobListResponse {
|
|
|
1458
1510
|
maxDuration?: number;
|
|
1459
1511
|
|
|
1460
1512
|
/**
|
|
1461
|
-
* The maximum allowed length for \`string\`
|
|
1462
|
-
* \`string_array
|
|
1513
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1514
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1515
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1463
1516
|
*/
|
|
1464
1517
|
maxLength?: number;
|
|
1465
1518
|
|
|
@@ -1476,8 +1529,9 @@ export namespace JobListResponse {
|
|
|
1476
1529
|
min?: number;
|
|
1477
1530
|
|
|
1478
1531
|
/**
|
|
1479
|
-
* The minimum allowed length for string
|
|
1480
|
-
* \`string_array
|
|
1532
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1533
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1534
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1481
1535
|
*/
|
|
1482
1536
|
minLength?: number;
|
|
1483
1537
|
|
|
@@ -1557,8 +1611,7 @@ export namespace JobListResponse {
|
|
|
1557
1611
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1558
1612
|
* defined
|
|
1559
1613
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1560
|
-
* - \`
|
|
1561
|
-
* value
|
|
1614
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1562
1615
|
*
|
|
1563
1616
|
* By default, the input is not required.
|
|
1564
1617
|
*/
|
|
@@ -1657,7 +1710,9 @@ export namespace JobListResponse {
|
|
|
1657
1710
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
1658
1711
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
1659
1712
|
* not able to create the asset on the flight on API side with dataurl without
|
|
1660
|
-
* data:kind, prefix
|
|
1713
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
1714
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
1715
|
+
* generation time.
|
|
1661
1716
|
*/
|
|
1662
1717
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
1663
1718
|
|
|
@@ -1685,8 +1740,9 @@ export namespace JobListResponse {
|
|
|
1685
1740
|
maxDuration?: number;
|
|
1686
1741
|
|
|
1687
1742
|
/**
|
|
1688
|
-
* The maximum allowed length for \`string\`
|
|
1689
|
-
* \`string_array
|
|
1743
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1744
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1745
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1690
1746
|
*/
|
|
1691
1747
|
maxLength?: number;
|
|
1692
1748
|
|
|
@@ -1703,8 +1759,9 @@ export namespace JobListResponse {
|
|
|
1703
1759
|
min?: number;
|
|
1704
1760
|
|
|
1705
1761
|
/**
|
|
1706
|
-
* The minimum allowed length for string
|
|
1707
|
-
* \`string_array
|
|
1762
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
1763
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
1764
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
1708
1765
|
*/
|
|
1709
1766
|
minLength?: number;
|
|
1710
1767
|
|
|
@@ -1784,8 +1841,7 @@ export namespace JobListResponse {
|
|
|
1784
1841
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1785
1842
|
* defined
|
|
1786
1843
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1787
|
-
* - \`
|
|
1788
|
-
* value
|
|
1844
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1789
1845
|
*
|
|
1790
1846
|
* By default, the input is not required.
|
|
1791
1847
|
*/
|
|
@@ -1842,8 +1898,7 @@ export namespace JobListResponse {
|
|
|
1842
1898
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1843
1899
|
* defined
|
|
1844
1900
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1845
|
-
* - \`
|
|
1846
|
-
* value
|
|
1901
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1847
1902
|
*
|
|
1848
1903
|
* By default, the input is not required.
|
|
1849
1904
|
*/
|
|
@@ -1854,12 +1909,9 @@ export namespace JobListResponse {
|
|
|
1854
1909
|
always?: boolean;
|
|
1855
1910
|
|
|
1856
1911
|
/**
|
|
1857
|
-
* Makes this input required when
|
|
1858
|
-
*
|
|
1859
|
-
* - Key: name of the input to check
|
|
1860
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
1912
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1861
1913
|
*/
|
|
1862
|
-
|
|
1914
|
+
conditional?: Required.Conditional;
|
|
1863
1915
|
|
|
1864
1916
|
/**
|
|
1865
1917
|
* Makes this input required when another input is defined:
|
|
@@ -1877,6 +1929,26 @@ export namespace JobListResponse {
|
|
|
1877
1929
|
*/
|
|
1878
1930
|
ifNotDefined?: unknown;
|
|
1879
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
|
+
}
|
|
1880
1952
|
}
|
|
1881
1953
|
|
|
1882
1954
|
/**
|
|
@@ -1917,8 +1989,7 @@ export namespace JobListResponse {
|
|
|
1917
1989
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
1918
1990
|
* defined
|
|
1919
1991
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
1920
|
-
* - \`
|
|
1921
|
-
* value
|
|
1992
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
1922
1993
|
*
|
|
1923
1994
|
* By default, the input is not required.
|
|
1924
1995
|
*/
|
|
@@ -1929,12 +2000,9 @@ export namespace JobListResponse {
|
|
|
1929
2000
|
always?: boolean;
|
|
1930
2001
|
|
|
1931
2002
|
/**
|
|
1932
|
-
* Makes this input required when
|
|
1933
|
-
*
|
|
1934
|
-
* - Key: name of the input to check
|
|
1935
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2003
|
+
* Makes this input required when other inputs have one of the listed values
|
|
1936
2004
|
*/
|
|
1937
|
-
|
|
2005
|
+
conditional?: Required.Conditional;
|
|
1938
2006
|
|
|
1939
2007
|
/**
|
|
1940
2008
|
* Makes this input required when another input is defined:
|
|
@@ -1952,6 +2020,26 @@ export namespace JobListResponse {
|
|
|
1952
2020
|
*/
|
|
1953
2021
|
ifNotDefined?: unknown;
|
|
1954
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
|
+
}
|
|
1955
2043
|
}
|
|
1956
2044
|
|
|
1957
2045
|
/**
|
|
@@ -2009,7 +2097,7 @@ export namespace JobListResponse {
|
|
|
2009
2097
|
|
|
2010
2098
|
/**
|
|
2011
2099
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2012
|
-
* top of the generation itself, such as `
|
|
2100
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2013
2101
|
*
|
|
2014
2102
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2015
2103
|
* values here.
|
|
@@ -2039,7 +2127,7 @@ export namespace JobListResponse {
|
|
|
2039
2127
|
export namespace Billing {
|
|
2040
2128
|
/**
|
|
2041
2129
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
2042
|
-
* top of the generation itself, such as `
|
|
2130
|
+
* top of the generation itself, such as `quality-gate`.
|
|
2043
2131
|
*
|
|
2044
2132
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
2045
2133
|
* values here.
|
|
@@ -2059,7 +2147,7 @@ export namespace JobListResponse {
|
|
|
2059
2147
|
export interface CuCostDetails {
|
|
2060
2148
|
'ip-detection'?: number;
|
|
2061
2149
|
|
|
2062
|
-
'
|
|
2150
|
+
'quality-gate'?: number;
|
|
2063
2151
|
}
|
|
2064
2152
|
}
|
|
2065
2153
|
}
|
|
@@ -2253,6 +2341,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2253
2341
|
| 'remove-background'
|
|
2254
2342
|
| 'transform'
|
|
2255
2343
|
| 'user-approval'
|
|
2344
|
+
| 'user-selection'
|
|
2256
2345
|
| 'workflow';
|
|
2257
2346
|
|
|
2258
2347
|
/**
|
|
@@ -2283,14 +2372,15 @@ export namespace JobTriggerActionResponse {
|
|
|
2283
2372
|
includeOutputsInWorkflowJob?: true;
|
|
2284
2373
|
|
|
2285
2374
|
/**
|
|
2286
|
-
* 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.
|
|
2287
2378
|
*/
|
|
2288
2379
|
inputs?: Array<Flow.Input>;
|
|
2289
2380
|
|
|
2290
2381
|
/**
|
|
2291
|
-
* Statically-configured items for a List node
|
|
2292
|
-
*
|
|
2293
|
-
* 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.
|
|
2294
2384
|
*/
|
|
2295
2385
|
items?: Array<string>;
|
|
2296
2386
|
|
|
@@ -2439,7 +2529,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2439
2529
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2440
2530
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2441
2531
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2442
|
-
* data:kind, prefix
|
|
2532
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2533
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2534
|
+
* generation time.
|
|
2443
2535
|
*/
|
|
2444
2536
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2445
2537
|
|
|
@@ -2467,8 +2559,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2467
2559
|
maxDuration?: number;
|
|
2468
2560
|
|
|
2469
2561
|
/**
|
|
2470
|
-
* The maximum allowed length for \`string\`
|
|
2471
|
-
* \`string_array
|
|
2562
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2563
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2564
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2472
2565
|
*/
|
|
2473
2566
|
maxLength?: number;
|
|
2474
2567
|
|
|
@@ -2485,8 +2578,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2485
2578
|
min?: number;
|
|
2486
2579
|
|
|
2487
2580
|
/**
|
|
2488
|
-
* The minimum allowed length for string
|
|
2489
|
-
* \`string_array
|
|
2581
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2582
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2583
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2490
2584
|
*/
|
|
2491
2585
|
minLength?: number;
|
|
2492
2586
|
|
|
@@ -2566,8 +2660,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2566
2660
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2567
2661
|
* defined
|
|
2568
2662
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2569
|
-
* - \`
|
|
2570
|
-
* value
|
|
2663
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2571
2664
|
*
|
|
2572
2665
|
* By default, the input is not required.
|
|
2573
2666
|
*/
|
|
@@ -2666,7 +2759,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2666
2759
|
* The asset kind of the input. Only taken into account for \`file\` and
|
|
2667
2760
|
* \`file_array\` input types. If model provides multiple kinds, the input will be
|
|
2668
2761
|
* not able to create the asset on the flight on API side with dataurl without
|
|
2669
|
-
* data:kind, prefix
|
|
2762
|
+
* data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
|
|
2763
|
+
* a model does not declare one, \`image\` is returned, which is the kind used at
|
|
2764
|
+
* generation time.
|
|
2670
2765
|
*/
|
|
2671
2766
|
kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
|
|
2672
2767
|
|
|
@@ -2694,8 +2789,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2694
2789
|
maxDuration?: number;
|
|
2695
2790
|
|
|
2696
2791
|
/**
|
|
2697
|
-
* The maximum allowed length for \`string\`
|
|
2698
|
-
* \`string_array
|
|
2792
|
+
* The maximum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2793
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2794
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2699
2795
|
*/
|
|
2700
2796
|
maxLength?: number;
|
|
2701
2797
|
|
|
@@ -2712,8 +2808,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2712
2808
|
min?: number;
|
|
2713
2809
|
|
|
2714
2810
|
/**
|
|
2715
|
-
* The minimum allowed length for string
|
|
2716
|
-
* \`string_array
|
|
2811
|
+
* The minimum allowed length for \`string\` and \`model\` inputs, in characters.
|
|
2812
|
+
* For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
|
|
2813
|
+
* ITEMS instead — the length of each item is not constrained.
|
|
2717
2814
|
*/
|
|
2718
2815
|
minLength?: number;
|
|
2719
2816
|
|
|
@@ -2793,8 +2890,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2793
2890
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2794
2891
|
* defined
|
|
2795
2892
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2796
|
-
* - \`
|
|
2797
|
-
* value
|
|
2893
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2798
2894
|
*
|
|
2799
2895
|
* By default, the input is not required.
|
|
2800
2896
|
*/
|
|
@@ -2851,8 +2947,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2851
2947
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2852
2948
|
* defined
|
|
2853
2949
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2854
|
-
* - \`
|
|
2855
|
-
* value
|
|
2950
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2856
2951
|
*
|
|
2857
2952
|
* By default, the input is not required.
|
|
2858
2953
|
*/
|
|
@@ -2863,12 +2958,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2863
2958
|
always?: boolean;
|
|
2864
2959
|
|
|
2865
2960
|
/**
|
|
2866
|
-
* Makes this input required when
|
|
2867
|
-
*
|
|
2868
|
-
* - Key: name of the input to check
|
|
2869
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
2961
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2870
2962
|
*/
|
|
2871
|
-
|
|
2963
|
+
conditional?: Required.Conditional;
|
|
2872
2964
|
|
|
2873
2965
|
/**
|
|
2874
2966
|
* Makes this input required when another input is defined:
|
|
@@ -2886,6 +2978,26 @@ export namespace JobTriggerActionResponse {
|
|
|
2886
2978
|
*/
|
|
2887
2979
|
ifNotDefined?: unknown;
|
|
2888
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
|
+
}
|
|
2889
3001
|
}
|
|
2890
3002
|
|
|
2891
3003
|
/**
|
|
@@ -2926,8 +3038,7 @@ export namespace JobTriggerActionResponse {
|
|
|
2926
3038
|
* - \`ifNotDefined\`: Input is required when another specified input is not
|
|
2927
3039
|
* defined
|
|
2928
3040
|
* - \`ifDefined\`: Input is required when another specified input is defined
|
|
2929
|
-
* - \`
|
|
2930
|
-
* value
|
|
3041
|
+
* - \`conditional\`: Input is required when other inputs have specific values
|
|
2931
3042
|
*
|
|
2932
3043
|
* By default, the input is not required.
|
|
2933
3044
|
*/
|
|
@@ -2938,12 +3049,9 @@ export namespace JobTriggerActionResponse {
|
|
|
2938
3049
|
always?: boolean;
|
|
2939
3050
|
|
|
2940
3051
|
/**
|
|
2941
|
-
* Makes this input required when
|
|
2942
|
-
*
|
|
2943
|
-
* - Key: name of the input to check
|
|
2944
|
-
* - Value: operation and allowed values that trigger the requirement
|
|
3052
|
+
* Makes this input required when other inputs have one of the listed values
|
|
2945
3053
|
*/
|
|
2946
|
-
|
|
3054
|
+
conditional?: Required.Conditional;
|
|
2947
3055
|
|
|
2948
3056
|
/**
|
|
2949
3057
|
* Makes this input required when another input is defined:
|
|
@@ -2961,6 +3069,26 @@ export namespace JobTriggerActionResponse {
|
|
|
2961
3069
|
*/
|
|
2962
3070
|
ifNotDefined?: unknown;
|
|
2963
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
|
+
}
|
|
2964
3092
|
}
|
|
2965
3093
|
|
|
2966
3094
|
/**
|
|
@@ -3018,7 +3146,7 @@ export namespace JobTriggerActionResponse {
|
|
|
3018
3146
|
|
|
3019
3147
|
/**
|
|
3020
3148
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
3021
|
-
* top of the generation itself, such as `
|
|
3149
|
+
* top of the generation itself, such as `quality-gate`.
|
|
3022
3150
|
*
|
|
3023
3151
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
3024
3152
|
* values here.
|
|
@@ -3048,7 +3176,7 @@ export namespace JobTriggerActionResponse {
|
|
|
3048
3176
|
export namespace Billing {
|
|
3049
3177
|
/**
|
|
3050
3178
|
* Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
|
|
3051
|
-
* top of the generation itself, such as `
|
|
3179
|
+
* top of the generation itself, such as `quality-gate`.
|
|
3052
3180
|
*
|
|
3053
3181
|
* `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
|
|
3054
3182
|
* values here.
|
|
@@ -3068,34 +3196,56 @@ export namespace JobTriggerActionResponse {
|
|
|
3068
3196
|
export interface CuCostDetails {
|
|
3069
3197
|
'ip-detection'?: number;
|
|
3070
3198
|
|
|
3071
|
-
'
|
|
3199
|
+
'quality-gate'?: number;
|
|
3072
3200
|
}
|
|
3073
3201
|
}
|
|
3074
3202
|
}
|
|
3075
3203
|
}
|
|
3076
3204
|
|
|
3077
3205
|
export interface JobRetrieveParams {
|
|
3078
|
-
|
|
3206
|
+
/**
|
|
3207
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
3208
|
+
* or to set the owner of the resource(s)
|
|
3209
|
+
*/
|
|
3210
|
+
projectId?: string;
|
|
3079
3211
|
}
|
|
3080
3212
|
|
|
3081
3213
|
export interface JobListParams extends JobsCursorParams {
|
|
3082
3214
|
/**
|
|
3083
|
-
* 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.
|
|
3084
3219
|
*/
|
|
3085
3220
|
authorId?: string;
|
|
3086
3221
|
|
|
3087
3222
|
/**
|
|
3088
|
-
*
|
|
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.
|
|
3089
3235
|
*/
|
|
3090
3236
|
hideResults?: boolean;
|
|
3091
3237
|
|
|
3092
3238
|
/**
|
|
3093
|
-
* The number of items to return in the response. The default value is
|
|
3094
|
-
* 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
|
|
3095
3241
|
*/
|
|
3096
3242
|
pageSize?: number;
|
|
3097
3243
|
|
|
3098
|
-
|
|
3244
|
+
/**
|
|
3245
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
3246
|
+
* or to set the owner of the resource(s)
|
|
3247
|
+
*/
|
|
3248
|
+
projectId?: string;
|
|
3099
3249
|
|
|
3100
3250
|
/**
|
|
3101
3251
|
* The status of the jobs to return. Optional.
|
|
@@ -3202,15 +3352,21 @@ export interface JobListParams extends JobsCursorParams {
|
|
|
3202
3352
|
| 'workflow'
|
|
3203
3353
|
>;
|
|
3204
3354
|
|
|
3205
|
-
|
|
3206
|
-
|
|
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;
|
|
3207
3362
|
|
|
3208
|
-
export interface JobTriggerActionParams {
|
|
3209
3363
|
/**
|
|
3210
|
-
*
|
|
3364
|
+
* Only return the jobs produced by the given workflow. Optional.
|
|
3211
3365
|
*/
|
|
3212
|
-
|
|
3366
|
+
workflowId?: string;
|
|
3367
|
+
}
|
|
3213
3368
|
|
|
3369
|
+
export interface JobTriggerActionParams {
|
|
3214
3370
|
/**
|
|
3215
3371
|
* Query param: The projectId used for ownership resource management. Either to
|
|
3216
3372
|
* assert ownership or to set the owner of the resource(s)
|