@scenario-labs/sdk 3.2.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 +27 -0
- package/client.d.mts +20 -5
- package/client.d.mts.map +1 -1
- package/client.d.ts +20 -5
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +42 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +42 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +79 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +75 -0
- package/core/pagination.mjs.map +1 -1
- package/internal/utils/values.d.mts +6 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +6 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +11 -0
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +10 -0
- package/internal/utils/values.mjs.map +1 -1
- package/lib/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_validator.d.mts +5 -0
- package/lib/workflow_validator.d.mts.map +1 -1
- package/lib/workflow_validator.d.ts +5 -0
- package/lib/workflow_validator.d.ts.map +1 -1
- package/lib/workflow_validator.js +113 -0
- package/lib/workflow_validator.js.map +1 -1
- package/lib/workflow_validator.mjs +113 -0
- package/lib/workflow_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +130 -31
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +130 -31
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +34 -11
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +34 -11
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/download.d.mts +24 -5
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts +24 -5
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.js +15 -3
- package/resources/assets/download.js.map +1 -1
- package/resources/assets/download.mjs +15 -3
- package/resources/assets/download.mjs.map +1 -1
- package/resources/collections/assets.d.mts.map +1 -1
- package/resources/collections/assets.d.ts.map +1 -1
- package/resources/collections/assets.js +3 -2
- package/resources/collections/assets.js.map +1 -1
- package/resources/collections/assets.mjs +3 -2
- package/resources/collections/assets.mjs.map +1 -1
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.js +20 -5
- package/resources/collections/collections.js.map +1 -1
- package/resources/collections/collections.mjs +20 -5
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/models.d.mts.map +1 -1
- package/resources/collections/models.d.ts.map +1 -1
- package/resources/collections/models.js +3 -2
- package/resources/collections/models.js.map +1 -1
- package/resources/collections/models.mjs +3 -2
- package/resources/collections/models.mjs.map +1 -1
- package/resources/generate.d.mts +1719 -225
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +1719 -225
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +65 -8
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +65 -8
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts +5 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +5 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +176 -74
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +176 -74
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +16 -4
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +16 -4
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +2 -2
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +2 -2
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/description.js +6 -2
- package/resources/models/description.js.map +1 -1
- package/resources/models/description.mjs +6 -2
- package/resources/models/description.mjs.map +1 -1
- package/resources/models/examples.d.mts +120 -48
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +120 -48
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/examples.js +6 -2
- package/resources/models/examples.js.map +1 -1
- package/resources/models/examples.mjs +6 -2
- package/resources/models/examples.mjs.map +1 -1
- package/resources/models/index.d.mts +3 -0
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +3 -0
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js +7 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs +3 -0
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +215 -77
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +215 -77
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +52 -11
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +52 -11
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/presets.d.mts +1016 -0
- package/resources/models/presets.d.mts.map +1 -0
- package/resources/models/presets.d.ts +1016 -0
- package/resources/models/presets.d.ts.map +1 -0
- package/resources/models/presets.js +52 -0
- package/resources/models/presets.js.map +1 -0
- package/resources/models/presets.mjs +48 -0
- package/resources/models/presets.mjs.map +1 -0
- package/resources/models/prompt-guide.d.mts +64 -0
- package/resources/models/prompt-guide.d.mts.map +1 -0
- package/resources/models/prompt-guide.d.ts +64 -0
- package/resources/models/prompt-guide.d.ts.map +1 -0
- package/resources/models/prompt-guide.js +31 -0
- package/resources/models/prompt-guide.js.map +1 -0
- package/resources/models/prompt-guide.mjs +27 -0
- package/resources/models/prompt-guide.mjs.map +1 -0
- package/resources/models/scores.d.mts +278 -0
- package/resources/models/scores.d.mts.map +1 -0
- package/resources/models/scores.d.ts +278 -0
- package/resources/models/scores.d.ts.map +1 -0
- package/resources/models/scores.js +29 -0
- package/resources/models/scores.js.map +1 -0
- package/resources/models/scores.mjs +25 -0
- package/resources/models/scores.mjs.map +1 -0
- package/resources/models/train.d.mts +108 -45
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +108 -45
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +3 -2
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +3 -2
- package/resources/models/train.mjs.map +1 -1
- package/resources/models/training-images.d.mts.map +1 -1
- package/resources/models/training-images.d.ts.map +1 -1
- package/resources/models/training-images.js +5 -4
- package/resources/models/training-images.js.map +1 -1
- package/resources/models/training-images.mjs +5 -4
- package/resources/models/training-images.mjs.map +1 -1
- package/resources/projects/api-keys.d.mts +54 -0
- package/resources/projects/api-keys.d.mts.map +1 -0
- package/resources/projects/api-keys.d.ts +54 -0
- package/resources/projects/api-keys.d.ts.map +1 -0
- package/resources/projects/api-keys.js +23 -0
- package/resources/projects/api-keys.js.map +1 -0
- package/resources/projects/api-keys.mjs +19 -0
- package/resources/projects/api-keys.mjs.map +1 -0
- package/resources/projects/brief.d.mts +149 -0
- package/resources/projects/brief.d.mts.map +1 -0
- package/resources/projects/brief.d.ts +149 -0
- package/resources/projects/brief.d.ts.map +1 -0
- package/resources/projects/brief.js +28 -0
- package/resources/projects/brief.js.map +1 -0
- package/resources/projects/brief.mjs +24 -0
- package/resources/projects/brief.mjs.map +1 -0
- package/resources/projects/index.d.mts +9 -0
- package/resources/projects/index.d.mts.map +1 -0
- package/resources/projects/index.d.ts +9 -0
- package/resources/projects/index.d.ts.map +1 -0
- package/resources/projects/index.js +21 -0
- package/resources/projects/index.js.map +1 -0
- package/resources/projects/index.mjs +10 -0
- package/resources/projects/index.mjs.map +1 -0
- package/resources/projects/instructions.d.mts +102 -0
- package/resources/projects/instructions.d.mts.map +1 -0
- package/resources/projects/instructions.d.ts +102 -0
- package/resources/projects/instructions.d.ts.map +1 -0
- package/resources/projects/instructions.js +24 -0
- package/resources/projects/instructions.js.map +1 -0
- package/resources/projects/instructions.mjs +20 -0
- package/resources/projects/instructions.mjs.map +1 -0
- package/resources/projects/members.d.mts +788 -0
- package/resources/projects/members.d.mts.map +1 -0
- package/resources/projects/members.d.ts +788 -0
- package/resources/projects/members.d.ts.map +1 -0
- package/resources/projects/members.js +30 -0
- package/resources/projects/members.js.map +1 -0
- package/resources/projects/members.mjs +26 -0
- package/resources/projects/members.mjs.map +1 -0
- package/resources/projects/memory.d.mts +102 -0
- package/resources/projects/memory.d.mts.map +1 -0
- package/resources/projects/memory.d.ts +102 -0
- package/resources/projects/memory.d.ts.map +1 -0
- package/resources/projects/memory.js +24 -0
- package/resources/projects/memory.js.map +1 -0
- package/resources/projects/memory.mjs +20 -0
- package/resources/projects/memory.mjs.map +1 -0
- package/resources/projects/projects.d.mts +1129 -0
- package/resources/projects/projects.d.mts.map +1 -0
- package/resources/projects/projects.d.ts +1129 -0
- package/resources/projects/projects.d.ts.map +1 -0
- package/resources/projects/projects.js +79 -0
- package/resources/projects/projects.js.map +1 -0
- package/resources/projects/projects.mjs +74 -0
- package/resources/projects/projects.mjs.map +1 -0
- package/resources/projects/watermark.d.mts +459 -0
- package/resources/projects/watermark.d.mts.map +1 -0
- package/resources/projects/watermark.d.ts +459 -0
- package/resources/projects/watermark.d.ts.map +1 -0
- package/resources/projects/watermark.js +46 -0
- package/resources/projects/watermark.js.map +1 -0
- package/resources/projects/watermark.mjs +42 -0
- package/resources/projects/watermark.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/events.d.mts +87 -0
- package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/events.d.ts +87 -0
- package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/events.js +28 -0
- package/resources/projects/webhook-endpoints/events.js.map +1 -0
- package/resources/projects/webhook-endpoints/events.mjs +24 -0
- package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/index.d.mts +3 -0
- package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/index.d.ts +3 -0
- package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/index.js +9 -0
- package/resources/projects/webhook-endpoints/index.js.map +1 -0
- package/resources/projects/webhook-endpoints/index.mjs +4 -0
- package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
- package/resources/projects/webhook-endpoints.d.mts +2 -0
- package/resources/projects/webhook-endpoints.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints.d.ts +2 -0
- package/resources/projects/webhook-endpoints.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints.js +6 -0
- package/resources/projects/webhook-endpoints.js.map +1 -0
- package/resources/projects/webhook-endpoints.mjs +3 -0
- package/resources/projects/webhook-endpoints.mjs.map +1 -0
- package/resources/projects.d.mts +2 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts +2 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +6 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +3 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/recommendations.d.mts +1107 -0
- package/resources/recommendations.d.mts.map +1 -0
- package/resources/recommendations.d.ts +1107 -0
- package/resources/recommendations.d.ts.map +1 -0
- package/resources/recommendations.js +17 -0
- package/resources/recommendations.js.map +1 -0
- package/resources/recommendations.mjs +13 -0
- package/resources/recommendations.mjs.map +1 -0
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +4 -3
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +4 -3
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts.map +1 -1
- package/resources/tags.d.ts.map +1 -1
- package/resources/tags.js +5 -1
- package/resources/tags.js.map +1 -1
- package/resources/tags.mjs +5 -1
- package/resources/tags.mjs.map +1 -1
- package/resources/teams/brief.d.mts +149 -0
- package/resources/teams/brief.d.mts.map +1 -0
- package/resources/teams/brief.d.ts +149 -0
- package/resources/teams/brief.d.ts.map +1 -0
- package/resources/teams/brief.js +28 -0
- package/resources/teams/brief.js.map +1 -0
- package/resources/teams/brief.mjs +24 -0
- package/resources/teams/brief.mjs.map +1 -0
- package/resources/teams/index.d.mts +7 -0
- package/resources/teams/index.d.mts.map +1 -0
- package/resources/teams/index.d.ts +7 -0
- package/resources/teams/index.d.ts.map +1 -0
- package/resources/teams/index.js +17 -0
- package/resources/teams/index.js.map +1 -0
- package/resources/teams/index.mjs +8 -0
- package/resources/teams/index.mjs.map +1 -0
- package/resources/teams/ip-filters.d.mts +115 -0
- package/resources/teams/ip-filters.d.mts.map +1 -0
- package/resources/teams/ip-filters.d.ts +115 -0
- package/resources/teams/ip-filters.d.ts.map +1 -0
- package/resources/teams/ip-filters.js +45 -0
- package/resources/teams/ip-filters.js.map +1 -0
- package/resources/teams/ip-filters.mjs +41 -0
- package/resources/teams/ip-filters.mjs.map +1 -0
- package/resources/teams/members.d.mts +204 -0
- package/resources/teams/members.d.mts.map +1 -0
- package/resources/teams/members.d.ts +204 -0
- package/resources/teams/members.d.ts.map +1 -0
- package/resources/teams/members.js +30 -0
- package/resources/teams/members.js.map +1 -0
- package/resources/teams/members.mjs +26 -0
- package/resources/teams/members.mjs.map +1 -0
- package/resources/teams/teams.d.mts +878 -0
- package/resources/teams/teams.d.mts.map +1 -0
- package/resources/teams/teams.d.ts +878 -0
- package/resources/teams/teams.d.ts.map +1 -0
- package/resources/teams/teams.js +66 -0
- package/resources/teams/teams.js.map +1 -0
- package/resources/teams/teams.mjs +61 -0
- package/resources/teams/teams.mjs.map +1 -0
- package/resources/teams/watermark.d.mts +459 -0
- package/resources/teams/watermark.d.mts.map +1 -0
- package/resources/teams/watermark.d.ts +459 -0
- package/resources/teams/watermark.d.ts.map +1 -0
- package/resources/teams/watermark.js +46 -0
- package/resources/teams/watermark.js.map +1 -0
- package/resources/teams/watermark.mjs +42 -0
- package/resources/teams/watermark.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/events.d.mts +87 -0
- package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/events.d.ts +87 -0
- package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/events.js +28 -0
- package/resources/teams/webhook-endpoints/events.js.map +1 -0
- package/resources/teams/webhook-endpoints/events.mjs +24 -0
- package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/index.d.mts +3 -0
- package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/index.d.ts +3 -0
- package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/index.js +9 -0
- package/resources/teams/webhook-endpoints/index.js.map +1 -0
- package/resources/teams/webhook-endpoints/index.mjs +4 -0
- package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
- package/resources/teams/webhook-endpoints.d.mts +2 -0
- package/resources/teams/webhook-endpoints.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints.d.ts +2 -0
- package/resources/teams/webhook-endpoints.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints.js +6 -0
- package/resources/teams/webhook-endpoints.js.map +1 -0
- package/resources/teams/webhook-endpoints.mjs +3 -0
- package/resources/teams/webhook-endpoints.mjs.map +1 -0
- package/resources/teams.d.mts +2 -0
- package/resources/teams.d.mts.map +1 -0
- package/resources/teams.d.ts +2 -0
- package/resources/teams.d.ts.map +1 -0
- package/resources/teams.js +6 -0
- package/resources/teams.js.map +1 -0
- package/resources/teams.mjs +3 -0
- package/resources/teams.mjs.map +1 -0
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +15 -3
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +15 -3
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +51 -24
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +51 -24
- package/resources/usages.d.ts.map +1 -1
- package/resources/usages.js +2 -1
- package/resources/usages.js.map +1 -1
- package/resources/usages.mjs +2 -1
- package/resources/usages.mjs.map +1 -1
- package/resources/workflows.d.mts +1381 -280
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +1381 -280
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +39 -8
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +39 -8
- package/resources/workflows.mjs.map +1 -1
- package/src/client.ts +101 -0
- package/src/core/pagination.ts +144 -0
- package/src/internal/utils/values.ts +10 -0
- package/src/lib/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_validator.ts +115 -0
- package/src/resources/assets/assets.ts +192 -33
- package/src/resources/assets/download.ts +43 -8
- package/src/resources/collections/assets.ts +3 -2
- package/src/resources/collections/collections.ts +20 -5
- package/src/resources/collections/models.ts +3 -2
- package/src/resources/generate.ts +2350 -186
- package/src/resources/index.ts +34 -0
- package/src/resources/jobs.ts +204 -74
- package/src/resources/models/description.ts +10 -2
- package/src/resources/models/examples.ts +140 -46
- package/src/resources/models/index.ts +25 -0
- package/src/resources/models/models.ts +326 -88
- package/src/resources/models/presets.ts +1335 -0
- package/src/resources/models/prompt-guide.ts +102 -0
- package/src/resources/models/scores.ts +383 -0
- package/src/resources/models/train.ts +121 -46
- package/src/resources/models/training-images.ts +5 -4
- package/src/resources/projects/api-keys.ts +86 -0
- package/src/resources/projects/brief.ts +197 -0
- package/src/resources/projects/index.ts +71 -0
- package/src/resources/projects/instructions.ts +134 -0
- package/src/resources/projects/members.ts +958 -0
- package/src/resources/projects/memory.ts +134 -0
- package/src/resources/projects/projects.ts +1478 -0
- package/src/resources/projects/watermark.ts +590 -0
- package/src/resources/projects/webhook-endpoints/events.ts +179 -0
- package/src/resources/projects/webhook-endpoints/index.ts +19 -0
- package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
- package/src/resources/projects/webhook-endpoints.ts +3 -0
- package/src/resources/projects.ts +3 -0
- package/src/resources/recommendations.ts +1502 -0
- package/src/resources/search.ts +4 -3
- package/src/resources/tags.ts +5 -1
- package/src/resources/teams/brief.ts +193 -0
- package/src/resources/teams/index.ts +62 -0
- package/src/resources/teams/ip-filters.ts +177 -0
- package/src/resources/teams/members.ts +282 -0
- package/src/resources/teams/teams.ts +1255 -0
- package/src/resources/teams/watermark.ts +590 -0
- package/src/resources/teams/webhook-endpoints/events.ts +179 -0
- package/src/resources/teams/webhook-endpoints/index.ts +19 -0
- package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
- package/src/resources/teams/webhook-endpoints.ts +3 -0
- package/src/resources/teams.ts +3 -0
- package/src/resources/uploads.ts +15 -3
- package/src/resources/usages.ts +58 -23
- package/src/resources/workflows.ts +1707 -241
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,1478 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../../core/resource';
|
|
4
|
+
import * as APIKeysAPI from './api-keys';
|
|
5
|
+
import {
|
|
6
|
+
APIKeyCreateParams,
|
|
7
|
+
APIKeyCreateResponse,
|
|
8
|
+
APIKeyDeleteParams,
|
|
9
|
+
APIKeyDeleteResponse,
|
|
10
|
+
APIKeys,
|
|
11
|
+
} from './api-keys';
|
|
12
|
+
import * as BriefAPI from './brief';
|
|
13
|
+
import {
|
|
14
|
+
Brief,
|
|
15
|
+
BriefDeleteResponse,
|
|
16
|
+
BriefRetrieveResponse,
|
|
17
|
+
BriefUpdateParams,
|
|
18
|
+
BriefUpdateResponse,
|
|
19
|
+
} from './brief';
|
|
20
|
+
import * as InstructionsAPI from './instructions';
|
|
21
|
+
import {
|
|
22
|
+
InstructionRetrieveResponse,
|
|
23
|
+
InstructionUpdateParams,
|
|
24
|
+
InstructionUpdateResponse,
|
|
25
|
+
Instructions,
|
|
26
|
+
} from './instructions';
|
|
27
|
+
import * as MembersAPI from './members';
|
|
28
|
+
import {
|
|
29
|
+
MemberCreateParams,
|
|
30
|
+
MemberCreateResponse,
|
|
31
|
+
MemberDeleteParams,
|
|
32
|
+
MemberDeleteResponse,
|
|
33
|
+
MemberUpdateParams,
|
|
34
|
+
MemberUpdateResponse,
|
|
35
|
+
Members,
|
|
36
|
+
} from './members';
|
|
37
|
+
import * as MemoryAPI from './memory';
|
|
38
|
+
import { Memory, MemoryRetrieveResponse, MemoryUpdateParams, MemoryUpdateResponse } from './memory';
|
|
39
|
+
import * as WatermarkAPI from './watermark';
|
|
40
|
+
import {
|
|
41
|
+
Watermark,
|
|
42
|
+
WatermarkDeleteLogoResponse,
|
|
43
|
+
WatermarkDeleteResponse,
|
|
44
|
+
WatermarkPreviewParams,
|
|
45
|
+
WatermarkPreviewResponse,
|
|
46
|
+
WatermarkRetrieveResponse,
|
|
47
|
+
WatermarkUpdateLogoParams,
|
|
48
|
+
WatermarkUpdateLogoResponse,
|
|
49
|
+
WatermarkUpdateParams,
|
|
50
|
+
WatermarkUpdateResponse,
|
|
51
|
+
} from './watermark';
|
|
52
|
+
import * as WebhookEndpointsAPI from './webhook-endpoints/webhook-endpoints';
|
|
53
|
+
import {
|
|
54
|
+
WebhookEndpointCreateParams,
|
|
55
|
+
WebhookEndpointCreateResponse,
|
|
56
|
+
WebhookEndpointDeleteParams,
|
|
57
|
+
WebhookEndpointDeleteResponse,
|
|
58
|
+
WebhookEndpointListResponse,
|
|
59
|
+
WebhookEndpointUpdateParams,
|
|
60
|
+
WebhookEndpointUpdateResponse,
|
|
61
|
+
WebhookEndpoints,
|
|
62
|
+
} from './webhook-endpoints/webhook-endpoints';
|
|
63
|
+
import { APIPromise } from '../../core/api-promise';
|
|
64
|
+
import { PagePromise, ProjectsCursor, type ProjectsCursorParams } from '../../core/pagination';
|
|
65
|
+
import { RequestOptions } from '../../internal/request-options';
|
|
66
|
+
import { path } from '../../internal/utils/path';
|
|
67
|
+
import { omitUndefined } from '../../internal/utils/values';
|
|
68
|
+
|
|
69
|
+
export class Projects extends APIResource {
|
|
70
|
+
apiKeys: APIKeysAPI.APIKeys = new APIKeysAPI.APIKeys(this._client);
|
|
71
|
+
brief: BriefAPI.Brief = new BriefAPI.Brief(this._client);
|
|
72
|
+
instructions: InstructionsAPI.Instructions = new InstructionsAPI.Instructions(this._client);
|
|
73
|
+
members: MembersAPI.Members = new MembersAPI.Members(this._client);
|
|
74
|
+
memory: MemoryAPI.Memory = new MemoryAPI.Memory(this._client);
|
|
75
|
+
watermark: WatermarkAPI.Watermark = new WatermarkAPI.Watermark(this._client);
|
|
76
|
+
webhookEndpoints: WebhookEndpointsAPI.WebhookEndpoints = new WebhookEndpointsAPI.WebhookEndpoints(
|
|
77
|
+
this._client,
|
|
78
|
+
);
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Create a new project
|
|
82
|
+
*/
|
|
83
|
+
create(params: ProjectCreateParams, options?: RequestOptions): APIPromise<ProjectCreateResponse> {
|
|
84
|
+
const { teamId, ...body } = params;
|
|
85
|
+
return this._client.post('/projects', {
|
|
86
|
+
body,
|
|
87
|
+
...options,
|
|
88
|
+
query: { teamId, ...omitUndefined(options?.query) },
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Get a project by projectId
|
|
94
|
+
*/
|
|
95
|
+
retrieve(projectID: string, options?: RequestOptions): APIPromise<ProjectRetrieveResponse> {
|
|
96
|
+
return this._client.get(path`/projects/${projectID}`, options);
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
/**
|
|
100
|
+
* Update the name of a Project
|
|
101
|
+
*/
|
|
102
|
+
update(
|
|
103
|
+
projectID: string,
|
|
104
|
+
body: ProjectUpdateParams,
|
|
105
|
+
options?: RequestOptions,
|
|
106
|
+
): APIPromise<ProjectUpdateResponse> {
|
|
107
|
+
return this._client.put(path`/projects/${projectID}`, { body, ...options });
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* List projects of a team
|
|
112
|
+
*/
|
|
113
|
+
list(
|
|
114
|
+
query: ProjectListParams | null | undefined = {},
|
|
115
|
+
options?: RequestOptions,
|
|
116
|
+
): PagePromise<ProjectListResponsesProjectsCursor, ProjectListResponse> {
|
|
117
|
+
return this._client.getAPIList('/projects', ProjectsCursor<ProjectListResponse>, {
|
|
118
|
+
...options,
|
|
119
|
+
query: { ...query, ...omitUndefined(options?.query) },
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Delete a particular project
|
|
125
|
+
*/
|
|
126
|
+
delete(projectID: string, options?: RequestOptions): APIPromise<unknown> {
|
|
127
|
+
return this._client.delete(path`/projects/${projectID}`, options);
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type ProjectListResponsesProjectsCursor = ProjectsCursor<ProjectListResponse>;
|
|
132
|
+
|
|
133
|
+
export interface ProjectCreateResponse {
|
|
134
|
+
project: ProjectCreateResponse.Project;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export namespace ProjectCreateResponse {
|
|
138
|
+
export interface Project {
|
|
139
|
+
/**
|
|
140
|
+
* The project ID (example: "project_eyVcnFJcR92BxBkz7N6g5w")
|
|
141
|
+
*/
|
|
142
|
+
id: string;
|
|
143
|
+
|
|
144
|
+
createdAt: string;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The keys of the project (get from the ProjectRoles table)
|
|
148
|
+
*/
|
|
149
|
+
keys: Array<Project.Key>;
|
|
150
|
+
|
|
151
|
+
/**
|
|
152
|
+
* The project name (example: "Default Project")
|
|
153
|
+
*/
|
|
154
|
+
name: string;
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Whether the project is privacyMode In a privacyMode project, users can only see
|
|
158
|
+
* their own generated assets (except admins)
|
|
159
|
+
*/
|
|
160
|
+
privacyMode: boolean;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* The team ID (example: "team_eyVcnFJcR92BxBkz7N6g5w")
|
|
164
|
+
*/
|
|
165
|
+
teamId: string;
|
|
166
|
+
|
|
167
|
+
updatedAt: string;
|
|
168
|
+
|
|
169
|
+
/**
|
|
170
|
+
* The users of the project (get from the ProjectRoles table)
|
|
171
|
+
*/
|
|
172
|
+
users: Array<Project.User>;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* The project's avatar
|
|
176
|
+
*/
|
|
177
|
+
avatar?: Project.Avatar;
|
|
178
|
+
|
|
179
|
+
/**
|
|
180
|
+
* Consumption (CU) used by this project over the current billing period.
|
|
181
|
+
*/
|
|
182
|
+
consumption?: number;
|
|
183
|
+
|
|
184
|
+
/**
|
|
185
|
+
* High-level markdown description of the project Only returned on single project
|
|
186
|
+
* GET, not on list
|
|
187
|
+
*/
|
|
188
|
+
description?: string;
|
|
189
|
+
|
|
190
|
+
/**
|
|
191
|
+
* ISO string date when the description was last updated Only returned on single
|
|
192
|
+
* project GET, not on list
|
|
193
|
+
*/
|
|
194
|
+
descriptionDate?: string;
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* When true, IP detection is switched off for this project even if the team has an
|
|
198
|
+
* active posture. Absent means the team posture applies. The posture itself
|
|
199
|
+
* (disabled / active-fail-open / active-fail-closed) is a team-level setting, see
|
|
200
|
+
* the team's ipDetectionEnforcement.
|
|
201
|
+
*/
|
|
202
|
+
disableIpDetection?: boolean;
|
|
203
|
+
|
|
204
|
+
/**
|
|
205
|
+
* The project's consumption (CU) cap for the period. Absent when uncapped.
|
|
206
|
+
*/
|
|
207
|
+
maxConsumption?: number;
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Whether Quality Gate auto-detection runs on generation for this project.
|
|
211
|
+
*/
|
|
212
|
+
qualityGateAutoDetect?: boolean;
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
216
|
+
* the projects list.
|
|
217
|
+
*/
|
|
218
|
+
settings?: Project.Settings;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export namespace Project {
|
|
222
|
+
export interface Key {
|
|
223
|
+
/**
|
|
224
|
+
* The key's member id (its API user id, `apiu_...`), taken by the member and usage
|
|
225
|
+
* routes (example: "apiu_eyVcnFJcR92BxBkz7N6g5w")
|
|
226
|
+
*/
|
|
227
|
+
id: string;
|
|
228
|
+
|
|
229
|
+
/**
|
|
230
|
+
* The API key id (`api_...`), taken by the api-keys routes (example:
|
|
231
|
+
* "api_eyVcnFJcR92BxBkz7N6g5w")
|
|
232
|
+
*/
|
|
233
|
+
apiKeyId: string;
|
|
234
|
+
|
|
235
|
+
/**
|
|
236
|
+
* The status of the API key
|
|
237
|
+
*/
|
|
238
|
+
apiKeyStatus: 'active' | 'inactive';
|
|
239
|
+
|
|
240
|
+
/**
|
|
241
|
+
* The API key creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
242
|
+
*/
|
|
243
|
+
createdAt: string;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* The API key name (example: "eurv-scenario")
|
|
247
|
+
*/
|
|
248
|
+
name: string;
|
|
249
|
+
|
|
250
|
+
/**
|
|
251
|
+
* A project role value. Accepted values are:
|
|
252
|
+
*
|
|
253
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
254
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
255
|
+
* `"assets.write;workflows.run"`.
|
|
256
|
+
*
|
|
257
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
258
|
+
*/
|
|
259
|
+
role: string;
|
|
260
|
+
|
|
261
|
+
/**
|
|
262
|
+
* The scope of the API key: 'project' for project-scoped keys, 'team' for
|
|
263
|
+
* team-scoped keys
|
|
264
|
+
*/
|
|
265
|
+
scope: 'project' | 'team';
|
|
266
|
+
|
|
267
|
+
/**
|
|
268
|
+
* The API key last update date as an ISO string (example:
|
|
269
|
+
* "2023-02-03T11:19:41.579Z")
|
|
270
|
+
*/
|
|
271
|
+
updatedAt: string;
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* The member who created the key: a human, or the member id (`apiu_...`) of the
|
|
275
|
+
* team API key that created it.
|
|
276
|
+
*/
|
|
277
|
+
authorId?: string;
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* Consumption (CU) used by this key over the current billing period.
|
|
281
|
+
*/
|
|
282
|
+
consumption?: number;
|
|
283
|
+
|
|
284
|
+
/**
|
|
285
|
+
* The date the API key was last used to authenticate a request, as an ISO string
|
|
286
|
+
* (example: "2023-02-03T11:19:41.579Z"). Absent if the key has never been used.
|
|
287
|
+
*/
|
|
288
|
+
lastUsedAt?: string;
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* The key's effective consumption (CU) cap for the period (per-key override, else
|
|
292
|
+
* the team-wide default). Absent when the key is uncapped.
|
|
293
|
+
*/
|
|
294
|
+
maxConsumption?: number;
|
|
295
|
+
|
|
296
|
+
/**
|
|
297
|
+
* For a PROJECT key: the project it was created on (the team id on some legacy
|
|
298
|
+
* keys). Absent for team keys.
|
|
299
|
+
*/
|
|
300
|
+
ownerId?: string;
|
|
301
|
+
|
|
302
|
+
/**
|
|
303
|
+
* For a PROJECT key: the projects it has access to and its role on each. Empty
|
|
304
|
+
* when the key is currently not a member of any (live) project. Absent for team
|
|
305
|
+
* keys.
|
|
306
|
+
*/
|
|
307
|
+
projects?: Array<Key.Project>;
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
export namespace Key {
|
|
311
|
+
/**
|
|
312
|
+
* A project a `project`-scoped API key has access to, with its role on that
|
|
313
|
+
* project. A key can be granted roles on several projects, potentially with
|
|
314
|
+
* different roles — one entry per project.
|
|
315
|
+
*/
|
|
316
|
+
export interface Project {
|
|
317
|
+
/**
|
|
318
|
+
* The project the key has a role on
|
|
319
|
+
*/
|
|
320
|
+
projectId: string;
|
|
321
|
+
|
|
322
|
+
/**
|
|
323
|
+
* The key's role on this project: a built-in role (`admin`/`editor`/`reader`) or a
|
|
324
|
+
* custom `;`-separated scope list (example: `"asset.read;model.read"`).
|
|
325
|
+
*/
|
|
326
|
+
role: string;
|
|
327
|
+
}
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
export interface User {
|
|
331
|
+
/**
|
|
332
|
+
* The user ID (example: "eyVcnFJcR92BxBkz7N6g5w")
|
|
333
|
+
*/
|
|
334
|
+
id: string;
|
|
335
|
+
|
|
336
|
+
/**
|
|
337
|
+
* The user creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
338
|
+
*/
|
|
339
|
+
createdAt: string;
|
|
340
|
+
|
|
341
|
+
/**
|
|
342
|
+
* The user email (example: "herve@scenario.com")
|
|
343
|
+
*/
|
|
344
|
+
email: string;
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* A project role value. Accepted values are:
|
|
348
|
+
*
|
|
349
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
350
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
351
|
+
* `"assets.write;workflows.run"`.
|
|
352
|
+
*
|
|
353
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
354
|
+
*/
|
|
355
|
+
role: string;
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* The user last update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
359
|
+
*/
|
|
360
|
+
updatedAt: string;
|
|
361
|
+
|
|
362
|
+
/**
|
|
363
|
+
* The user's avatar
|
|
364
|
+
*/
|
|
365
|
+
avatar?: User.Avatar;
|
|
366
|
+
|
|
367
|
+
/**
|
|
368
|
+
* Consumption (CU) used by this member over the current billing period.
|
|
369
|
+
*/
|
|
370
|
+
consumption?: number;
|
|
371
|
+
|
|
372
|
+
/**
|
|
373
|
+
* The member's effective consumption (CU) cap for the period (per-user override,
|
|
374
|
+
* else the team-wide default). Absent when the member is uncapped.
|
|
375
|
+
*/
|
|
376
|
+
maxConsumption?: number;
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
export namespace User {
|
|
380
|
+
/**
|
|
381
|
+
* The user's avatar
|
|
382
|
+
*/
|
|
383
|
+
export interface Avatar {
|
|
384
|
+
/**
|
|
385
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
386
|
+
*/
|
|
387
|
+
assetId?: string;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
391
|
+
*/
|
|
392
|
+
url?: string;
|
|
393
|
+
}
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
/**
|
|
397
|
+
* The project's avatar
|
|
398
|
+
*/
|
|
399
|
+
export interface Avatar {
|
|
400
|
+
/**
|
|
401
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
402
|
+
*/
|
|
403
|
+
assetId?: string;
|
|
404
|
+
|
|
405
|
+
/**
|
|
406
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
407
|
+
*/
|
|
408
|
+
url?: string;
|
|
409
|
+
}
|
|
410
|
+
|
|
411
|
+
/**
|
|
412
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
413
|
+
* the projects list.
|
|
414
|
+
*/
|
|
415
|
+
export interface Settings {
|
|
416
|
+
/**
|
|
417
|
+
* Published homepage layout.
|
|
418
|
+
*/
|
|
419
|
+
homepage?: { [key: string]: unknown };
|
|
420
|
+
}
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
export interface ProjectRetrieveResponse {
|
|
425
|
+
project: ProjectRetrieveResponse.Project;
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
export namespace ProjectRetrieveResponse {
|
|
429
|
+
export interface Project {
|
|
430
|
+
/**
|
|
431
|
+
* The project ID (example: "project_eyVcnFJcR92BxBkz7N6g5w")
|
|
432
|
+
*/
|
|
433
|
+
id: string;
|
|
434
|
+
|
|
435
|
+
createdAt: string;
|
|
436
|
+
|
|
437
|
+
/**
|
|
438
|
+
* The keys of the project (get from the ProjectRoles table)
|
|
439
|
+
*/
|
|
440
|
+
keys: Array<Project.Key>;
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* The project name (example: "Default Project")
|
|
444
|
+
*/
|
|
445
|
+
name: string;
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Whether the project is privacyMode In a privacyMode project, users can only see
|
|
449
|
+
* their own generated assets (except admins)
|
|
450
|
+
*/
|
|
451
|
+
privacyMode: boolean;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* The team ID (example: "team_eyVcnFJcR92BxBkz7N6g5w")
|
|
455
|
+
*/
|
|
456
|
+
teamId: string;
|
|
457
|
+
|
|
458
|
+
updatedAt: string;
|
|
459
|
+
|
|
460
|
+
/**
|
|
461
|
+
* The users of the project (get from the ProjectRoles table)
|
|
462
|
+
*/
|
|
463
|
+
users: Array<Project.User>;
|
|
464
|
+
|
|
465
|
+
/**
|
|
466
|
+
* The project's avatar
|
|
467
|
+
*/
|
|
468
|
+
avatar?: Project.Avatar;
|
|
469
|
+
|
|
470
|
+
/**
|
|
471
|
+
* Consumption (CU) used by this project over the current billing period.
|
|
472
|
+
*/
|
|
473
|
+
consumption?: number;
|
|
474
|
+
|
|
475
|
+
/**
|
|
476
|
+
* High-level markdown description of the project Only returned on single project
|
|
477
|
+
* GET, not on list
|
|
478
|
+
*/
|
|
479
|
+
description?: string;
|
|
480
|
+
|
|
481
|
+
/**
|
|
482
|
+
* ISO string date when the description was last updated Only returned on single
|
|
483
|
+
* project GET, not on list
|
|
484
|
+
*/
|
|
485
|
+
descriptionDate?: string;
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* When true, IP detection is switched off for this project even if the team has an
|
|
489
|
+
* active posture. Absent means the team posture applies. The posture itself
|
|
490
|
+
* (disabled / active-fail-open / active-fail-closed) is a team-level setting, see
|
|
491
|
+
* the team's ipDetectionEnforcement.
|
|
492
|
+
*/
|
|
493
|
+
disableIpDetection?: boolean;
|
|
494
|
+
|
|
495
|
+
/**
|
|
496
|
+
* The project's consumption (CU) cap for the period. Absent when uncapped.
|
|
497
|
+
*/
|
|
498
|
+
maxConsumption?: number;
|
|
499
|
+
|
|
500
|
+
/**
|
|
501
|
+
* Whether Quality Gate auto-detection runs on generation for this project.
|
|
502
|
+
*/
|
|
503
|
+
qualityGateAutoDetect?: boolean;
|
|
504
|
+
|
|
505
|
+
/**
|
|
506
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
507
|
+
* the projects list.
|
|
508
|
+
*/
|
|
509
|
+
settings?: Project.Settings;
|
|
510
|
+
}
|
|
511
|
+
|
|
512
|
+
export namespace Project {
|
|
513
|
+
export interface Key {
|
|
514
|
+
/**
|
|
515
|
+
* The key's member id (its API user id, `apiu_...`), taken by the member and usage
|
|
516
|
+
* routes (example: "apiu_eyVcnFJcR92BxBkz7N6g5w")
|
|
517
|
+
*/
|
|
518
|
+
id: string;
|
|
519
|
+
|
|
520
|
+
/**
|
|
521
|
+
* The API key id (`api_...`), taken by the api-keys routes (example:
|
|
522
|
+
* "api_eyVcnFJcR92BxBkz7N6g5w")
|
|
523
|
+
*/
|
|
524
|
+
apiKeyId: string;
|
|
525
|
+
|
|
526
|
+
/**
|
|
527
|
+
* The status of the API key
|
|
528
|
+
*/
|
|
529
|
+
apiKeyStatus: 'active' | 'inactive';
|
|
530
|
+
|
|
531
|
+
/**
|
|
532
|
+
* The API key creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
533
|
+
*/
|
|
534
|
+
createdAt: string;
|
|
535
|
+
|
|
536
|
+
/**
|
|
537
|
+
* The API key name (example: "eurv-scenario")
|
|
538
|
+
*/
|
|
539
|
+
name: string;
|
|
540
|
+
|
|
541
|
+
/**
|
|
542
|
+
* A project role value. Accepted values are:
|
|
543
|
+
*
|
|
544
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
545
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
546
|
+
* `"assets.write;workflows.run"`.
|
|
547
|
+
*
|
|
548
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
549
|
+
*/
|
|
550
|
+
role: string;
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* The scope of the API key: 'project' for project-scoped keys, 'team' for
|
|
554
|
+
* team-scoped keys
|
|
555
|
+
*/
|
|
556
|
+
scope: 'project' | 'team';
|
|
557
|
+
|
|
558
|
+
/**
|
|
559
|
+
* The API key last update date as an ISO string (example:
|
|
560
|
+
* "2023-02-03T11:19:41.579Z")
|
|
561
|
+
*/
|
|
562
|
+
updatedAt: string;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* The member who created the key: a human, or the member id (`apiu_...`) of the
|
|
566
|
+
* team API key that created it.
|
|
567
|
+
*/
|
|
568
|
+
authorId?: string;
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Consumption (CU) used by this key over the current billing period.
|
|
572
|
+
*/
|
|
573
|
+
consumption?: number;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* The date the API key was last used to authenticate a request, as an ISO string
|
|
577
|
+
* (example: "2023-02-03T11:19:41.579Z"). Absent if the key has never been used.
|
|
578
|
+
*/
|
|
579
|
+
lastUsedAt?: string;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* The key's effective consumption (CU) cap for the period (per-key override, else
|
|
583
|
+
* the team-wide default). Absent when the key is uncapped.
|
|
584
|
+
*/
|
|
585
|
+
maxConsumption?: number;
|
|
586
|
+
|
|
587
|
+
/**
|
|
588
|
+
* For a PROJECT key: the project it was created on (the team id on some legacy
|
|
589
|
+
* keys). Absent for team keys.
|
|
590
|
+
*/
|
|
591
|
+
ownerId?: string;
|
|
592
|
+
|
|
593
|
+
/**
|
|
594
|
+
* For a PROJECT key: the projects it has access to and its role on each. Empty
|
|
595
|
+
* when the key is currently not a member of any (live) project. Absent for team
|
|
596
|
+
* keys.
|
|
597
|
+
*/
|
|
598
|
+
projects?: Array<Key.Project>;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export namespace Key {
|
|
602
|
+
/**
|
|
603
|
+
* A project a `project`-scoped API key has access to, with its role on that
|
|
604
|
+
* project. A key can be granted roles on several projects, potentially with
|
|
605
|
+
* different roles — one entry per project.
|
|
606
|
+
*/
|
|
607
|
+
export interface Project {
|
|
608
|
+
/**
|
|
609
|
+
* The project the key has a role on
|
|
610
|
+
*/
|
|
611
|
+
projectId: string;
|
|
612
|
+
|
|
613
|
+
/**
|
|
614
|
+
* The key's role on this project: a built-in role (`admin`/`editor`/`reader`) or a
|
|
615
|
+
* custom `;`-separated scope list (example: `"asset.read;model.read"`).
|
|
616
|
+
*/
|
|
617
|
+
role: string;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
export interface User {
|
|
622
|
+
/**
|
|
623
|
+
* The user ID (example: "eyVcnFJcR92BxBkz7N6g5w")
|
|
624
|
+
*/
|
|
625
|
+
id: string;
|
|
626
|
+
|
|
627
|
+
/**
|
|
628
|
+
* The user creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
629
|
+
*/
|
|
630
|
+
createdAt: string;
|
|
631
|
+
|
|
632
|
+
/**
|
|
633
|
+
* The user email (example: "herve@scenario.com")
|
|
634
|
+
*/
|
|
635
|
+
email: string;
|
|
636
|
+
|
|
637
|
+
/**
|
|
638
|
+
* A project role value. Accepted values are:
|
|
639
|
+
*
|
|
640
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
641
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
642
|
+
* `"assets.write;workflows.run"`.
|
|
643
|
+
*
|
|
644
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
645
|
+
*/
|
|
646
|
+
role: string;
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* The user last update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
650
|
+
*/
|
|
651
|
+
updatedAt: string;
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* The user's avatar
|
|
655
|
+
*/
|
|
656
|
+
avatar?: User.Avatar;
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* Consumption (CU) used by this member over the current billing period.
|
|
660
|
+
*/
|
|
661
|
+
consumption?: number;
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* The member's effective consumption (CU) cap for the period (per-user override,
|
|
665
|
+
* else the team-wide default). Absent when the member is uncapped.
|
|
666
|
+
*/
|
|
667
|
+
maxConsumption?: number;
|
|
668
|
+
}
|
|
669
|
+
|
|
670
|
+
export namespace User {
|
|
671
|
+
/**
|
|
672
|
+
* The user's avatar
|
|
673
|
+
*/
|
|
674
|
+
export interface Avatar {
|
|
675
|
+
/**
|
|
676
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
677
|
+
*/
|
|
678
|
+
assetId?: string;
|
|
679
|
+
|
|
680
|
+
/**
|
|
681
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
682
|
+
*/
|
|
683
|
+
url?: string;
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* The project's avatar
|
|
689
|
+
*/
|
|
690
|
+
export interface Avatar {
|
|
691
|
+
/**
|
|
692
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
693
|
+
*/
|
|
694
|
+
assetId?: string;
|
|
695
|
+
|
|
696
|
+
/**
|
|
697
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
698
|
+
*/
|
|
699
|
+
url?: string;
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
704
|
+
* the projects list.
|
|
705
|
+
*/
|
|
706
|
+
export interface Settings {
|
|
707
|
+
/**
|
|
708
|
+
* Published homepage layout.
|
|
709
|
+
*/
|
|
710
|
+
homepage?: { [key: string]: unknown };
|
|
711
|
+
}
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
|
|
715
|
+
export interface ProjectUpdateResponse {
|
|
716
|
+
project: ProjectUpdateResponse.Project;
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
export namespace ProjectUpdateResponse {
|
|
720
|
+
export interface Project {
|
|
721
|
+
/**
|
|
722
|
+
* The project ID (example: "project_eyVcnFJcR92BxBkz7N6g5w")
|
|
723
|
+
*/
|
|
724
|
+
id: string;
|
|
725
|
+
|
|
726
|
+
createdAt: string;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* The keys of the project (get from the ProjectRoles table)
|
|
730
|
+
*/
|
|
731
|
+
keys: Array<Project.Key>;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* The project name (example: "Default Project")
|
|
735
|
+
*/
|
|
736
|
+
name: string;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* Whether the project is privacyMode In a privacyMode project, users can only see
|
|
740
|
+
* their own generated assets (except admins)
|
|
741
|
+
*/
|
|
742
|
+
privacyMode: boolean;
|
|
743
|
+
|
|
744
|
+
/**
|
|
745
|
+
* The team ID (example: "team_eyVcnFJcR92BxBkz7N6g5w")
|
|
746
|
+
*/
|
|
747
|
+
teamId: string;
|
|
748
|
+
|
|
749
|
+
updatedAt: string;
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* The users of the project (get from the ProjectRoles table)
|
|
753
|
+
*/
|
|
754
|
+
users: Array<Project.User>;
|
|
755
|
+
|
|
756
|
+
/**
|
|
757
|
+
* The project's avatar
|
|
758
|
+
*/
|
|
759
|
+
avatar?: Project.Avatar;
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* Consumption (CU) used by this project over the current billing period.
|
|
763
|
+
*/
|
|
764
|
+
consumption?: number;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* High-level markdown description of the project Only returned on single project
|
|
768
|
+
* GET, not on list
|
|
769
|
+
*/
|
|
770
|
+
description?: string;
|
|
771
|
+
|
|
772
|
+
/**
|
|
773
|
+
* ISO string date when the description was last updated Only returned on single
|
|
774
|
+
* project GET, not on list
|
|
775
|
+
*/
|
|
776
|
+
descriptionDate?: string;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* When true, IP detection is switched off for this project even if the team has an
|
|
780
|
+
* active posture. Absent means the team posture applies. The posture itself
|
|
781
|
+
* (disabled / active-fail-open / active-fail-closed) is a team-level setting, see
|
|
782
|
+
* the team's ipDetectionEnforcement.
|
|
783
|
+
*/
|
|
784
|
+
disableIpDetection?: boolean;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The project's consumption (CU) cap for the period. Absent when uncapped.
|
|
788
|
+
*/
|
|
789
|
+
maxConsumption?: number;
|
|
790
|
+
|
|
791
|
+
/**
|
|
792
|
+
* Whether Quality Gate auto-detection runs on generation for this project.
|
|
793
|
+
*/
|
|
794
|
+
qualityGateAutoDetect?: boolean;
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
798
|
+
* the projects list.
|
|
799
|
+
*/
|
|
800
|
+
settings?: Project.Settings;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
export namespace Project {
|
|
804
|
+
export interface Key {
|
|
805
|
+
/**
|
|
806
|
+
* The key's member id (its API user id, `apiu_...`), taken by the member and usage
|
|
807
|
+
* routes (example: "apiu_eyVcnFJcR92BxBkz7N6g5w")
|
|
808
|
+
*/
|
|
809
|
+
id: string;
|
|
810
|
+
|
|
811
|
+
/**
|
|
812
|
+
* The API key id (`api_...`), taken by the api-keys routes (example:
|
|
813
|
+
* "api_eyVcnFJcR92BxBkz7N6g5w")
|
|
814
|
+
*/
|
|
815
|
+
apiKeyId: string;
|
|
816
|
+
|
|
817
|
+
/**
|
|
818
|
+
* The status of the API key
|
|
819
|
+
*/
|
|
820
|
+
apiKeyStatus: 'active' | 'inactive';
|
|
821
|
+
|
|
822
|
+
/**
|
|
823
|
+
* The API key creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
824
|
+
*/
|
|
825
|
+
createdAt: string;
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* The API key name (example: "eurv-scenario")
|
|
829
|
+
*/
|
|
830
|
+
name: string;
|
|
831
|
+
|
|
832
|
+
/**
|
|
833
|
+
* A project role value. Accepted values are:
|
|
834
|
+
*
|
|
835
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
836
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
837
|
+
* `"assets.write;workflows.run"`.
|
|
838
|
+
*
|
|
839
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
840
|
+
*/
|
|
841
|
+
role: string;
|
|
842
|
+
|
|
843
|
+
/**
|
|
844
|
+
* The scope of the API key: 'project' for project-scoped keys, 'team' for
|
|
845
|
+
* team-scoped keys
|
|
846
|
+
*/
|
|
847
|
+
scope: 'project' | 'team';
|
|
848
|
+
|
|
849
|
+
/**
|
|
850
|
+
* The API key last update date as an ISO string (example:
|
|
851
|
+
* "2023-02-03T11:19:41.579Z")
|
|
852
|
+
*/
|
|
853
|
+
updatedAt: string;
|
|
854
|
+
|
|
855
|
+
/**
|
|
856
|
+
* The member who created the key: a human, or the member id (`apiu_...`) of the
|
|
857
|
+
* team API key that created it.
|
|
858
|
+
*/
|
|
859
|
+
authorId?: string;
|
|
860
|
+
|
|
861
|
+
/**
|
|
862
|
+
* Consumption (CU) used by this key over the current billing period.
|
|
863
|
+
*/
|
|
864
|
+
consumption?: number;
|
|
865
|
+
|
|
866
|
+
/**
|
|
867
|
+
* The date the API key was last used to authenticate a request, as an ISO string
|
|
868
|
+
* (example: "2023-02-03T11:19:41.579Z"). Absent if the key has never been used.
|
|
869
|
+
*/
|
|
870
|
+
lastUsedAt?: string;
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* The key's effective consumption (CU) cap for the period (per-key override, else
|
|
874
|
+
* the team-wide default). Absent when the key is uncapped.
|
|
875
|
+
*/
|
|
876
|
+
maxConsumption?: number;
|
|
877
|
+
|
|
878
|
+
/**
|
|
879
|
+
* For a PROJECT key: the project it was created on (the team id on some legacy
|
|
880
|
+
* keys). Absent for team keys.
|
|
881
|
+
*/
|
|
882
|
+
ownerId?: string;
|
|
883
|
+
|
|
884
|
+
/**
|
|
885
|
+
* For a PROJECT key: the projects it has access to and its role on each. Empty
|
|
886
|
+
* when the key is currently not a member of any (live) project. Absent for team
|
|
887
|
+
* keys.
|
|
888
|
+
*/
|
|
889
|
+
projects?: Array<Key.Project>;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
export namespace Key {
|
|
893
|
+
/**
|
|
894
|
+
* A project a `project`-scoped API key has access to, with its role on that
|
|
895
|
+
* project. A key can be granted roles on several projects, potentially with
|
|
896
|
+
* different roles — one entry per project.
|
|
897
|
+
*/
|
|
898
|
+
export interface Project {
|
|
899
|
+
/**
|
|
900
|
+
* The project the key has a role on
|
|
901
|
+
*/
|
|
902
|
+
projectId: string;
|
|
903
|
+
|
|
904
|
+
/**
|
|
905
|
+
* The key's role on this project: a built-in role (`admin`/`editor`/`reader`) or a
|
|
906
|
+
* custom `;`-separated scope list (example: `"asset.read;model.read"`).
|
|
907
|
+
*/
|
|
908
|
+
role: string;
|
|
909
|
+
}
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
export interface User {
|
|
913
|
+
/**
|
|
914
|
+
* The user ID (example: "eyVcnFJcR92BxBkz7N6g5w")
|
|
915
|
+
*/
|
|
916
|
+
id: string;
|
|
917
|
+
|
|
918
|
+
/**
|
|
919
|
+
* The user creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
920
|
+
*/
|
|
921
|
+
createdAt: string;
|
|
922
|
+
|
|
923
|
+
/**
|
|
924
|
+
* The user email (example: "herve@scenario.com")
|
|
925
|
+
*/
|
|
926
|
+
email: string;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* A project role value. Accepted values are:
|
|
930
|
+
*
|
|
931
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
932
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
933
|
+
* `"assets.write;workflows.run"`.
|
|
934
|
+
*
|
|
935
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
936
|
+
*/
|
|
937
|
+
role: string;
|
|
938
|
+
|
|
939
|
+
/**
|
|
940
|
+
* The user last update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
941
|
+
*/
|
|
942
|
+
updatedAt: string;
|
|
943
|
+
|
|
944
|
+
/**
|
|
945
|
+
* The user's avatar
|
|
946
|
+
*/
|
|
947
|
+
avatar?: User.Avatar;
|
|
948
|
+
|
|
949
|
+
/**
|
|
950
|
+
* Consumption (CU) used by this member over the current billing period.
|
|
951
|
+
*/
|
|
952
|
+
consumption?: number;
|
|
953
|
+
|
|
954
|
+
/**
|
|
955
|
+
* The member's effective consumption (CU) cap for the period (per-user override,
|
|
956
|
+
* else the team-wide default). Absent when the member is uncapped.
|
|
957
|
+
*/
|
|
958
|
+
maxConsumption?: number;
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
export namespace User {
|
|
962
|
+
/**
|
|
963
|
+
* The user's avatar
|
|
964
|
+
*/
|
|
965
|
+
export interface Avatar {
|
|
966
|
+
/**
|
|
967
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
968
|
+
*/
|
|
969
|
+
assetId?: string;
|
|
970
|
+
|
|
971
|
+
/**
|
|
972
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
973
|
+
*/
|
|
974
|
+
url?: string;
|
|
975
|
+
}
|
|
976
|
+
}
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* The project's avatar
|
|
980
|
+
*/
|
|
981
|
+
export interface Avatar {
|
|
982
|
+
/**
|
|
983
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
984
|
+
*/
|
|
985
|
+
assetId?: string;
|
|
986
|
+
|
|
987
|
+
/**
|
|
988
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
989
|
+
*/
|
|
990
|
+
url?: string;
|
|
991
|
+
}
|
|
992
|
+
|
|
993
|
+
/**
|
|
994
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
995
|
+
* the projects list.
|
|
996
|
+
*/
|
|
997
|
+
export interface Settings {
|
|
998
|
+
/**
|
|
999
|
+
* Published homepage layout.
|
|
1000
|
+
*/
|
|
1001
|
+
homepage?: { [key: string]: unknown };
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
export interface ProjectListResponse {
|
|
1007
|
+
/**
|
|
1008
|
+
* The project ID (example: "project_eyVcnFJcR92BxBkz7N6g5w")
|
|
1009
|
+
*/
|
|
1010
|
+
id: string;
|
|
1011
|
+
|
|
1012
|
+
createdAt: string;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* The keys of the project (get from the ProjectRoles table)
|
|
1016
|
+
*/
|
|
1017
|
+
keys: Array<ProjectListResponse.Key>;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* The project name (example: "Default Project")
|
|
1021
|
+
*/
|
|
1022
|
+
name: string;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* Whether the project is privacyMode In a privacyMode project, users can only see
|
|
1026
|
+
* their own generated assets (except admins)
|
|
1027
|
+
*/
|
|
1028
|
+
privacyMode: boolean;
|
|
1029
|
+
|
|
1030
|
+
/**
|
|
1031
|
+
* The team ID (example: "team_eyVcnFJcR92BxBkz7N6g5w")
|
|
1032
|
+
*/
|
|
1033
|
+
teamId: string;
|
|
1034
|
+
|
|
1035
|
+
updatedAt: string;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* The users of the project (get from the ProjectRoles table)
|
|
1039
|
+
*/
|
|
1040
|
+
users: Array<ProjectListResponse.User>;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* The project's avatar
|
|
1044
|
+
*/
|
|
1045
|
+
avatar?: ProjectListResponse.Avatar;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* Consumption (CU) used by this project over the current billing period.
|
|
1049
|
+
*/
|
|
1050
|
+
consumption?: number;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* High-level markdown description of the project Only returned on single project
|
|
1054
|
+
* GET, not on list
|
|
1055
|
+
*/
|
|
1056
|
+
description?: string;
|
|
1057
|
+
|
|
1058
|
+
/**
|
|
1059
|
+
* ISO string date when the description was last updated Only returned on single
|
|
1060
|
+
* project GET, not on list
|
|
1061
|
+
*/
|
|
1062
|
+
descriptionDate?: string;
|
|
1063
|
+
|
|
1064
|
+
/**
|
|
1065
|
+
* When true, IP detection is switched off for this project even if the team has an
|
|
1066
|
+
* active posture. Absent means the team posture applies. The posture itself
|
|
1067
|
+
* (disabled / active-fail-open / active-fail-closed) is a team-level setting, see
|
|
1068
|
+
* the team's ipDetectionEnforcement.
|
|
1069
|
+
*/
|
|
1070
|
+
disableIpDetection?: boolean;
|
|
1071
|
+
|
|
1072
|
+
/**
|
|
1073
|
+
* The project's consumption (CU) cap for the period. Absent when uncapped.
|
|
1074
|
+
*/
|
|
1075
|
+
maxConsumption?: number;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Whether Quality Gate auto-detection runs on generation for this project.
|
|
1079
|
+
*/
|
|
1080
|
+
qualityGateAutoDetect?: boolean;
|
|
1081
|
+
|
|
1082
|
+
/**
|
|
1083
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
1084
|
+
* the projects list.
|
|
1085
|
+
*/
|
|
1086
|
+
settings?: ProjectListResponse.Settings;
|
|
1087
|
+
}
|
|
1088
|
+
|
|
1089
|
+
export namespace ProjectListResponse {
|
|
1090
|
+
export interface Key {
|
|
1091
|
+
/**
|
|
1092
|
+
* The key's member id (its API user id, `apiu_...`), taken by the member and usage
|
|
1093
|
+
* routes (example: "apiu_eyVcnFJcR92BxBkz7N6g5w")
|
|
1094
|
+
*/
|
|
1095
|
+
id: string;
|
|
1096
|
+
|
|
1097
|
+
/**
|
|
1098
|
+
* The API key id (`api_...`), taken by the api-keys routes (example:
|
|
1099
|
+
* "api_eyVcnFJcR92BxBkz7N6g5w")
|
|
1100
|
+
*/
|
|
1101
|
+
apiKeyId: string;
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* The status of the API key
|
|
1105
|
+
*/
|
|
1106
|
+
apiKeyStatus: 'active' | 'inactive';
|
|
1107
|
+
|
|
1108
|
+
/**
|
|
1109
|
+
* The API key creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
1110
|
+
*/
|
|
1111
|
+
createdAt: string;
|
|
1112
|
+
|
|
1113
|
+
/**
|
|
1114
|
+
* The API key name (example: "eurv-scenario")
|
|
1115
|
+
*/
|
|
1116
|
+
name: string;
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* A project role value. Accepted values are:
|
|
1120
|
+
*
|
|
1121
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
1122
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
1123
|
+
* `"assets.write;workflows.run"`.
|
|
1124
|
+
*
|
|
1125
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
1126
|
+
*/
|
|
1127
|
+
role: string;
|
|
1128
|
+
|
|
1129
|
+
/**
|
|
1130
|
+
* The scope of the API key: 'project' for project-scoped keys, 'team' for
|
|
1131
|
+
* team-scoped keys
|
|
1132
|
+
*/
|
|
1133
|
+
scope: 'project' | 'team';
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* The API key last update date as an ISO string (example:
|
|
1137
|
+
* "2023-02-03T11:19:41.579Z")
|
|
1138
|
+
*/
|
|
1139
|
+
updatedAt: string;
|
|
1140
|
+
|
|
1141
|
+
/**
|
|
1142
|
+
* The member who created the key: a human, or the member id (`apiu_...`) of the
|
|
1143
|
+
* team API key that created it.
|
|
1144
|
+
*/
|
|
1145
|
+
authorId?: string;
|
|
1146
|
+
|
|
1147
|
+
/**
|
|
1148
|
+
* Consumption (CU) used by this key over the current billing period.
|
|
1149
|
+
*/
|
|
1150
|
+
consumption?: number;
|
|
1151
|
+
|
|
1152
|
+
/**
|
|
1153
|
+
* The date the API key was last used to authenticate a request, as an ISO string
|
|
1154
|
+
* (example: "2023-02-03T11:19:41.579Z"). Absent if the key has never been used.
|
|
1155
|
+
*/
|
|
1156
|
+
lastUsedAt?: string;
|
|
1157
|
+
|
|
1158
|
+
/**
|
|
1159
|
+
* The key's effective consumption (CU) cap for the period (per-key override, else
|
|
1160
|
+
* the team-wide default). Absent when the key is uncapped.
|
|
1161
|
+
*/
|
|
1162
|
+
maxConsumption?: number;
|
|
1163
|
+
|
|
1164
|
+
/**
|
|
1165
|
+
* For a PROJECT key: the project it was created on (the team id on some legacy
|
|
1166
|
+
* keys). Absent for team keys.
|
|
1167
|
+
*/
|
|
1168
|
+
ownerId?: string;
|
|
1169
|
+
|
|
1170
|
+
/**
|
|
1171
|
+
* For a PROJECT key: the projects it has access to and its role on each. Empty
|
|
1172
|
+
* when the key is currently not a member of any (live) project. Absent for team
|
|
1173
|
+
* keys.
|
|
1174
|
+
*/
|
|
1175
|
+
projects?: Array<Key.Project>;
|
|
1176
|
+
}
|
|
1177
|
+
|
|
1178
|
+
export namespace Key {
|
|
1179
|
+
/**
|
|
1180
|
+
* A project a `project`-scoped API key has access to, with its role on that
|
|
1181
|
+
* project. A key can be granted roles on several projects, potentially with
|
|
1182
|
+
* different roles — one entry per project.
|
|
1183
|
+
*/
|
|
1184
|
+
export interface Project {
|
|
1185
|
+
/**
|
|
1186
|
+
* The project the key has a role on
|
|
1187
|
+
*/
|
|
1188
|
+
projectId: string;
|
|
1189
|
+
|
|
1190
|
+
/**
|
|
1191
|
+
* The key's role on this project: a built-in role (`admin`/`editor`/`reader`) or a
|
|
1192
|
+
* custom `;`-separated scope list (example: `"asset.read;model.read"`).
|
|
1193
|
+
*/
|
|
1194
|
+
role: string;
|
|
1195
|
+
}
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
export interface User {
|
|
1199
|
+
/**
|
|
1200
|
+
* The user ID (example: "eyVcnFJcR92BxBkz7N6g5w")
|
|
1201
|
+
*/
|
|
1202
|
+
id: string;
|
|
1203
|
+
|
|
1204
|
+
/**
|
|
1205
|
+
* The user creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
1206
|
+
*/
|
|
1207
|
+
createdAt: string;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* The user email (example: "herve@scenario.com")
|
|
1211
|
+
*/
|
|
1212
|
+
email: string;
|
|
1213
|
+
|
|
1214
|
+
/**
|
|
1215
|
+
* A project role value. Accepted values are:
|
|
1216
|
+
*
|
|
1217
|
+
* - a built-in role: `"admin"`, `"editor"` or `"reader"` (see `ProjectRoles`);
|
|
1218
|
+
* - a custom inline role: a `;`-separated scope list, e.g.
|
|
1219
|
+
* `"assets.write;workflows.run"`.
|
|
1220
|
+
*
|
|
1221
|
+
* Resolved to capabilities by `ProjectRole.scopesFromRole()`.
|
|
1222
|
+
*/
|
|
1223
|
+
role: string;
|
|
1224
|
+
|
|
1225
|
+
/**
|
|
1226
|
+
* The user last update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
|
|
1227
|
+
*/
|
|
1228
|
+
updatedAt: string;
|
|
1229
|
+
|
|
1230
|
+
/**
|
|
1231
|
+
* The user's avatar
|
|
1232
|
+
*/
|
|
1233
|
+
avatar?: User.Avatar;
|
|
1234
|
+
|
|
1235
|
+
/**
|
|
1236
|
+
* Consumption (CU) used by this member over the current billing period.
|
|
1237
|
+
*/
|
|
1238
|
+
consumption?: number;
|
|
1239
|
+
|
|
1240
|
+
/**
|
|
1241
|
+
* The member's effective consumption (CU) cap for the period (per-user override,
|
|
1242
|
+
* else the team-wide default). Absent when the member is uncapped.
|
|
1243
|
+
*/
|
|
1244
|
+
maxConsumption?: number;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
export namespace User {
|
|
1248
|
+
/**
|
|
1249
|
+
* The user's avatar
|
|
1250
|
+
*/
|
|
1251
|
+
export interface Avatar {
|
|
1252
|
+
/**
|
|
1253
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
1254
|
+
*/
|
|
1255
|
+
assetId?: string;
|
|
1256
|
+
|
|
1257
|
+
/**
|
|
1258
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
1259
|
+
*/
|
|
1260
|
+
url?: string;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
/**
|
|
1265
|
+
* The project's avatar
|
|
1266
|
+
*/
|
|
1267
|
+
export interface Avatar {
|
|
1268
|
+
/**
|
|
1269
|
+
* ID of the asset used as thumbnail if provided, otherwise undefined
|
|
1270
|
+
*/
|
|
1271
|
+
assetId?: string;
|
|
1272
|
+
|
|
1273
|
+
/**
|
|
1274
|
+
* Signed URL of the assetId or free url if assetId is undefined
|
|
1275
|
+
*/
|
|
1276
|
+
url?: string;
|
|
1277
|
+
}
|
|
1278
|
+
|
|
1279
|
+
/**
|
|
1280
|
+
* Project settings. Returned on `GET` and `PUT /projects/{projectId}`, absent from
|
|
1281
|
+
* the projects list.
|
|
1282
|
+
*/
|
|
1283
|
+
export interface Settings {
|
|
1284
|
+
/**
|
|
1285
|
+
* Published homepage layout.
|
|
1286
|
+
*/
|
|
1287
|
+
homepage?: { [key: string]: unknown };
|
|
1288
|
+
}
|
|
1289
|
+
}
|
|
1290
|
+
|
|
1291
|
+
export type ProjectDeleteResponse = unknown;
|
|
1292
|
+
|
|
1293
|
+
export interface ProjectCreateParams {
|
|
1294
|
+
/**
|
|
1295
|
+
* Body param: The name of the project.
|
|
1296
|
+
*/
|
|
1297
|
+
name: string;
|
|
1298
|
+
|
|
1299
|
+
/**
|
|
1300
|
+
* Query param: The teamId used for ownership resource management. Either to assert
|
|
1301
|
+
* ownership or to set the owner of the resource(s)
|
|
1302
|
+
*/
|
|
1303
|
+
teamId?: string;
|
|
1304
|
+
|
|
1305
|
+
/**
|
|
1306
|
+
* Body param: Whether to automatically join the project as admin.
|
|
1307
|
+
*/
|
|
1308
|
+
autoJoin?: boolean;
|
|
1309
|
+
|
|
1310
|
+
/**
|
|
1311
|
+
* Body param: Whether to create the project in privacyMode. Default is false.
|
|
1312
|
+
*/
|
|
1313
|
+
privacyMode?: boolean;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
export interface ProjectUpdateParams {
|
|
1317
|
+
/**
|
|
1318
|
+
* The project's avatar asset ID (must be kind image)
|
|
1319
|
+
*/
|
|
1320
|
+
avatarAssetId?: string;
|
|
1321
|
+
|
|
1322
|
+
/**
|
|
1323
|
+
* High-level markdown description of the project Set to null to clear the
|
|
1324
|
+
* description
|
|
1325
|
+
*/
|
|
1326
|
+
description?: string;
|
|
1327
|
+
|
|
1328
|
+
/**
|
|
1329
|
+
* Switch IP detection off for this project only. The team's posture (see PUT
|
|
1330
|
+
* /teams/{teamId}) applies to every project by default; set this to true to opt
|
|
1331
|
+
* this project out of it, false to opt it back in. A project cannot choose a
|
|
1332
|
+
* posture of its own. Team-admin only.
|
|
1333
|
+
*/
|
|
1334
|
+
disableIpDetection?: boolean;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Max consumption (CU) for this project over the billing period. Set to null to
|
|
1338
|
+
* remove the cap. Team admins only, or a team API key holding
|
|
1339
|
+
* `team.members.manage`, which may then send this field alone.
|
|
1340
|
+
*/
|
|
1341
|
+
maxConsumption?: number;
|
|
1342
|
+
|
|
1343
|
+
/**
|
|
1344
|
+
* The project name (example: "Default Project")
|
|
1345
|
+
*/
|
|
1346
|
+
name?: string;
|
|
1347
|
+
|
|
1348
|
+
/**
|
|
1349
|
+
* Toggle the privacyMode mode When enabled, users can only see their own generated
|
|
1350
|
+
* assets (except admins)
|
|
1351
|
+
*/
|
|
1352
|
+
privacyMode?: boolean;
|
|
1353
|
+
|
|
1354
|
+
/**
|
|
1355
|
+
* Quality Gate auto-detection override for this project (wins over the team
|
|
1356
|
+
* default). Set to null to clear the override.
|
|
1357
|
+
*/
|
|
1358
|
+
qualityGateAutoDetect?: boolean;
|
|
1359
|
+
|
|
1360
|
+
/**
|
|
1361
|
+
* Project settings. Set `homepage` to a layout object to publish it, or to `null`
|
|
1362
|
+
* to unpublish it. Team admins and project admins only.
|
|
1363
|
+
*/
|
|
1364
|
+
settings?: ProjectUpdateParams.Settings;
|
|
1365
|
+
}
|
|
1366
|
+
|
|
1367
|
+
export namespace ProjectUpdateParams {
|
|
1368
|
+
/**
|
|
1369
|
+
* Project settings. Set `homepage` to a layout object to publish it, or to `null`
|
|
1370
|
+
* to unpublish it. Team admins and project admins only.
|
|
1371
|
+
*/
|
|
1372
|
+
export interface Settings {
|
|
1373
|
+
/**
|
|
1374
|
+
* Homepage layout. An object publishes it; `null` unpublishes it.
|
|
1375
|
+
*/
|
|
1376
|
+
homepage?: unknown;
|
|
1377
|
+
}
|
|
1378
|
+
}
|
|
1379
|
+
|
|
1380
|
+
export interface ProjectListParams extends ProjectsCursorParams {
|
|
1381
|
+
/**
|
|
1382
|
+
* The number of items to return in the response. The default value is 10, maximum
|
|
1383
|
+
* value is 100, minimum value is 1
|
|
1384
|
+
*/
|
|
1385
|
+
pageSize?: number;
|
|
1386
|
+
|
|
1387
|
+
/**
|
|
1388
|
+
* The teamId used for ownership resource management. Either to assert ownership or
|
|
1389
|
+
* to set the owner of the resource(s)
|
|
1390
|
+
*/
|
|
1391
|
+
teamId?: string;
|
|
1392
|
+
}
|
|
1393
|
+
|
|
1394
|
+
Projects.APIKeys = APIKeys;
|
|
1395
|
+
Projects.Brief = Brief;
|
|
1396
|
+
Projects.Instructions = Instructions;
|
|
1397
|
+
Projects.Members = Members;
|
|
1398
|
+
Projects.Memory = Memory;
|
|
1399
|
+
Projects.Watermark = Watermark;
|
|
1400
|
+
Projects.WebhookEndpoints = WebhookEndpoints;
|
|
1401
|
+
|
|
1402
|
+
export declare namespace Projects {
|
|
1403
|
+
export {
|
|
1404
|
+
type ProjectCreateResponse as ProjectCreateResponse,
|
|
1405
|
+
type ProjectRetrieveResponse as ProjectRetrieveResponse,
|
|
1406
|
+
type ProjectUpdateResponse as ProjectUpdateResponse,
|
|
1407
|
+
type ProjectListResponse as ProjectListResponse,
|
|
1408
|
+
type ProjectDeleteResponse as ProjectDeleteResponse,
|
|
1409
|
+
type ProjectListResponsesProjectsCursor as ProjectListResponsesProjectsCursor,
|
|
1410
|
+
type ProjectCreateParams as ProjectCreateParams,
|
|
1411
|
+
type ProjectUpdateParams as ProjectUpdateParams,
|
|
1412
|
+
type ProjectListParams as ProjectListParams,
|
|
1413
|
+
};
|
|
1414
|
+
|
|
1415
|
+
export {
|
|
1416
|
+
APIKeys as APIKeys,
|
|
1417
|
+
type APIKeyCreateResponse as APIKeyCreateResponse,
|
|
1418
|
+
type APIKeyDeleteResponse as APIKeyDeleteResponse,
|
|
1419
|
+
type APIKeyCreateParams as APIKeyCreateParams,
|
|
1420
|
+
type APIKeyDeleteParams as APIKeyDeleteParams,
|
|
1421
|
+
};
|
|
1422
|
+
|
|
1423
|
+
export {
|
|
1424
|
+
Brief as Brief,
|
|
1425
|
+
type BriefRetrieveResponse as BriefRetrieveResponse,
|
|
1426
|
+
type BriefUpdateResponse as BriefUpdateResponse,
|
|
1427
|
+
type BriefDeleteResponse as BriefDeleteResponse,
|
|
1428
|
+
type BriefUpdateParams as BriefUpdateParams,
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1431
|
+
export {
|
|
1432
|
+
Instructions as Instructions,
|
|
1433
|
+
type InstructionRetrieveResponse as InstructionRetrieveResponse,
|
|
1434
|
+
type InstructionUpdateResponse as InstructionUpdateResponse,
|
|
1435
|
+
type InstructionUpdateParams as InstructionUpdateParams,
|
|
1436
|
+
};
|
|
1437
|
+
|
|
1438
|
+
export {
|
|
1439
|
+
Members as Members,
|
|
1440
|
+
type MemberCreateResponse as MemberCreateResponse,
|
|
1441
|
+
type MemberUpdateResponse as MemberUpdateResponse,
|
|
1442
|
+
type MemberDeleteResponse as MemberDeleteResponse,
|
|
1443
|
+
type MemberCreateParams as MemberCreateParams,
|
|
1444
|
+
type MemberUpdateParams as MemberUpdateParams,
|
|
1445
|
+
type MemberDeleteParams as MemberDeleteParams,
|
|
1446
|
+
};
|
|
1447
|
+
|
|
1448
|
+
export {
|
|
1449
|
+
Memory as Memory,
|
|
1450
|
+
type MemoryRetrieveResponse as MemoryRetrieveResponse,
|
|
1451
|
+
type MemoryUpdateResponse as MemoryUpdateResponse,
|
|
1452
|
+
type MemoryUpdateParams as MemoryUpdateParams,
|
|
1453
|
+
};
|
|
1454
|
+
|
|
1455
|
+
export {
|
|
1456
|
+
Watermark as Watermark,
|
|
1457
|
+
type WatermarkRetrieveResponse as WatermarkRetrieveResponse,
|
|
1458
|
+
type WatermarkUpdateResponse as WatermarkUpdateResponse,
|
|
1459
|
+
type WatermarkDeleteResponse as WatermarkDeleteResponse,
|
|
1460
|
+
type WatermarkDeleteLogoResponse as WatermarkDeleteLogoResponse,
|
|
1461
|
+
type WatermarkPreviewResponse as WatermarkPreviewResponse,
|
|
1462
|
+
type WatermarkUpdateLogoResponse as WatermarkUpdateLogoResponse,
|
|
1463
|
+
type WatermarkUpdateParams as WatermarkUpdateParams,
|
|
1464
|
+
type WatermarkPreviewParams as WatermarkPreviewParams,
|
|
1465
|
+
type WatermarkUpdateLogoParams as WatermarkUpdateLogoParams,
|
|
1466
|
+
};
|
|
1467
|
+
|
|
1468
|
+
export {
|
|
1469
|
+
WebhookEndpoints as WebhookEndpoints,
|
|
1470
|
+
type WebhookEndpointCreateResponse as WebhookEndpointCreateResponse,
|
|
1471
|
+
type WebhookEndpointUpdateResponse as WebhookEndpointUpdateResponse,
|
|
1472
|
+
type WebhookEndpointListResponse as WebhookEndpointListResponse,
|
|
1473
|
+
type WebhookEndpointDeleteResponse as WebhookEndpointDeleteResponse,
|
|
1474
|
+
type WebhookEndpointCreateParams as WebhookEndpointCreateParams,
|
|
1475
|
+
type WebhookEndpointUpdateParams as WebhookEndpointUpdateParams,
|
|
1476
|
+
type WebhookEndpointDeleteParams as WebhookEndpointDeleteParams,
|
|
1477
|
+
};
|
|
1478
|
+
}
|