@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
|
@@ -0,0 +1,788 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
4
|
+
export declare class Members extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Add a member to the project
|
|
7
|
+
*/
|
|
8
|
+
create(projectID: string, body: MemberCreateParams, options?: RequestOptions): APIPromise<MemberCreateResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Change a member role
|
|
11
|
+
*/
|
|
12
|
+
update(memberID: string, params: MemberUpdateParams, options?: RequestOptions): APIPromise<MemberUpdateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Remove a member from the project
|
|
15
|
+
*/
|
|
16
|
+
delete(memberID: string, params: MemberDeleteParams, options?: RequestOptions): APIPromise<MemberDeleteResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface MemberCreateResponse {
|
|
19
|
+
project: MemberCreateResponse.Project;
|
|
20
|
+
}
|
|
21
|
+
export declare namespace MemberCreateResponse {
|
|
22
|
+
interface Project {
|
|
23
|
+
/**
|
|
24
|
+
* The project ID (example: "project_eyVcnFJcR92BxBkz7N6g5w")
|
|
25
|
+
*/
|
|
26
|
+
id: string;
|
|
27
|
+
createdAt: string;
|
|
28
|
+
/**
|
|
29
|
+
* The keys of the project (get from the ProjectRoles table)
|
|
30
|
+
*/
|
|
31
|
+
keys: Array<Project.Key>;
|
|
32
|
+
/**
|
|
33
|
+
* The project name (example: "Default Project")
|
|
34
|
+
*/
|
|
35
|
+
name: string;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the project is privacyMode In a privacyMode project, users can only see
|
|
38
|
+
* their own generated assets (except admins)
|
|
39
|
+
*/
|
|
40
|
+
privacyMode: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* The team ID (example: "team_eyVcnFJcR92BxBkz7N6g5w")
|
|
43
|
+
*/
|
|
44
|
+
teamId: string;
|
|
45
|
+
updatedAt: string;
|
|
46
|
+
/**
|
|
47
|
+
* The users of the project (get from the ProjectRoles table)
|
|
48
|
+
*/
|
|
49
|
+
users: Array<Project.User>;
|
|
50
|
+
/**
|
|
51
|
+
* The project's avatar
|
|
52
|
+
*/
|
|
53
|
+
avatar?: Project.Avatar;
|
|
54
|
+
/**
|
|
55
|
+
* Consumption (CU) used by this project over the current billing period.
|
|
56
|
+
*/
|
|
57
|
+
consumption?: number;
|
|
58
|
+
/**
|
|
59
|
+
* High-level markdown description of the project Only returned on single project
|
|
60
|
+
* GET, not on list
|
|
61
|
+
*/
|
|
62
|
+
description?: string;
|
|
63
|
+
/**
|
|
64
|
+
* ISO string date when the description was last updated Only returned on single
|
|
65
|
+
* project GET, not on list
|
|
66
|
+
*/
|
|
67
|
+
descriptionDate?: string;
|
|
68
|
+
/**
|
|
69
|
+
* When true, IP detection is switched off for this project even if the team has an
|
|
70
|
+
* active posture. Absent means the team posture applies. The posture itself
|
|
71
|
+
* (disabled / active-fail-open / active-fail-closed) is a team-level setting, see
|
|
72
|
+
* the team's ipDetectionEnforcement.
|
|
73
|
+
*/
|
|
74
|
+
disableIpDetection?: boolean;
|
|
75
|
+
/**
|
|
76
|
+
* The project's consumption (CU) cap for the period. Absent when uncapped.
|
|
77
|
+
*/
|
|
78
|
+
maxConsumption?: number;
|
|
79
|
+
/**
|
|
80
|
+
* Whether Quality Gate auto-detection runs on generation for this project.
|
|
81
|
+
*/
|
|
82
|
+
qualityGateAutoDetect?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
85
|
+
* the projects list.
|
|
86
|
+
*/
|
|
87
|
+
settings?: Project.Settings;
|
|
88
|
+
}
|
|
89
|
+
namespace Project {
|
|
90
|
+
interface Key {
|
|
91
|
+
/**
|
|
92
|
+
* The key's member id (its API user id, `apiu_...`), taken by the member and usage
|
|
93
|
+
* routes (example: "apiu_eyVcnFJcR92BxBkz7N6g5w")
|
|
94
|
+
*/
|
|
95
|
+
id: string;
|
|
96
|
+
/**
|
|
97
|
+
* The API key id (`api_...`), taken by the api-keys routes (example:
|
|
98
|
+
* "api_eyVcnFJcR92BxBkz7N6g5w")
|
|
99
|
+
*/
|
|
100
|
+
apiKeyId: string;
|
|
101
|
+
/**
|
|
102
|
+
* The status of the API key
|
|
103
|
+
*/
|
|
104
|
+
apiKeyStatus: 'active' | 'inactive';
|
|
105
|
+
/**
|
|
106
|
+
* The API key creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
107
|
+
*/
|
|
108
|
+
createdAt: string;
|
|
109
|
+
/**
|
|
110
|
+
* The API key name (example: "eurv-scenario")
|
|
111
|
+
*/
|
|
112
|
+
name: string;
|
|
113
|
+
/**
|
|
114
|
+
* A project role value. Accepted values are:
|
|
115
|
+
*
|
|
116
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
117
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
118
|
+
* `"assets.write;workflows.run"`.
|
|
119
|
+
*
|
|
120
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
121
|
+
*/
|
|
122
|
+
role: string;
|
|
123
|
+
/**
|
|
124
|
+
* The scope of the API key: 'project' for project-scoped keys, 'team' for
|
|
125
|
+
* team-scoped keys
|
|
126
|
+
*/
|
|
127
|
+
scope: 'project' | 'team';
|
|
128
|
+
/**
|
|
129
|
+
* The API key last update date as an ISO string (example:
|
|
130
|
+
* "2023-02-03T11:19:41.579Z")
|
|
131
|
+
*/
|
|
132
|
+
updatedAt: string;
|
|
133
|
+
/**
|
|
134
|
+
* The member who created the key: a human, or the member id (`apiu_...`) of the
|
|
135
|
+
* team API key that created it.
|
|
136
|
+
*/
|
|
137
|
+
authorId?: string;
|
|
138
|
+
/**
|
|
139
|
+
* Consumption (CU) used by this key over the current billing period.
|
|
140
|
+
*/
|
|
141
|
+
consumption?: number;
|
|
142
|
+
/**
|
|
143
|
+
* The date the API key was last used to authenticate a request, as an ISO string
|
|
144
|
+
* (example: "2023-02-03T11:19:41.579Z"). Absent if the key has never been used.
|
|
145
|
+
*/
|
|
146
|
+
lastUsedAt?: string;
|
|
147
|
+
/**
|
|
148
|
+
* The key's effective consumption (CU) cap for the period (per-key override, else
|
|
149
|
+
* the team-wide default). Absent when the key is uncapped.
|
|
150
|
+
*/
|
|
151
|
+
maxConsumption?: number;
|
|
152
|
+
/**
|
|
153
|
+
* For a PROJECT key: the project it was created on (the team id on some legacy
|
|
154
|
+
* keys). Absent for team keys.
|
|
155
|
+
*/
|
|
156
|
+
ownerId?: string;
|
|
157
|
+
/**
|
|
158
|
+
* For a PROJECT key: the projects it has access to and its role on each. Empty
|
|
159
|
+
* when the key is currently not a member of any (live) project. Absent for team
|
|
160
|
+
* keys.
|
|
161
|
+
*/
|
|
162
|
+
projects?: Array<Key.Project>;
|
|
163
|
+
}
|
|
164
|
+
namespace Key {
|
|
165
|
+
/**
|
|
166
|
+
* A project a `project`-scoped API key has access to, with its role on that
|
|
167
|
+
* project. A key can be granted roles on several projects, potentially with
|
|
168
|
+
* different roles — one entry per project.
|
|
169
|
+
*/
|
|
170
|
+
interface Project {
|
|
171
|
+
/**
|
|
172
|
+
* The project the key has a role on
|
|
173
|
+
*/
|
|
174
|
+
projectId: string;
|
|
175
|
+
/**
|
|
176
|
+
* The key's role on this project: a built-in role (`admin`/`editor`/`reader`) or a
|
|
177
|
+
* custom `;`-separated scope list (example: `"asset.read;model.read"`).
|
|
178
|
+
*/
|
|
179
|
+
role: string;
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
interface User {
|
|
183
|
+
/**
|
|
184
|
+
* The user ID (example: "eyVcnFJcR92BxBkz7N6g5w")
|
|
185
|
+
*/
|
|
186
|
+
id: string;
|
|
187
|
+
/**
|
|
188
|
+
* The user creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
189
|
+
*/
|
|
190
|
+
createdAt: string;
|
|
191
|
+
/**
|
|
192
|
+
* The user email (example: "herve@scenario.com")
|
|
193
|
+
*/
|
|
194
|
+
email: string;
|
|
195
|
+
/**
|
|
196
|
+
* A project role value. Accepted values are:
|
|
197
|
+
*
|
|
198
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
199
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
200
|
+
* `"assets.write;workflows.run"`.
|
|
201
|
+
*
|
|
202
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
203
|
+
*/
|
|
204
|
+
role: string;
|
|
205
|
+
/**
|
|
206
|
+
* The user last update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
207
|
+
*/
|
|
208
|
+
updatedAt: string;
|
|
209
|
+
/**
|
|
210
|
+
* The user's avatar
|
|
211
|
+
*/
|
|
212
|
+
avatar?: User.Avatar;
|
|
213
|
+
/**
|
|
214
|
+
* Consumption (CU) used by this member over the current billing period.
|
|
215
|
+
*/
|
|
216
|
+
consumption?: number;
|
|
217
|
+
/**
|
|
218
|
+
* The member's effective consumption (CU) cap for the period (per-user override,
|
|
219
|
+
* else the team-wide default). Absent when the member is uncapped.
|
|
220
|
+
*/
|
|
221
|
+
maxConsumption?: number;
|
|
222
|
+
}
|
|
223
|
+
namespace User {
|
|
224
|
+
/**
|
|
225
|
+
* The user's avatar
|
|
226
|
+
*/
|
|
227
|
+
interface Avatar {
|
|
228
|
+
/**
|
|
229
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
230
|
+
*/
|
|
231
|
+
assetId?: string;
|
|
232
|
+
/**
|
|
233
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
234
|
+
*/
|
|
235
|
+
url?: string;
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
/**
|
|
239
|
+
* The project's avatar
|
|
240
|
+
*/
|
|
241
|
+
interface Avatar {
|
|
242
|
+
/**
|
|
243
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
244
|
+
*/
|
|
245
|
+
assetId?: string;
|
|
246
|
+
/**
|
|
247
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
248
|
+
*/
|
|
249
|
+
url?: string;
|
|
250
|
+
}
|
|
251
|
+
/**
|
|
252
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
253
|
+
* the projects list.
|
|
254
|
+
*/
|
|
255
|
+
interface Settings {
|
|
256
|
+
/**
|
|
257
|
+
* Published homepage layout.
|
|
258
|
+
*/
|
|
259
|
+
homepage?: {
|
|
260
|
+
[key: string]: unknown;
|
|
261
|
+
};
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
export interface MemberUpdateResponse {
|
|
266
|
+
project: MemberUpdateResponse.Project;
|
|
267
|
+
}
|
|
268
|
+
export declare namespace MemberUpdateResponse {
|
|
269
|
+
interface Project {
|
|
270
|
+
/**
|
|
271
|
+
* The project ID (example: "project_eyVcnFJcR92BxBkz7N6g5w")
|
|
272
|
+
*/
|
|
273
|
+
id: string;
|
|
274
|
+
createdAt: string;
|
|
275
|
+
/**
|
|
276
|
+
* The keys of the project (get from the ProjectRoles table)
|
|
277
|
+
*/
|
|
278
|
+
keys: Array<Project.Key>;
|
|
279
|
+
/**
|
|
280
|
+
* The project name (example: "Default Project")
|
|
281
|
+
*/
|
|
282
|
+
name: string;
|
|
283
|
+
/**
|
|
284
|
+
* Whether the project is privacyMode In a privacyMode project, users can only see
|
|
285
|
+
* their own generated assets (except admins)
|
|
286
|
+
*/
|
|
287
|
+
privacyMode: boolean;
|
|
288
|
+
/**
|
|
289
|
+
* The team ID (example: "team_eyVcnFJcR92BxBkz7N6g5w")
|
|
290
|
+
*/
|
|
291
|
+
teamId: string;
|
|
292
|
+
updatedAt: string;
|
|
293
|
+
/**
|
|
294
|
+
* The users of the project (get from the ProjectRoles table)
|
|
295
|
+
*/
|
|
296
|
+
users: Array<Project.User>;
|
|
297
|
+
/**
|
|
298
|
+
* The project's avatar
|
|
299
|
+
*/
|
|
300
|
+
avatar?: Project.Avatar;
|
|
301
|
+
/**
|
|
302
|
+
* Consumption (CU) used by this project over the current billing period.
|
|
303
|
+
*/
|
|
304
|
+
consumption?: number;
|
|
305
|
+
/**
|
|
306
|
+
* High-level markdown description of the project Only returned on single project
|
|
307
|
+
* GET, not on list
|
|
308
|
+
*/
|
|
309
|
+
description?: string;
|
|
310
|
+
/**
|
|
311
|
+
* ISO string date when the description was last updated Only returned on single
|
|
312
|
+
* project GET, not on list
|
|
313
|
+
*/
|
|
314
|
+
descriptionDate?: string;
|
|
315
|
+
/**
|
|
316
|
+
* When true, IP detection is switched off for this project even if the team has an
|
|
317
|
+
* active posture. Absent means the team posture applies. The posture itself
|
|
318
|
+
* (disabled / active-fail-open / active-fail-closed) is a team-level setting, see
|
|
319
|
+
* the team's ipDetectionEnforcement.
|
|
320
|
+
*/
|
|
321
|
+
disableIpDetection?: boolean;
|
|
322
|
+
/**
|
|
323
|
+
* The project's consumption (CU) cap for the period. Absent when uncapped.
|
|
324
|
+
*/
|
|
325
|
+
maxConsumption?: number;
|
|
326
|
+
/**
|
|
327
|
+
* Whether Quality Gate auto-detection runs on generation for this project.
|
|
328
|
+
*/
|
|
329
|
+
qualityGateAutoDetect?: boolean;
|
|
330
|
+
/**
|
|
331
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
332
|
+
* the projects list.
|
|
333
|
+
*/
|
|
334
|
+
settings?: Project.Settings;
|
|
335
|
+
}
|
|
336
|
+
namespace Project {
|
|
337
|
+
interface Key {
|
|
338
|
+
/**
|
|
339
|
+
* The key's member id (its API user id, `apiu_...`), taken by the member and usage
|
|
340
|
+
* routes (example: "apiu_eyVcnFJcR92BxBkz7N6g5w")
|
|
341
|
+
*/
|
|
342
|
+
id: string;
|
|
343
|
+
/**
|
|
344
|
+
* The API key id (`api_...`), taken by the api-keys routes (example:
|
|
345
|
+
* "api_eyVcnFJcR92BxBkz7N6g5w")
|
|
346
|
+
*/
|
|
347
|
+
apiKeyId: string;
|
|
348
|
+
/**
|
|
349
|
+
* The status of the API key
|
|
350
|
+
*/
|
|
351
|
+
apiKeyStatus: 'active' | 'inactive';
|
|
352
|
+
/**
|
|
353
|
+
* The API key creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
354
|
+
*/
|
|
355
|
+
createdAt: string;
|
|
356
|
+
/**
|
|
357
|
+
* The API key name (example: "eurv-scenario")
|
|
358
|
+
*/
|
|
359
|
+
name: string;
|
|
360
|
+
/**
|
|
361
|
+
* A project role value. Accepted values are:
|
|
362
|
+
*
|
|
363
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
364
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
365
|
+
* `"assets.write;workflows.run"`.
|
|
366
|
+
*
|
|
367
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
368
|
+
*/
|
|
369
|
+
role: string;
|
|
370
|
+
/**
|
|
371
|
+
* The scope of the API key: 'project' for project-scoped keys, 'team' for
|
|
372
|
+
* team-scoped keys
|
|
373
|
+
*/
|
|
374
|
+
scope: 'project' | 'team';
|
|
375
|
+
/**
|
|
376
|
+
* The API key last update date as an ISO string (example:
|
|
377
|
+
* "2023-02-03T11:19:41.579Z")
|
|
378
|
+
*/
|
|
379
|
+
updatedAt: string;
|
|
380
|
+
/**
|
|
381
|
+
* The member who created the key: a human, or the member id (`apiu_...`) of the
|
|
382
|
+
* team API key that created it.
|
|
383
|
+
*/
|
|
384
|
+
authorId?: string;
|
|
385
|
+
/**
|
|
386
|
+
* Consumption (CU) used by this key over the current billing period.
|
|
387
|
+
*/
|
|
388
|
+
consumption?: number;
|
|
389
|
+
/**
|
|
390
|
+
* The date the API key was last used to authenticate a request, as an ISO string
|
|
391
|
+
* (example: "2023-02-03T11:19:41.579Z"). Absent if the key has never been used.
|
|
392
|
+
*/
|
|
393
|
+
lastUsedAt?: string;
|
|
394
|
+
/**
|
|
395
|
+
* The key's effective consumption (CU) cap for the period (per-key override, else
|
|
396
|
+
* the team-wide default). Absent when the key is uncapped.
|
|
397
|
+
*/
|
|
398
|
+
maxConsumption?: number;
|
|
399
|
+
/**
|
|
400
|
+
* For a PROJECT key: the project it was created on (the team id on some legacy
|
|
401
|
+
* keys). Absent for team keys.
|
|
402
|
+
*/
|
|
403
|
+
ownerId?: string;
|
|
404
|
+
/**
|
|
405
|
+
* For a PROJECT key: the projects it has access to and its role on each. Empty
|
|
406
|
+
* when the key is currently not a member of any (live) project. Absent for team
|
|
407
|
+
* keys.
|
|
408
|
+
*/
|
|
409
|
+
projects?: Array<Key.Project>;
|
|
410
|
+
}
|
|
411
|
+
namespace Key {
|
|
412
|
+
/**
|
|
413
|
+
* A project a `project`-scoped API key has access to, with its role on that
|
|
414
|
+
* project. A key can be granted roles on several projects, potentially with
|
|
415
|
+
* different roles — one entry per project.
|
|
416
|
+
*/
|
|
417
|
+
interface Project {
|
|
418
|
+
/**
|
|
419
|
+
* The project the key has a role on
|
|
420
|
+
*/
|
|
421
|
+
projectId: string;
|
|
422
|
+
/**
|
|
423
|
+
* The key's role on this project: a built-in role (`admin`/`editor`/`reader`) or a
|
|
424
|
+
* custom `;`-separated scope list (example: `"asset.read;model.read"`).
|
|
425
|
+
*/
|
|
426
|
+
role: string;
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
interface User {
|
|
430
|
+
/**
|
|
431
|
+
* The user ID (example: "eyVcnFJcR92BxBkz7N6g5w")
|
|
432
|
+
*/
|
|
433
|
+
id: string;
|
|
434
|
+
/**
|
|
435
|
+
* The user creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
436
|
+
*/
|
|
437
|
+
createdAt: string;
|
|
438
|
+
/**
|
|
439
|
+
* The user email (example: "herve@scenario.com")
|
|
440
|
+
*/
|
|
441
|
+
email: string;
|
|
442
|
+
/**
|
|
443
|
+
* A project role value. Accepted values are:
|
|
444
|
+
*
|
|
445
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
446
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
447
|
+
* `"assets.write;workflows.run"`.
|
|
448
|
+
*
|
|
449
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
450
|
+
*/
|
|
451
|
+
role: string;
|
|
452
|
+
/**
|
|
453
|
+
* The user last update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
454
|
+
*/
|
|
455
|
+
updatedAt: string;
|
|
456
|
+
/**
|
|
457
|
+
* The user's avatar
|
|
458
|
+
*/
|
|
459
|
+
avatar?: User.Avatar;
|
|
460
|
+
/**
|
|
461
|
+
* Consumption (CU) used by this member over the current billing period.
|
|
462
|
+
*/
|
|
463
|
+
consumption?: number;
|
|
464
|
+
/**
|
|
465
|
+
* The member's effective consumption (CU) cap for the period (per-user override,
|
|
466
|
+
* else the team-wide default). Absent when the member is uncapped.
|
|
467
|
+
*/
|
|
468
|
+
maxConsumption?: number;
|
|
469
|
+
}
|
|
470
|
+
namespace User {
|
|
471
|
+
/**
|
|
472
|
+
* The user's avatar
|
|
473
|
+
*/
|
|
474
|
+
interface Avatar {
|
|
475
|
+
/**
|
|
476
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
477
|
+
*/
|
|
478
|
+
assetId?: string;
|
|
479
|
+
/**
|
|
480
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
481
|
+
*/
|
|
482
|
+
url?: string;
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* The project's avatar
|
|
487
|
+
*/
|
|
488
|
+
interface Avatar {
|
|
489
|
+
/**
|
|
490
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
491
|
+
*/
|
|
492
|
+
assetId?: string;
|
|
493
|
+
/**
|
|
494
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
495
|
+
*/
|
|
496
|
+
url?: string;
|
|
497
|
+
}
|
|
498
|
+
/**
|
|
499
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
500
|
+
* the projects list.
|
|
501
|
+
*/
|
|
502
|
+
interface Settings {
|
|
503
|
+
/**
|
|
504
|
+
* Published homepage layout.
|
|
505
|
+
*/
|
|
506
|
+
homepage?: {
|
|
507
|
+
[key: string]: unknown;
|
|
508
|
+
};
|
|
509
|
+
}
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
export interface MemberDeleteResponse {
|
|
513
|
+
project: MemberDeleteResponse.Project;
|
|
514
|
+
}
|
|
515
|
+
export declare namespace MemberDeleteResponse {
|
|
516
|
+
interface Project {
|
|
517
|
+
/**
|
|
518
|
+
* The project ID (example: "project_eyVcnFJcR92BxBkz7N6g5w")
|
|
519
|
+
*/
|
|
520
|
+
id: string;
|
|
521
|
+
createdAt: string;
|
|
522
|
+
/**
|
|
523
|
+
* The keys of the project (get from the ProjectRoles table)
|
|
524
|
+
*/
|
|
525
|
+
keys: Array<Project.Key>;
|
|
526
|
+
/**
|
|
527
|
+
* The project name (example: "Default Project")
|
|
528
|
+
*/
|
|
529
|
+
name: string;
|
|
530
|
+
/**
|
|
531
|
+
* Whether the project is privacyMode In a privacyMode project, users can only see
|
|
532
|
+
* their own generated assets (except admins)
|
|
533
|
+
*/
|
|
534
|
+
privacyMode: boolean;
|
|
535
|
+
/**
|
|
536
|
+
* The team ID (example: "team_eyVcnFJcR92BxBkz7N6g5w")
|
|
537
|
+
*/
|
|
538
|
+
teamId: string;
|
|
539
|
+
updatedAt: string;
|
|
540
|
+
/**
|
|
541
|
+
* The users of the project (get from the ProjectRoles table)
|
|
542
|
+
*/
|
|
543
|
+
users: Array<Project.User>;
|
|
544
|
+
/**
|
|
545
|
+
* The project's avatar
|
|
546
|
+
*/
|
|
547
|
+
avatar?: Project.Avatar;
|
|
548
|
+
/**
|
|
549
|
+
* Consumption (CU) used by this project over the current billing period.
|
|
550
|
+
*/
|
|
551
|
+
consumption?: number;
|
|
552
|
+
/**
|
|
553
|
+
* High-level markdown description of the project Only returned on single project
|
|
554
|
+
* GET, not on list
|
|
555
|
+
*/
|
|
556
|
+
description?: string;
|
|
557
|
+
/**
|
|
558
|
+
* ISO string date when the description was last updated Only returned on single
|
|
559
|
+
* project GET, not on list
|
|
560
|
+
*/
|
|
561
|
+
descriptionDate?: string;
|
|
562
|
+
/**
|
|
563
|
+
* When true, IP detection is switched off for this project even if the team has an
|
|
564
|
+
* active posture. Absent means the team posture applies. The posture itself
|
|
565
|
+
* (disabled / active-fail-open / active-fail-closed) is a team-level setting, see
|
|
566
|
+
* the team's ipDetectionEnforcement.
|
|
567
|
+
*/
|
|
568
|
+
disableIpDetection?: boolean;
|
|
569
|
+
/**
|
|
570
|
+
* The project's consumption (CU) cap for the period. Absent when uncapped.
|
|
571
|
+
*/
|
|
572
|
+
maxConsumption?: number;
|
|
573
|
+
/**
|
|
574
|
+
* Whether Quality Gate auto-detection runs on generation for this project.
|
|
575
|
+
*/
|
|
576
|
+
qualityGateAutoDetect?: boolean;
|
|
577
|
+
/**
|
|
578
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
579
|
+
* the projects list.
|
|
580
|
+
*/
|
|
581
|
+
settings?: Project.Settings;
|
|
582
|
+
}
|
|
583
|
+
namespace Project {
|
|
584
|
+
interface Key {
|
|
585
|
+
/**
|
|
586
|
+
* The key's member id (its API user id, `apiu_...`), taken by the member and usage
|
|
587
|
+
* routes (example: "apiu_eyVcnFJcR92BxBkz7N6g5w")
|
|
588
|
+
*/
|
|
589
|
+
id: string;
|
|
590
|
+
/**
|
|
591
|
+
* The API key id (`api_...`), taken by the api-keys routes (example:
|
|
592
|
+
* "api_eyVcnFJcR92BxBkz7N6g5w")
|
|
593
|
+
*/
|
|
594
|
+
apiKeyId: string;
|
|
595
|
+
/**
|
|
596
|
+
* The status of the API key
|
|
597
|
+
*/
|
|
598
|
+
apiKeyStatus: 'active' | 'inactive';
|
|
599
|
+
/**
|
|
600
|
+
* The API key creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
601
|
+
*/
|
|
602
|
+
createdAt: string;
|
|
603
|
+
/**
|
|
604
|
+
* The API key name (example: "eurv-scenario")
|
|
605
|
+
*/
|
|
606
|
+
name: string;
|
|
607
|
+
/**
|
|
608
|
+
* A project role value. Accepted values are:
|
|
609
|
+
*
|
|
610
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
611
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
612
|
+
* `"assets.write;workflows.run"`.
|
|
613
|
+
*
|
|
614
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
615
|
+
*/
|
|
616
|
+
role: string;
|
|
617
|
+
/**
|
|
618
|
+
* The scope of the API key: 'project' for project-scoped keys, 'team' for
|
|
619
|
+
* team-scoped keys
|
|
620
|
+
*/
|
|
621
|
+
scope: 'project' | 'team';
|
|
622
|
+
/**
|
|
623
|
+
* The API key last update date as an ISO string (example:
|
|
624
|
+
* "2023-02-03T11:19:41.579Z")
|
|
625
|
+
*/
|
|
626
|
+
updatedAt: string;
|
|
627
|
+
/**
|
|
628
|
+
* The member who created the key: a human, or the member id (`apiu_...`) of the
|
|
629
|
+
* team API key that created it.
|
|
630
|
+
*/
|
|
631
|
+
authorId?: string;
|
|
632
|
+
/**
|
|
633
|
+
* Consumption (CU) used by this key over the current billing period.
|
|
634
|
+
*/
|
|
635
|
+
consumption?: number;
|
|
636
|
+
/**
|
|
637
|
+
* The date the API key was last used to authenticate a request, as an ISO string
|
|
638
|
+
* (example: "2023-02-03T11:19:41.579Z"). Absent if the key has never been used.
|
|
639
|
+
*/
|
|
640
|
+
lastUsedAt?: string;
|
|
641
|
+
/**
|
|
642
|
+
* The key's effective consumption (CU) cap for the period (per-key override, else
|
|
643
|
+
* the team-wide default). Absent when the key is uncapped.
|
|
644
|
+
*/
|
|
645
|
+
maxConsumption?: number;
|
|
646
|
+
/**
|
|
647
|
+
* For a PROJECT key: the project it was created on (the team id on some legacy
|
|
648
|
+
* keys). Absent for team keys.
|
|
649
|
+
*/
|
|
650
|
+
ownerId?: string;
|
|
651
|
+
/**
|
|
652
|
+
* For a PROJECT key: the projects it has access to and its role on each. Empty
|
|
653
|
+
* when the key is currently not a member of any (live) project. Absent for team
|
|
654
|
+
* keys.
|
|
655
|
+
*/
|
|
656
|
+
projects?: Array<Key.Project>;
|
|
657
|
+
}
|
|
658
|
+
namespace Key {
|
|
659
|
+
/**
|
|
660
|
+
* A project a `project`-scoped API key has access to, with its role on that
|
|
661
|
+
* project. A key can be granted roles on several projects, potentially with
|
|
662
|
+
* different roles — one entry per project.
|
|
663
|
+
*/
|
|
664
|
+
interface Project {
|
|
665
|
+
/**
|
|
666
|
+
* The project the key has a role on
|
|
667
|
+
*/
|
|
668
|
+
projectId: string;
|
|
669
|
+
/**
|
|
670
|
+
* The key's role on this project: a built-in role (`admin`/`editor`/`reader`) or a
|
|
671
|
+
* custom `;`-separated scope list (example: `"asset.read;model.read"`).
|
|
672
|
+
*/
|
|
673
|
+
role: string;
|
|
674
|
+
}
|
|
675
|
+
}
|
|
676
|
+
interface User {
|
|
677
|
+
/**
|
|
678
|
+
* The user ID (example: "eyVcnFJcR92BxBkz7N6g5w")
|
|
679
|
+
*/
|
|
680
|
+
id: string;
|
|
681
|
+
/**
|
|
682
|
+
* The user creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
683
|
+
*/
|
|
684
|
+
createdAt: string;
|
|
685
|
+
/**
|
|
686
|
+
* The user email (example: "herve@scenario.com")
|
|
687
|
+
*/
|
|
688
|
+
email: string;
|
|
689
|
+
/**
|
|
690
|
+
* A project role value. Accepted values are:
|
|
691
|
+
*
|
|
692
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
693
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
694
|
+
* `"assets.write;workflows.run"`.
|
|
695
|
+
*
|
|
696
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
697
|
+
*/
|
|
698
|
+
role: string;
|
|
699
|
+
/**
|
|
700
|
+
* The user last update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
701
|
+
*/
|
|
702
|
+
updatedAt: string;
|
|
703
|
+
/**
|
|
704
|
+
* The user's avatar
|
|
705
|
+
*/
|
|
706
|
+
avatar?: User.Avatar;
|
|
707
|
+
/**
|
|
708
|
+
* Consumption (CU) used by this member over the current billing period.
|
|
709
|
+
*/
|
|
710
|
+
consumption?: number;
|
|
711
|
+
/**
|
|
712
|
+
* The member's effective consumption (CU) cap for the period (per-user override,
|
|
713
|
+
* else the team-wide default). Absent when the member is uncapped.
|
|
714
|
+
*/
|
|
715
|
+
maxConsumption?: number;
|
|
716
|
+
}
|
|
717
|
+
namespace User {
|
|
718
|
+
/**
|
|
719
|
+
* The user's avatar
|
|
720
|
+
*/
|
|
721
|
+
interface Avatar {
|
|
722
|
+
/**
|
|
723
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
724
|
+
*/
|
|
725
|
+
assetId?: string;
|
|
726
|
+
/**
|
|
727
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
728
|
+
*/
|
|
729
|
+
url?: string;
|
|
730
|
+
}
|
|
731
|
+
}
|
|
732
|
+
/**
|
|
733
|
+
* The project's avatar
|
|
734
|
+
*/
|
|
735
|
+
interface Avatar {
|
|
736
|
+
/**
|
|
737
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
738
|
+
*/
|
|
739
|
+
assetId?: string;
|
|
740
|
+
/**
|
|
741
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
742
|
+
*/
|
|
743
|
+
url?: string;
|
|
744
|
+
}
|
|
745
|
+
/**
|
|
746
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
747
|
+
* the projects list.
|
|
748
|
+
*/
|
|
749
|
+
interface Settings {
|
|
750
|
+
/**
|
|
751
|
+
* Published homepage layout.
|
|
752
|
+
*/
|
|
753
|
+
homepage?: {
|
|
754
|
+
[key: string]: unknown;
|
|
755
|
+
};
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
}
|
|
759
|
+
export interface MemberCreateParams {
|
|
760
|
+
/**
|
|
761
|
+
* The role you want to give the user
|
|
762
|
+
*/
|
|
763
|
+
role: string;
|
|
764
|
+
/**
|
|
765
|
+
* The userId of the user you want to add to your project
|
|
766
|
+
*/
|
|
767
|
+
userId: string;
|
|
768
|
+
}
|
|
769
|
+
export interface MemberUpdateParams {
|
|
770
|
+
/**
|
|
771
|
+
* Path param: The project Id concerned by the role change
|
|
772
|
+
*/
|
|
773
|
+
projectId: string;
|
|
774
|
+
/**
|
|
775
|
+
* Body param: The role you want to give the member
|
|
776
|
+
*/
|
|
777
|
+
role?: string;
|
|
778
|
+
}
|
|
779
|
+
export interface MemberDeleteParams {
|
|
780
|
+
/**
|
|
781
|
+
* The project Id concerned by the member removal
|
|
782
|
+
*/
|
|
783
|
+
projectId: string;
|
|
784
|
+
}
|
|
785
|
+
export declare namespace Members {
|
|
786
|
+
export { type MemberCreateResponse as MemberCreateResponse, type MemberUpdateResponse as MemberUpdateResponse, type MemberDeleteResponse as MemberDeleteResponse, type MemberCreateParams as MemberCreateParams, type MemberUpdateParams as MemberUpdateParams, type MemberDeleteParams as MemberDeleteParams, };
|
|
787
|
+
}
|
|
788
|
+
//# sourceMappingURL=members.d.mts.map
|