@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 @@
|
|
|
1
|
+
{"version":3,"file":"presets.d.ts","sourceRoot":"","sources":["../../src/resources/models/presets.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAIhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IASnC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,kBAAkB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IASnC;;OAEG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,gBAAgB,GAAG,IAAI,GAAG,SAAc,EAC/C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,kBAAkB,CAAC;IAOjC;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAOpG;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,oBAAoB,CAAC,MAAM,CAAC;CACrC;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,MAAM;QACrB;;WAEG;QACH,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B,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.Presets = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
const values_1 = require("../../internal/utils/values.js");
|
|
8
|
+
class Presets extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Create a new preset for the given `modelId`
|
|
11
|
+
*/
|
|
12
|
+
create(modelID, params, options) {
|
|
13
|
+
const { originalAssets, projectId, ...body } = params;
|
|
14
|
+
return this._client.post((0, path_1.path) `/models/${modelID}/presets`, {
|
|
15
|
+
body,
|
|
16
|
+
...options,
|
|
17
|
+
query: { originalAssets, projectId, ...(0, values_1.omitUndefined)(options?.query) },
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Modify the given `presetId`
|
|
22
|
+
*/
|
|
23
|
+
update(presetID, params, options) {
|
|
24
|
+
const { modelId, originalAssets, projectId, ...body } = params;
|
|
25
|
+
return this._client.put((0, path_1.path) `/models/${modelId}/presets/${presetID}`, {
|
|
26
|
+
body,
|
|
27
|
+
...options,
|
|
28
|
+
query: { originalAssets, projectId, ...(0, values_1.omitUndefined)(options?.query) },
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* List all presets for the given `modelId`
|
|
33
|
+
*/
|
|
34
|
+
list(modelID, query = {}, options) {
|
|
35
|
+
return this._client.get((0, path_1.path) `/models/${modelID}/presets`, {
|
|
36
|
+
...options,
|
|
37
|
+
query: { ...query, ...(0, values_1.omitUndefined)(options?.query) },
|
|
38
|
+
});
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* Delete a preset for the given `modelId`
|
|
42
|
+
*/
|
|
43
|
+
delete(presetID, params, options) {
|
|
44
|
+
const { modelId, projectId } = params;
|
|
45
|
+
return this._client.delete((0, path_1.path) `/models/${modelId}/presets/${presetID}`, {
|
|
46
|
+
...options,
|
|
47
|
+
query: { projectId, ...(0, values_1.omitUndefined)(options?.query) },
|
|
48
|
+
});
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.Presets = Presets;
|
|
52
|
+
//# sourceMappingURL=presets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.js","sourceRoot":"","sources":["../../src/resources/models/presets.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AACjD,2DAA4D;AAE5D,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,UAAU,EAAE;YACzD,IAAI;YACJ,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAA,sBAAa,EAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACvE,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA0B,EAC1B,OAAwB;QAExB,MAAM,EAAE,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC/D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,YAAY,QAAQ,EAAE,EAAE;YACpE,IAAI;YACJ,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,cAAc,EAAE,SAAS,EAAE,GAAG,IAAA,sBAAa,EAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACvE,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CACF,OAAe,EACf,QAA6C,EAAE,EAC/C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,UAAU,EAAE;YACxD,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,IAAA,sBAAa,EAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACtD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,QAAgB,EAAE,MAA0B,EAAE,OAAwB;QAC3E,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,YAAY,QAAQ,EAAE,EAAE;YACvE,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,IAAA,sBAAa,EAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACvD,CAAC,CAAC;IACL,CAAC;CACF;AAzDD,0BAyDC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
import { omitUndefined } from "../../internal/utils/values.mjs";
|
|
5
|
+
export class Presets extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Create a new preset for the given `modelId`
|
|
8
|
+
*/
|
|
9
|
+
create(modelID, params, options) {
|
|
10
|
+
const { originalAssets, projectId, ...body } = params;
|
|
11
|
+
return this._client.post(path `/models/${modelID}/presets`, {
|
|
12
|
+
body,
|
|
13
|
+
...options,
|
|
14
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
15
|
+
});
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Modify the given `presetId`
|
|
19
|
+
*/
|
|
20
|
+
update(presetID, params, options) {
|
|
21
|
+
const { modelId, originalAssets, projectId, ...body } = params;
|
|
22
|
+
return this._client.put(path `/models/${modelId}/presets/${presetID}`, {
|
|
23
|
+
body,
|
|
24
|
+
...options,
|
|
25
|
+
query: { originalAssets, projectId, ...omitUndefined(options?.query) },
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* List all presets for the given `modelId`
|
|
30
|
+
*/
|
|
31
|
+
list(modelID, query = {}, options) {
|
|
32
|
+
return this._client.get(path `/models/${modelID}/presets`, {
|
|
33
|
+
...options,
|
|
34
|
+
query: { ...query, ...omitUndefined(options?.query) },
|
|
35
|
+
});
|
|
36
|
+
}
|
|
37
|
+
/**
|
|
38
|
+
* Delete a preset for the given `modelId`
|
|
39
|
+
*/
|
|
40
|
+
delete(presetID, params, options) {
|
|
41
|
+
const { modelId, projectId } = params;
|
|
42
|
+
return this._client.delete(path `/models/${modelId}/presets/${presetID}`, {
|
|
43
|
+
...options,
|
|
44
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=presets.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"presets.mjs","sourceRoot":"","sources":["../../src/resources/models/presets.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AACjD,OAAO,EAAE,aAAa,EAAE,wCAAoC;AAE5D,MAAM,OAAO,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA0B,EAC1B,OAAwB;QAExB,MA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G,OAAO;YACV,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACvD,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,64 @@
|
|
|
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 PromptGuide extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the prompt guide of the given `modelId`
|
|
7
|
+
*/
|
|
8
|
+
retrieve(modelID: string, query?: PromptGuideRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PromptGuideRetrieveResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Update the markdown prompt guide of the given `modelId`
|
|
11
|
+
*/
|
|
12
|
+
update(modelID: string, params: PromptGuideUpdateParams, options?: RequestOptions): APIPromise<PromptGuideUpdateResponse>;
|
|
13
|
+
}
|
|
14
|
+
export interface PromptGuideRetrieveResponse {
|
|
15
|
+
promptGuide: PromptGuideRetrieveResponse.PromptGuide;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace PromptGuideRetrieveResponse {
|
|
18
|
+
interface PromptGuide {
|
|
19
|
+
/**
|
|
20
|
+
* The markdown prompt guide used as the system prompt for Prompt Spark.
|
|
21
|
+
*
|
|
22
|
+
* Instructions and baked-in examples both live in this single markdown document.
|
|
23
|
+
* No runtime templating is performed on it.
|
|
24
|
+
*/
|
|
25
|
+
value: string;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export interface PromptGuideUpdateResponse {
|
|
29
|
+
promptGuide: PromptGuideUpdateResponse.PromptGuide;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace PromptGuideUpdateResponse {
|
|
32
|
+
interface PromptGuide {
|
|
33
|
+
/**
|
|
34
|
+
* The markdown prompt guide used as the system prompt for Prompt Spark.
|
|
35
|
+
*
|
|
36
|
+
* Instructions and baked-in examples both live in this single markdown document.
|
|
37
|
+
* No runtime templating is performed on it.
|
|
38
|
+
*/
|
|
39
|
+
value: string;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export interface PromptGuideRetrieveParams {
|
|
43
|
+
/**
|
|
44
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
45
|
+
* or to set the owner of the resource(s)
|
|
46
|
+
*/
|
|
47
|
+
projectId?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface PromptGuideUpdateParams {
|
|
50
|
+
/**
|
|
51
|
+
* Body param: The markdown prompt guide (ex: `# Instructions\n...`). Set to `null`
|
|
52
|
+
* to delete the prompt guide.
|
|
53
|
+
*/
|
|
54
|
+
promptGuide: string;
|
|
55
|
+
/**
|
|
56
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
57
|
+
* assert ownership or to set the owner of the resource(s)
|
|
58
|
+
*/
|
|
59
|
+
projectId?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace PromptGuide {
|
|
62
|
+
export { type PromptGuideRetrieveResponse as PromptGuideRetrieveResponse, type PromptGuideUpdateResponse as PromptGuideUpdateResponse, type PromptGuideRetrieveParams as PromptGuideRetrieveParams, type PromptGuideUpdateParams as PromptGuideUpdateParams, };
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=prompt-guide.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-guide.d.mts","sourceRoot":"","sources":["../../src/resources/models/prompt-guide.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAIhE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAO1C;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAQzC;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,2BAA2B,CAAC,WAAW,CAAC;CACtD;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,WAAW;QAC1B;;;;;WAKG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,yBAAyB,CAAC,WAAW,CAAC;CACpD;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,WAAW;QAC1B;;;;;WAKG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
3
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
4
|
+
export declare class PromptGuide extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the prompt guide of the given `modelId`
|
|
7
|
+
*/
|
|
8
|
+
retrieve(modelID: string, query?: PromptGuideRetrieveParams | null | undefined, options?: RequestOptions): APIPromise<PromptGuideRetrieveResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Update the markdown prompt guide of the given `modelId`
|
|
11
|
+
*/
|
|
12
|
+
update(modelID: string, params: PromptGuideUpdateParams, options?: RequestOptions): APIPromise<PromptGuideUpdateResponse>;
|
|
13
|
+
}
|
|
14
|
+
export interface PromptGuideRetrieveResponse {
|
|
15
|
+
promptGuide: PromptGuideRetrieveResponse.PromptGuide;
|
|
16
|
+
}
|
|
17
|
+
export declare namespace PromptGuideRetrieveResponse {
|
|
18
|
+
interface PromptGuide {
|
|
19
|
+
/**
|
|
20
|
+
* The markdown prompt guide used as the system prompt for Prompt Spark.
|
|
21
|
+
*
|
|
22
|
+
* Instructions and baked-in examples both live in this single markdown document.
|
|
23
|
+
* No runtime templating is performed on it.
|
|
24
|
+
*/
|
|
25
|
+
value: string;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export interface PromptGuideUpdateResponse {
|
|
29
|
+
promptGuide: PromptGuideUpdateResponse.PromptGuide;
|
|
30
|
+
}
|
|
31
|
+
export declare namespace PromptGuideUpdateResponse {
|
|
32
|
+
interface PromptGuide {
|
|
33
|
+
/**
|
|
34
|
+
* The markdown prompt guide used as the system prompt for Prompt Spark.
|
|
35
|
+
*
|
|
36
|
+
* Instructions and baked-in examples both live in this single markdown document.
|
|
37
|
+
* No runtime templating is performed on it.
|
|
38
|
+
*/
|
|
39
|
+
value: string;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
export interface PromptGuideRetrieveParams {
|
|
43
|
+
/**
|
|
44
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
45
|
+
* or to set the owner of the resource(s)
|
|
46
|
+
*/
|
|
47
|
+
projectId?: string;
|
|
48
|
+
}
|
|
49
|
+
export interface PromptGuideUpdateParams {
|
|
50
|
+
/**
|
|
51
|
+
* Body param: The markdown prompt guide (ex: `# Instructions\n...`). Set to `null`
|
|
52
|
+
* to delete the prompt guide.
|
|
53
|
+
*/
|
|
54
|
+
promptGuide: string;
|
|
55
|
+
/**
|
|
56
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
57
|
+
* assert ownership or to set the owner of the resource(s)
|
|
58
|
+
*/
|
|
59
|
+
projectId?: string;
|
|
60
|
+
}
|
|
61
|
+
export declare namespace PromptGuide {
|
|
62
|
+
export { type PromptGuideRetrieveResponse as PromptGuideRetrieveResponse, type PromptGuideUpdateResponse as PromptGuideUpdateResponse, type PromptGuideRetrieveParams as PromptGuideRetrieveParams, type PromptGuideUpdateParams as PromptGuideUpdateParams, };
|
|
63
|
+
}
|
|
64
|
+
//# sourceMappingURL=prompt-guide.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-guide.d.ts","sourceRoot":"","sources":["../../src/resources/models/prompt-guide.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAIhE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAO1C;;OAEG;IACH,MAAM,CACJ,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,uBAAuB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAQzC;AAED,MAAM,WAAW,2BAA2B;IAC1C,WAAW,EAAE,2BAA2B,CAAC,WAAW,CAAC;CACtD;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,WAAW;QAC1B;;;;;WAKG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC,WAAW,EAAE,yBAAyB,CAAC,WAAW,CAAC;CACpD;AAED,yBAAiB,yBAAyB,CAAC;IACzC,UAAiB,WAAW;QAC1B;;;;;WAKG;QACH,KAAK,EAAE,MAAM,CAAC;KACf;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,WAAW,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.PromptGuide = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
const values_1 = require("../../internal/utils/values.js");
|
|
8
|
+
class PromptGuide extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* Get the prompt guide of the given `modelId`
|
|
11
|
+
*/
|
|
12
|
+
retrieve(modelID, query = {}, options) {
|
|
13
|
+
return this._client.get((0, path_1.path) `/models/${modelID}/prompt-guide`, {
|
|
14
|
+
...options,
|
|
15
|
+
query: { ...query, ...(0, values_1.omitUndefined)(options?.query) },
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Update the markdown prompt guide of the given `modelId`
|
|
20
|
+
*/
|
|
21
|
+
update(modelID, params, options) {
|
|
22
|
+
const { projectId, ...body } = params;
|
|
23
|
+
return this._client.put((0, path_1.path) `/models/${modelID}/prompt-guide`, {
|
|
24
|
+
body,
|
|
25
|
+
...options,
|
|
26
|
+
query: { projectId, ...(0, values_1.omitUndefined)(options?.query) },
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
exports.PromptGuide = PromptGuide;
|
|
31
|
+
//# sourceMappingURL=prompt-guide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-guide.js","sourceRoot":"","sources":["../../src/resources/models/prompt-guide.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AACjD,2DAA4D;AAE5D,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,eAAe,EAAE;YAC7D,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,IAAA,sBAAa,EAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACtD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,eAAe,EAAE;YAC7D,IAAI;YACJ,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,IAAA,sBAAa,EAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACvD,CAAC,CAAC;IACL,CAAC;CACF;AA9BD,kCA8BC"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
4
|
+
import { omitUndefined } from "../../internal/utils/values.mjs";
|
|
5
|
+
export class PromptGuide extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get the prompt guide of the given `modelId`
|
|
8
|
+
*/
|
|
9
|
+
retrieve(modelID, query = {}, options) {
|
|
10
|
+
return this._client.get(path `/models/${modelID}/prompt-guide`, {
|
|
11
|
+
...options,
|
|
12
|
+
query: { ...query, ...omitUndefined(options?.query) },
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Update the markdown prompt guide of the given `modelId`
|
|
17
|
+
*/
|
|
18
|
+
update(modelID, params, options) {
|
|
19
|
+
const { projectId, ...body } = params;
|
|
20
|
+
return this._client.put(path `/models/${modelID}/prompt-guide`, {
|
|
21
|
+
body,
|
|
22
|
+
...options,
|
|
23
|
+
query: { projectId, ...omitUndefined(options?.query) },
|
|
24
|
+
});
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
//# sourceMappingURL=prompt-guide.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-guide.mjs","sourceRoot":"","sources":["../../src/resources/models/prompt-guide.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AACjD,OAAO,EAAE,aAAa,EAAE,wCAAoC;AAE5D,MAAM,OAAO,WAAY,SAAQ,WAAW;IAC1C;;OAEG;IACH,QAAQ,CACN,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,eAAe,EAAE;YAC7D,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACtD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,OAAe,EACf,MAA+B,EAC/B,OAAwB;QAExB,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACtC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,eAAe,EAAE;YAC7D,IAAI;YACJ,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,SAAS,EAAE,GAAG,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACvD,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,278 @@
|
|
|
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 Scores extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the prompt scores for the given `modelId`
|
|
7
|
+
*/
|
|
8
|
+
retrievePrompt(modelID: string, query?: ScoreRetrievePromptParams | null | undefined, options?: RequestOptions): APIPromise<ScoreRetrievePromptResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Get the training dataset scores for the given `modelId`
|
|
11
|
+
*/
|
|
12
|
+
retrieveTrainingDataset(modelID: string, query?: ScoreRetrieveTrainingDatasetParams | null | undefined, options?: RequestOptions): APIPromise<ScoreRetrieveTrainingDatasetResponse>;
|
|
13
|
+
}
|
|
14
|
+
export interface ScoreRetrievePromptResponse {
|
|
15
|
+
/**
|
|
16
|
+
* Different components used to compute the final score
|
|
17
|
+
*/
|
|
18
|
+
details: ScoreRetrievePromptResponse.Details;
|
|
19
|
+
/**
|
|
20
|
+
* The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
|
|
21
|
+
*/
|
|
22
|
+
modelId: string;
|
|
23
|
+
/**
|
|
24
|
+
* The prompt's score for the input modelId
|
|
25
|
+
*
|
|
26
|
+
* The score is a number between 0 and 1. The higher the score, the better the
|
|
27
|
+
* prompt is for the model
|
|
28
|
+
*/
|
|
29
|
+
score: number;
|
|
30
|
+
/**
|
|
31
|
+
* The status of the prompt's score
|
|
32
|
+
*
|
|
33
|
+
* Details if all the necessary data is present to compute the score
|
|
34
|
+
*/
|
|
35
|
+
status: 'complete' | 'incomplete' | 'unknown';
|
|
36
|
+
/**
|
|
37
|
+
* Present only if the prompt has one or more syntax errors
|
|
38
|
+
*
|
|
39
|
+
* The API checks several syntax errors in the prompt
|
|
40
|
+
*/
|
|
41
|
+
syntaxError?: 'Prompt weight should be between 0 and 2' | 'Prompt weight symbol should be - or + with a maximum length of 5. Ex: --, ++, ---, +++++' | "Unsupported prompt syntax: '[to:when], [from::when]'" | "Unsupported prompt syntax: 'word:<weight>' or '(word):<weight>'. Please use 'word<weight>' or '(word)<weight>' instead" | 'Unsupported prompt syntax: --(s|c)ref' | 'Unsupported prompt syntax: <name:weight> or <lora:name:weight>' | 'Unsupported url in prompt';
|
|
42
|
+
}
|
|
43
|
+
export declare namespace ScoreRetrievePromptResponse {
|
|
44
|
+
/**
|
|
45
|
+
* Different components used to compute the final score
|
|
46
|
+
*/
|
|
47
|
+
interface Details {
|
|
48
|
+
/**
|
|
49
|
+
* The Dice-Sørensen similarity between the prompt and each captions from the
|
|
50
|
+
* model's training images
|
|
51
|
+
*
|
|
52
|
+
* The values are between 0 and 1. The higher the value, the more similar the
|
|
53
|
+
* prompt is to the training images' captions
|
|
54
|
+
*/
|
|
55
|
+
captionsSimilarity: Details.CaptionsSimilarity;
|
|
56
|
+
/**
|
|
57
|
+
* The cosine similarity between the prompt and the model's caption embedding
|
|
58
|
+
*
|
|
59
|
+
* The value is a number between -1 and 1. The higher the value, the more similar
|
|
60
|
+
* the prompt is to the model's caption embedding
|
|
61
|
+
*/
|
|
62
|
+
embeddingSimilarity: number;
|
|
63
|
+
/**
|
|
64
|
+
* The Dice-Sørensen similarity between the prompt and each prompts from the
|
|
65
|
+
* model's examples
|
|
66
|
+
*
|
|
67
|
+
* The values are between 0 and 1. The higher the value, the more similar the
|
|
68
|
+
* prompt is to the prompts' examples
|
|
69
|
+
*/
|
|
70
|
+
promptsSimilarity?: Details.PromptsSimilarity;
|
|
71
|
+
}
|
|
72
|
+
namespace Details {
|
|
73
|
+
/**
|
|
74
|
+
* The Dice-Sørensen similarity between the prompt and each captions from the
|
|
75
|
+
* model's training images
|
|
76
|
+
*
|
|
77
|
+
* The values are between 0 and 1. The higher the value, the more similar the
|
|
78
|
+
* prompt is to the training images' captions
|
|
79
|
+
*/
|
|
80
|
+
interface CaptionsSimilarity {
|
|
81
|
+
mean: number;
|
|
82
|
+
median: number;
|
|
83
|
+
min: number;
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* The Dice-Sørensen similarity between the prompt and each prompts from the
|
|
87
|
+
* model's examples
|
|
88
|
+
*
|
|
89
|
+
* The values are between 0 and 1. The higher the value, the more similar the
|
|
90
|
+
* prompt is to the prompts' examples
|
|
91
|
+
*/
|
|
92
|
+
interface PromptsSimilarity {
|
|
93
|
+
mean: number;
|
|
94
|
+
median: number;
|
|
95
|
+
min: number;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
export interface ScoreRetrieveTrainingDatasetResponse {
|
|
100
|
+
/**
|
|
101
|
+
* Different components used to compute the final score
|
|
102
|
+
*/
|
|
103
|
+
details: ScoreRetrieveTrainingDatasetResponse.Details;
|
|
104
|
+
/**
|
|
105
|
+
* The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
|
|
106
|
+
*/
|
|
107
|
+
modelId: string;
|
|
108
|
+
/**
|
|
109
|
+
* The training dataset's score for the input modelId
|
|
110
|
+
*
|
|
111
|
+
* The score is a number between 0 and 1. The higher the score, the most chance the
|
|
112
|
+
* model has to train well
|
|
113
|
+
*/
|
|
114
|
+
score: number;
|
|
115
|
+
/**
|
|
116
|
+
* The status of the training dataset's score
|
|
117
|
+
*
|
|
118
|
+
* Details if all the necessary data is present to compute the score
|
|
119
|
+
*/
|
|
120
|
+
status: 'complete' | 'incomplete' | 'unknown';
|
|
121
|
+
/**
|
|
122
|
+
* Present only if their is a warning between the assets of the couples
|
|
123
|
+
*/
|
|
124
|
+
assetCouplesWarnings?: Array<ScoreRetrieveTrainingDatasetResponse.AssetCouplesWarning>;
|
|
125
|
+
/**
|
|
126
|
+
* Present only if the training image assets of the modelId have one or more
|
|
127
|
+
* warnings
|
|
128
|
+
*/
|
|
129
|
+
assetsWarnings?: Array<ScoreRetrieveTrainingDatasetResponse.AssetsWarning>;
|
|
130
|
+
}
|
|
131
|
+
export declare namespace ScoreRetrieveTrainingDatasetResponse {
|
|
132
|
+
/**
|
|
133
|
+
* Different components used to compute the final score
|
|
134
|
+
*/
|
|
135
|
+
interface Details {
|
|
136
|
+
/**
|
|
137
|
+
* For each couple of assets in the training dataset, the distance between the
|
|
138
|
+
* captions
|
|
139
|
+
*/
|
|
140
|
+
assetCouplesCaptionsDistance: Array<Details.AssetCouplesCaptionsDistance>;
|
|
141
|
+
/**
|
|
142
|
+
* For each couple of assets in the training dataset, the similarity between the
|
|
143
|
+
* assets
|
|
144
|
+
*/
|
|
145
|
+
assetCouplesSimilarity: Array<Details.AssetCouplesSimilarity>;
|
|
146
|
+
/**
|
|
147
|
+
* For each asset, the similarity with the model's embedding (excluding the current
|
|
148
|
+
* asset)
|
|
149
|
+
*/
|
|
150
|
+
assetsEmbeddingSimilarity: Array<Details.AssetsEmbeddingSimilarity>;
|
|
151
|
+
/**
|
|
152
|
+
* The min, mean, median of the assetsEmbeddingSimilarity
|
|
153
|
+
*/
|
|
154
|
+
assetsSimilarity: Details.AssetsSimilarity;
|
|
155
|
+
/**
|
|
156
|
+
* The min, mean, median of the assetCouplesCaptionsDistance
|
|
157
|
+
*/
|
|
158
|
+
couplesCaptionsDistance: Details.CouplesCaptionsDistance;
|
|
159
|
+
/**
|
|
160
|
+
* The min, mean, median of the assetCouplesSimilarity
|
|
161
|
+
*/
|
|
162
|
+
couplesSimilarity: Details.CouplesSimilarity;
|
|
163
|
+
/**
|
|
164
|
+
* Takes into account all missing data and warnings to compute a metadata score
|
|
165
|
+
*/
|
|
166
|
+
metadataScore: number;
|
|
167
|
+
}
|
|
168
|
+
namespace Details {
|
|
169
|
+
interface AssetCouplesCaptionsDistance {
|
|
170
|
+
/**
|
|
171
|
+
* The couple of AssetIds (example: ['asset_GTrL3mq4SXWyMxkOHRxlpw',
|
|
172
|
+
* 'asset_6VrLs8nC1DHWCfKGaVne0gBn'])
|
|
173
|
+
*/
|
|
174
|
+
couple: Array<string>;
|
|
175
|
+
/**
|
|
176
|
+
* The Dice-Sørensen distance between the captions of the assetIds of the couple.
|
|
177
|
+
*/
|
|
178
|
+
distance: number;
|
|
179
|
+
}
|
|
180
|
+
interface AssetCouplesSimilarity {
|
|
181
|
+
/**
|
|
182
|
+
* The couple of AssetIds (example: ['asset_GTrL3mq4SXWyMxkOHRxlpw',
|
|
183
|
+
* 'asset_6VrLs8nC1DHWCfKGaVne0gBn'])
|
|
184
|
+
*/
|
|
185
|
+
couple: Array<string>;
|
|
186
|
+
/**
|
|
187
|
+
* The cosine similarity between the assetIds of the couple.
|
|
188
|
+
*
|
|
189
|
+
* The value is a number between -1 and 1. The higher the value, the more similar
|
|
190
|
+
* the assets are to each other
|
|
191
|
+
*/
|
|
192
|
+
similarity: number;
|
|
193
|
+
}
|
|
194
|
+
interface AssetsEmbeddingSimilarity {
|
|
195
|
+
/**
|
|
196
|
+
* The AssetId associated with their similarity (example:
|
|
197
|
+
* "asset_GTrL3mq4SXWyMxkOHRxlpw")
|
|
198
|
+
*/
|
|
199
|
+
assetId: string;
|
|
200
|
+
/**
|
|
201
|
+
* The cosine similarity between the assetId and the model's embedding minus the
|
|
202
|
+
* asset's embedding
|
|
203
|
+
*
|
|
204
|
+
* The value is a number between -1 and 1. The higher the value, the more similar
|
|
205
|
+
* the asset is to the model's embedding
|
|
206
|
+
*/
|
|
207
|
+
similarity: number;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* The min, mean, median of the assetsEmbeddingSimilarity
|
|
211
|
+
*/
|
|
212
|
+
interface AssetsSimilarity {
|
|
213
|
+
mean: number;
|
|
214
|
+
median: number;
|
|
215
|
+
min: number;
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* The min, mean, median of the assetCouplesCaptionsDistance
|
|
219
|
+
*/
|
|
220
|
+
interface CouplesCaptionsDistance {
|
|
221
|
+
mean: number;
|
|
222
|
+
median: number;
|
|
223
|
+
min: number;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* The min, mean, median of the assetCouplesSimilarity
|
|
227
|
+
*/
|
|
228
|
+
interface CouplesSimilarity {
|
|
229
|
+
mean: number;
|
|
230
|
+
median: number;
|
|
231
|
+
min: number;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
interface AssetCouplesWarning {
|
|
235
|
+
/**
|
|
236
|
+
* The couple of AssetIds (example: ['asset_GTrL3mq4SXWyMxkOHRxlpw',
|
|
237
|
+
* 'asset_6VrLs8nC1DHWCfKGaVne0gBn'])
|
|
238
|
+
*/
|
|
239
|
+
couple: Array<string>;
|
|
240
|
+
/**
|
|
241
|
+
* An indicative message concerning the couple of assets
|
|
242
|
+
*/
|
|
243
|
+
message: Array<'Captions are identical' | 'Captions are too close' | 'Empty caption' | 'Missing caption' | 'Missing metadata' | 'Same asset' | 'Similarity is too high' | 'Similarity with other assets is too low' | 'Width and height must be larger than 1024'>;
|
|
244
|
+
}
|
|
245
|
+
interface AssetsWarning {
|
|
246
|
+
/**
|
|
247
|
+
* The AssetId which has a warning (example: "asset_GTrL3mq4SXWyMxkOHRxlpw")
|
|
248
|
+
*/
|
|
249
|
+
assetId: string;
|
|
250
|
+
/**
|
|
251
|
+
* An indicative message concerning the asset
|
|
252
|
+
*/
|
|
253
|
+
message: Array<'Captions are identical' | 'Captions are too close' | 'Empty caption' | 'Missing caption' | 'Missing metadata' | 'Same asset' | 'Similarity is too high' | 'Similarity with other assets is too low' | 'Width and height must be larger than 1024'>;
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
export interface ScoreRetrievePromptParams {
|
|
257
|
+
/**
|
|
258
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
259
|
+
* or to set the owner of the resource(s)
|
|
260
|
+
*/
|
|
261
|
+
projectId?: string;
|
|
262
|
+
/**
|
|
263
|
+
* The prompt to score against the model. Required — the call returns 400 without
|
|
264
|
+
* it.
|
|
265
|
+
*/
|
|
266
|
+
prompt?: string;
|
|
267
|
+
}
|
|
268
|
+
export interface ScoreRetrieveTrainingDatasetParams {
|
|
269
|
+
/**
|
|
270
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
271
|
+
* or to set the owner of the resource(s)
|
|
272
|
+
*/
|
|
273
|
+
projectId?: string;
|
|
274
|
+
}
|
|
275
|
+
export declare namespace Scores {
|
|
276
|
+
export { type ScoreRetrievePromptResponse as ScoreRetrievePromptResponse, type ScoreRetrieveTrainingDatasetResponse as ScoreRetrieveTrainingDatasetResponse, type ScoreRetrievePromptParams as ScoreRetrievePromptParams, type ScoreRetrieveTrainingDatasetParams as ScoreRetrieveTrainingDatasetParams, };
|
|
277
|
+
}
|
|
278
|
+
//# sourceMappingURL=scores.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"scores.d.mts","sourceRoot":"","sources":["../../src/resources/models/scores.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAIhE,qBAAa,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,cAAc,CACZ,OAAO,EAAE,MAAM,EACf,KAAK,GAAE,yBAAyB,GAAG,IAAI,GAAG,SAAc,EACxD,OAAO,CAAC,EAA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