@scenario-labs/sdk 3.1.0 → 3.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +119 -0
- package/client.d.mts +22 -7
- package/client.d.mts.map +1 -1
- package/client.d.ts +22 -7
- package/client.d.ts.map +1 -1
- package/client.js +9 -0
- package/client.js.map +1 -1
- package/client.mjs +9 -0
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +42 -0
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +42 -0
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +79 -1
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +75 -0
- package/core/pagination.mjs.map +1 -1
- package/internal/utils/values.d.mts +6 -0
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts +6 -0
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +11 -0
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs +10 -0
- package/internal/utils/values.mjs.map +1 -1
- package/lib/generate.js +7 -7
- package/lib/generate.js.map +1 -1
- package/lib/generate.mjs +7 -7
- package/lib/generate.mjs.map +1 -1
- package/lib/job.d.mts +1 -1
- package/lib/job.d.mts.map +1 -1
- package/lib/job.d.ts +1 -1
- package/lib/job.d.ts.map +1 -1
- package/lib/job.js +5 -6
- package/lib/job.js.map +1 -1
- package/lib/job.mjs +6 -7
- package/lib/job.mjs.map +1 -1
- package/lib/models.d.mts.map +1 -1
- package/lib/models.d.ts.map +1 -1
- package/lib/models.js +7 -5
- package/lib/models.js.map +1 -1
- package/lib/models.mjs +8 -6
- package/lib/models.mjs.map +1 -1
- package/lib/query.d.mts +21 -0
- package/lib/query.d.mts.map +1 -0
- package/lib/query.d.ts +21 -0
- package/lib/query.d.ts.map +1 -0
- package/lib/query.js +36 -0
- package/lib/query.js.map +1 -0
- package/lib/query.mjs +33 -0
- package/lib/query.mjs.map +1 -0
- package/lib/scenario.d.mts +3 -0
- package/lib/scenario.d.mts.map +1 -1
- package/lib/scenario.d.ts +3 -0
- package/lib/scenario.d.ts.map +1 -1
- package/lib/scenario.js +6 -0
- package/lib/scenario.js.map +1 -1
- package/lib/scenario.mjs +6 -0
- package/lib/scenario.mjs.map +1 -1
- package/lib/scope.d.mts +27 -7
- package/lib/scope.d.mts.map +1 -1
- package/lib/scope.d.ts +27 -7
- package/lib/scope.d.ts.map +1 -1
- package/lib/scope.js +40 -7
- package/lib/scope.js.map +1 -1
- package/lib/scope.mjs +37 -7
- package/lib/scope.mjs.map +1 -1
- package/lib/upload.d.mts +1 -1
- package/lib/upload.d.mts.map +1 -1
- package/lib/upload.d.ts +1 -1
- package/lib/upload.d.ts.map +1 -1
- package/lib/upload.js +6 -7
- package/lib/upload.js.map +1 -1
- package/lib/upload.mjs +7 -8
- package/lib/upload.mjs.map +1 -1
- package/lib/workflow.d.mts.map +1 -1
- package/lib/workflow.d.ts.map +1 -1
- package/lib/workflow.js +8 -6
- package/lib/workflow.js.map +1 -1
- package/lib/workflow.mjs +9 -7
- package/lib/workflow.mjs.map +1 -1
- package/lib/workflow_converter.d.mts +6 -0
- package/lib/workflow_converter.d.mts.map +1 -1
- package/lib/workflow_converter.d.ts +6 -0
- package/lib/workflow_converter.d.ts.map +1 -1
- package/lib/workflow_converter.js +99 -12
- package/lib/workflow_converter.js.map +1 -1
- package/lib/workflow_converter.mjs +99 -12
- package/lib/workflow_converter.mjs.map +1 -1
- package/lib/workflow_validator.d.mts +8 -1
- package/lib/workflow_validator.d.mts.map +1 -1
- package/lib/workflow_validator.d.ts +8 -1
- package/lib/workflow_validator.d.ts.map +1 -1
- package/lib/workflow_validator.js +154 -1
- package/lib/workflow_validator.js.map +1 -1
- package/lib/workflow_validator.mjs +154 -1
- package/lib/workflow_validator.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/assets/assets.d.mts +304 -122
- package/resources/assets/assets.d.mts.map +1 -1
- package/resources/assets/assets.d.ts +304 -122
- package/resources/assets/assets.d.ts.map +1 -1
- package/resources/assets/assets.js +34 -11
- package/resources/assets/assets.js.map +1 -1
- package/resources/assets/assets.mjs +34 -11
- package/resources/assets/assets.mjs.map +1 -1
- package/resources/assets/download.d.mts +39 -5
- package/resources/assets/download.d.mts.map +1 -1
- package/resources/assets/download.d.ts +39 -5
- package/resources/assets/download.d.ts.map +1 -1
- package/resources/assets/download.js +16 -4
- package/resources/assets/download.js.map +1 -1
- package/resources/assets/download.mjs +16 -4
- package/resources/assets/download.mjs.map +1 -1
- package/resources/collections/assets.d.mts.map +1 -1
- package/resources/collections/assets.d.ts.map +1 -1
- package/resources/collections/assets.js +3 -2
- package/resources/collections/assets.js.map +1 -1
- package/resources/collections/assets.mjs +3 -2
- package/resources/collections/assets.mjs.map +1 -1
- package/resources/collections/collections.d.mts.map +1 -1
- package/resources/collections/collections.d.ts.map +1 -1
- package/resources/collections/collections.js +20 -5
- package/resources/collections/collections.js.map +1 -1
- package/resources/collections/collections.mjs +20 -5
- package/resources/collections/collections.mjs.map +1 -1
- package/resources/collections/models.d.mts.map +1 -1
- package/resources/collections/models.d.ts.map +1 -1
- package/resources/collections/models.js +3 -2
- package/resources/collections/models.js.map +1 -1
- package/resources/collections/models.mjs +3 -2
- package/resources/collections/models.mjs.map +1 -1
- package/resources/generate.d.mts +2089 -437
- package/resources/generate.d.mts.map +1 -1
- package/resources/generate.d.ts +2089 -437
- package/resources/generate.d.ts.map +1 -1
- package/resources/generate.js +62 -9
- package/resources/generate.js.map +1 -1
- package/resources/generate.mjs +62 -9
- package/resources/generate.mjs.map +1 -1
- package/resources/index.d.mts +6 -3
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +6 -3
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +7 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +3 -0
- package/resources/index.mjs.map +1 -1
- package/resources/jobs.d.mts +253 -120
- package/resources/jobs.d.mts.map +1 -1
- package/resources/jobs.d.ts +253 -120
- package/resources/jobs.d.ts.map +1 -1
- package/resources/jobs.js +13 -5
- package/resources/jobs.js.map +1 -1
- package/resources/jobs.mjs +13 -5
- package/resources/jobs.mjs.map +1 -1
- package/resources/models/description.d.mts +18 -0
- package/resources/models/description.d.mts.map +1 -1
- package/resources/models/description.d.ts +18 -0
- package/resources/models/description.d.ts.map +1 -1
- package/resources/models/description.js +6 -2
- package/resources/models/description.js.map +1 -1
- package/resources/models/description.mjs +6 -2
- package/resources/models/description.mjs.map +1 -1
- package/resources/models/examples.d.mts +198 -92
- package/resources/models/examples.d.mts.map +1 -1
- package/resources/models/examples.d.ts +198 -92
- package/resources/models/examples.d.ts.map +1 -1
- package/resources/models/examples.js +6 -2
- package/resources/models/examples.js.map +1 -1
- package/resources/models/examples.mjs +6 -2
- package/resources/models/examples.mjs.map +1 -1
- package/resources/models/index.d.mts +3 -0
- package/resources/models/index.d.mts.map +1 -1
- package/resources/models/index.d.ts +3 -0
- package/resources/models/index.d.ts.map +1 -1
- package/resources/models/index.js +7 -1
- package/resources/models/index.js.map +1 -1
- package/resources/models/index.mjs +3 -0
- package/resources/models/index.mjs.map +1 -1
- package/resources/models/models.d.mts +346 -112
- package/resources/models/models.d.mts.map +1 -1
- package/resources/models/models.d.ts +346 -112
- package/resources/models/models.d.ts.map +1 -1
- package/resources/models/models.js +57 -12
- package/resources/models/models.js.map +1 -1
- package/resources/models/models.mjs +57 -12
- package/resources/models/models.mjs.map +1 -1
- package/resources/models/presets.d.mts +1016 -0
- package/resources/models/presets.d.mts.map +1 -0
- package/resources/models/presets.d.ts +1016 -0
- package/resources/models/presets.d.ts.map +1 -0
- package/resources/models/presets.js +52 -0
- package/resources/models/presets.js.map +1 -0
- package/resources/models/presets.mjs +48 -0
- package/resources/models/presets.mjs.map +1 -0
- package/resources/models/prompt-guide.d.mts +64 -0
- package/resources/models/prompt-guide.d.mts.map +1 -0
- package/resources/models/prompt-guide.d.ts +64 -0
- package/resources/models/prompt-guide.d.ts.map +1 -0
- package/resources/models/prompt-guide.js +31 -0
- package/resources/models/prompt-guide.js.map +1 -0
- package/resources/models/prompt-guide.mjs +27 -0
- package/resources/models/prompt-guide.mjs.map +1 -0
- package/resources/models/scores.d.mts +278 -0
- package/resources/models/scores.d.mts.map +1 -0
- package/resources/models/scores.d.ts +278 -0
- package/resources/models/scores.d.ts.map +1 -0
- package/resources/models/scores.js +29 -0
- package/resources/models/scores.js.map +1 -0
- package/resources/models/scores.mjs +25 -0
- package/resources/models/scores.mjs.map +1 -0
- package/resources/models/train.d.mts +186 -83
- package/resources/models/train.d.mts.map +1 -1
- package/resources/models/train.d.ts +186 -83
- package/resources/models/train.d.ts.map +1 -1
- package/resources/models/train.js +4 -3
- package/resources/models/train.js.map +1 -1
- package/resources/models/train.mjs +4 -3
- package/resources/models/train.mjs.map +1 -1
- package/resources/models/training-images.d.mts.map +1 -1
- package/resources/models/training-images.d.ts.map +1 -1
- package/resources/models/training-images.js +5 -4
- package/resources/models/training-images.js.map +1 -1
- package/resources/models/training-images.mjs +5 -4
- package/resources/models/training-images.mjs.map +1 -1
- package/resources/projects/api-keys.d.mts +54 -0
- package/resources/projects/api-keys.d.mts.map +1 -0
- package/resources/projects/api-keys.d.ts +54 -0
- package/resources/projects/api-keys.d.ts.map +1 -0
- package/resources/projects/api-keys.js +23 -0
- package/resources/projects/api-keys.js.map +1 -0
- package/resources/projects/api-keys.mjs +19 -0
- package/resources/projects/api-keys.mjs.map +1 -0
- package/resources/projects/brief.d.mts +149 -0
- package/resources/projects/brief.d.mts.map +1 -0
- package/resources/projects/brief.d.ts +149 -0
- package/resources/projects/brief.d.ts.map +1 -0
- package/resources/projects/brief.js +28 -0
- package/resources/projects/brief.js.map +1 -0
- package/resources/projects/brief.mjs +24 -0
- package/resources/projects/brief.mjs.map +1 -0
- package/resources/projects/index.d.mts +9 -0
- package/resources/projects/index.d.mts.map +1 -0
- package/resources/projects/index.d.ts +9 -0
- package/resources/projects/index.d.ts.map +1 -0
- package/resources/projects/index.js +21 -0
- package/resources/projects/index.js.map +1 -0
- package/resources/projects/index.mjs +10 -0
- package/resources/projects/index.mjs.map +1 -0
- package/resources/projects/instructions.d.mts +102 -0
- package/resources/projects/instructions.d.mts.map +1 -0
- package/resources/projects/instructions.d.ts +102 -0
- package/resources/projects/instructions.d.ts.map +1 -0
- package/resources/projects/instructions.js +24 -0
- package/resources/projects/instructions.js.map +1 -0
- package/resources/projects/instructions.mjs +20 -0
- package/resources/projects/instructions.mjs.map +1 -0
- package/resources/projects/members.d.mts +788 -0
- package/resources/projects/members.d.mts.map +1 -0
- package/resources/projects/members.d.ts +788 -0
- package/resources/projects/members.d.ts.map +1 -0
- package/resources/projects/members.js +30 -0
- package/resources/projects/members.js.map +1 -0
- package/resources/projects/members.mjs +26 -0
- package/resources/projects/members.mjs.map +1 -0
- package/resources/projects/memory.d.mts +102 -0
- package/resources/projects/memory.d.mts.map +1 -0
- package/resources/projects/memory.d.ts +102 -0
- package/resources/projects/memory.d.ts.map +1 -0
- package/resources/projects/memory.js +24 -0
- package/resources/projects/memory.js.map +1 -0
- package/resources/projects/memory.mjs +20 -0
- package/resources/projects/memory.mjs.map +1 -0
- package/resources/projects/projects.d.mts +1129 -0
- package/resources/projects/projects.d.mts.map +1 -0
- package/resources/projects/projects.d.ts +1129 -0
- package/resources/projects/projects.d.ts.map +1 -0
- package/resources/projects/projects.js +79 -0
- package/resources/projects/projects.js.map +1 -0
- package/resources/projects/projects.mjs +74 -0
- package/resources/projects/projects.mjs.map +1 -0
- package/resources/projects/watermark.d.mts +459 -0
- package/resources/projects/watermark.d.mts.map +1 -0
- package/resources/projects/watermark.d.ts +459 -0
- package/resources/projects/watermark.d.ts.map +1 -0
- package/resources/projects/watermark.js +46 -0
- package/resources/projects/watermark.js.map +1 -0
- package/resources/projects/watermark.mjs +42 -0
- package/resources/projects/watermark.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/events.d.mts +87 -0
- package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/events.d.ts +87 -0
- package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/events.js +28 -0
- package/resources/projects/webhook-endpoints/events.js.map +1 -0
- package/resources/projects/webhook-endpoints/events.mjs +24 -0
- package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/index.d.mts +3 -0
- package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/index.d.ts +3 -0
- package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/index.js +9 -0
- package/resources/projects/webhook-endpoints/index.js.map +1 -0
- package/resources/projects/webhook-endpoints/index.mjs +4 -0
- package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
- package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
- package/resources/projects/webhook-endpoints.d.mts +2 -0
- package/resources/projects/webhook-endpoints.d.mts.map +1 -0
- package/resources/projects/webhook-endpoints.d.ts +2 -0
- package/resources/projects/webhook-endpoints.d.ts.map +1 -0
- package/resources/projects/webhook-endpoints.js +6 -0
- package/resources/projects/webhook-endpoints.js.map +1 -0
- package/resources/projects/webhook-endpoints.mjs +3 -0
- package/resources/projects/webhook-endpoints.mjs.map +1 -0
- package/resources/projects.d.mts +2 -0
- package/resources/projects.d.mts.map +1 -0
- package/resources/projects.d.ts +2 -0
- package/resources/projects.d.ts.map +1 -0
- package/resources/projects.js +6 -0
- package/resources/projects.js.map +1 -0
- package/resources/projects.mjs +3 -0
- package/resources/projects.mjs.map +1 -0
- package/resources/recommendations.d.mts +1107 -0
- package/resources/recommendations.d.mts.map +1 -0
- package/resources/recommendations.d.ts +1107 -0
- package/resources/recommendations.d.ts.map +1 -0
- package/resources/recommendations.js +17 -0
- package/resources/recommendations.js.map +1 -0
- package/resources/recommendations.mjs +13 -0
- package/resources/recommendations.mjs.map +1 -0
- package/resources/search.d.mts +168 -5
- package/resources/search.d.mts.map +1 -1
- package/resources/search.d.ts +168 -5
- package/resources/search.d.ts.map +1 -1
- package/resources/search.js +17 -3
- package/resources/search.js.map +1 -1
- package/resources/search.mjs +17 -3
- package/resources/search.mjs.map +1 -1
- package/resources/tags.d.mts.map +1 -1
- package/resources/tags.d.ts.map +1 -1
- package/resources/tags.js +5 -1
- package/resources/tags.js.map +1 -1
- package/resources/tags.mjs +5 -1
- package/resources/tags.mjs.map +1 -1
- package/resources/teams/brief.d.mts +149 -0
- package/resources/teams/brief.d.mts.map +1 -0
- package/resources/teams/brief.d.ts +149 -0
- package/resources/teams/brief.d.ts.map +1 -0
- package/resources/teams/brief.js +28 -0
- package/resources/teams/brief.js.map +1 -0
- package/resources/teams/brief.mjs +24 -0
- package/resources/teams/brief.mjs.map +1 -0
- package/resources/teams/index.d.mts +7 -0
- package/resources/teams/index.d.mts.map +1 -0
- package/resources/teams/index.d.ts +7 -0
- package/resources/teams/index.d.ts.map +1 -0
- package/resources/teams/index.js +17 -0
- package/resources/teams/index.js.map +1 -0
- package/resources/teams/index.mjs +8 -0
- package/resources/teams/index.mjs.map +1 -0
- package/resources/teams/ip-filters.d.mts +115 -0
- package/resources/teams/ip-filters.d.mts.map +1 -0
- package/resources/teams/ip-filters.d.ts +115 -0
- package/resources/teams/ip-filters.d.ts.map +1 -0
- package/resources/teams/ip-filters.js +45 -0
- package/resources/teams/ip-filters.js.map +1 -0
- package/resources/teams/ip-filters.mjs +41 -0
- package/resources/teams/ip-filters.mjs.map +1 -0
- package/resources/teams/members.d.mts +204 -0
- package/resources/teams/members.d.mts.map +1 -0
- package/resources/teams/members.d.ts +204 -0
- package/resources/teams/members.d.ts.map +1 -0
- package/resources/teams/members.js +30 -0
- package/resources/teams/members.js.map +1 -0
- package/resources/teams/members.mjs +26 -0
- package/resources/teams/members.mjs.map +1 -0
- package/resources/teams/teams.d.mts +878 -0
- package/resources/teams/teams.d.mts.map +1 -0
- package/resources/teams/teams.d.ts +878 -0
- package/resources/teams/teams.d.ts.map +1 -0
- package/resources/teams/teams.js +66 -0
- package/resources/teams/teams.js.map +1 -0
- package/resources/teams/teams.mjs +61 -0
- package/resources/teams/teams.mjs.map +1 -0
- package/resources/teams/watermark.d.mts +459 -0
- package/resources/teams/watermark.d.mts.map +1 -0
- package/resources/teams/watermark.d.ts +459 -0
- package/resources/teams/watermark.d.ts.map +1 -0
- package/resources/teams/watermark.js +46 -0
- package/resources/teams/watermark.js.map +1 -0
- package/resources/teams/watermark.mjs +42 -0
- package/resources/teams/watermark.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/events.d.mts +87 -0
- package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/events.d.ts +87 -0
- package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/events.js +28 -0
- package/resources/teams/webhook-endpoints/events.js.map +1 -0
- package/resources/teams/webhook-endpoints/events.mjs +24 -0
- package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/index.d.mts +3 -0
- package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/index.d.ts +3 -0
- package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/index.js +9 -0
- package/resources/teams/webhook-endpoints/index.js.map +1 -0
- package/resources/teams/webhook-endpoints/index.mjs +4 -0
- package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
- package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
- package/resources/teams/webhook-endpoints.d.mts +2 -0
- package/resources/teams/webhook-endpoints.d.mts.map +1 -0
- package/resources/teams/webhook-endpoints.d.ts +2 -0
- package/resources/teams/webhook-endpoints.d.ts.map +1 -0
- package/resources/teams/webhook-endpoints.js +6 -0
- package/resources/teams/webhook-endpoints.js.map +1 -0
- package/resources/teams/webhook-endpoints.mjs +3 -0
- package/resources/teams/webhook-endpoints.mjs.map +1 -0
- package/resources/teams.d.mts +2 -0
- package/resources/teams.d.mts.map +1 -0
- package/resources/teams.d.ts +2 -0
- package/resources/teams.d.ts.map +1 -0
- package/resources/teams.js +6 -0
- package/resources/teams.js.map +1 -0
- package/resources/teams.mjs +3 -0
- package/resources/teams.mjs.map +1 -0
- package/resources/uploads.d.mts +13 -3
- package/resources/uploads.d.mts.map +1 -1
- package/resources/uploads.d.ts +13 -3
- package/resources/uploads.d.ts.map +1 -1
- package/resources/uploads.js +16 -4
- package/resources/uploads.js.map +1 -1
- package/resources/uploads.mjs +16 -4
- package/resources/uploads.mjs.map +1 -1
- package/resources/usages.d.mts +85 -51
- package/resources/usages.d.mts.map +1 -1
- package/resources/usages.d.ts +85 -51
- package/resources/usages.d.ts.map +1 -1
- package/resources/usages.js +2 -1
- package/resources/usages.js.map +1 -1
- package/resources/usages.mjs +2 -1
- package/resources/usages.mjs.map +1 -1
- package/resources/workflows.d.mts +1639 -385
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +1639 -385
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +39 -8
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +39 -8
- package/resources/workflows.mjs.map +1 -1
- package/src/client.ts +107 -0
- package/src/core/pagination.ts +144 -0
- package/src/internal/utils/values.ts +10 -0
- package/src/lib/generate.ts +7 -7
- package/src/lib/job.ts +9 -7
- package/src/lib/models.ts +8 -6
- package/src/lib/query.ts +42 -0
- package/src/lib/scenario.ts +8 -0
- package/src/lib/scope.ts +42 -7
- package/src/lib/upload.ts +10 -8
- package/src/lib/workflow.ts +9 -7
- package/src/lib/workflow_converter.ts +126 -12
- package/src/lib/workflow_validator.ts +183 -1
- package/src/resources/assets/assets.ts +766 -132
- package/src/resources/assets/download.ts +61 -9
- package/src/resources/collections/assets.ts +3 -2
- package/src/resources/collections/collections.ts +20 -5
- package/src/resources/collections/models.ts +3 -2
- package/src/resources/generate.ts +2935 -512
- package/src/resources/index.ts +37 -0
- package/src/resources/jobs.ts +277 -121
- package/src/resources/models/description.ts +126 -2
- package/src/resources/models/examples.ts +318 -92
- package/src/resources/models/index.ts +25 -0
- package/src/resources/models/models.ts +463 -124
- package/src/resources/models/presets.ts +1335 -0
- package/src/resources/models/prompt-guide.ts +102 -0
- package/src/resources/models/scores.ts +383 -0
- package/src/resources/models/train.ts +202 -87
- package/src/resources/models/training-images.ts +5 -4
- package/src/resources/projects/api-keys.ts +86 -0
- package/src/resources/projects/brief.ts +197 -0
- package/src/resources/projects/index.ts +71 -0
- package/src/resources/projects/instructions.ts +134 -0
- package/src/resources/projects/members.ts +958 -0
- package/src/resources/projects/memory.ts +134 -0
- package/src/resources/projects/projects.ts +1478 -0
- package/src/resources/projects/watermark.ts +590 -0
- package/src/resources/projects/webhook-endpoints/events.ts +179 -0
- package/src/resources/projects/webhook-endpoints/index.ts +19 -0
- package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
- package/src/resources/projects/webhook-endpoints.ts +3 -0
- package/src/resources/projects.ts +3 -0
- package/src/resources/recommendations.ts +1502 -0
- package/src/resources/search.ts +220 -8
- package/src/resources/tags.ts +5 -1
- package/src/resources/teams/brief.ts +193 -0
- package/src/resources/teams/index.ts +62 -0
- package/src/resources/teams/ip-filters.ts +177 -0
- package/src/resources/teams/members.ts +282 -0
- package/src/resources/teams/teams.ts +1255 -0
- package/src/resources/teams/watermark.ts +590 -0
- package/src/resources/teams/webhook-endpoints/events.ts +179 -0
- package/src/resources/teams/webhook-endpoints/index.ts +19 -0
- package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
- package/src/resources/teams/webhook-endpoints.ts +3 -0
- package/src/resources/teams.ts +3 -0
- package/src/resources/uploads.ts +30 -7
- package/src/resources/usages.ts +98 -50
- package/src/resources/workflows.ts +2053 -434
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { APIResource } from "../../../core/resource.js";
|
|
2
|
+
import * as EventsAPI from "./events.js";
|
|
3
|
+
import { EventListParams, EventListResponse, EventRetrieveParams, EventRetrieveResponse, Events } from "./events.js";
|
|
4
|
+
import { APIPromise } from "../../../core/api-promise.js";
|
|
5
|
+
import { RequestOptions } from "../../../internal/request-options.js";
|
|
6
|
+
export declare class WebhookEndpoints extends APIResource {
|
|
7
|
+
events: EventsAPI.Events;
|
|
8
|
+
/**
|
|
9
|
+
* Register a new webhook endpoint for the team, at most 10 of them. The response
|
|
10
|
+
* carries the secret, which is never returned again
|
|
11
|
+
*/
|
|
12
|
+
create(teamID: string, body: WebhookEndpointCreateParams, options?: RequestOptions): APIPromise<WebhookEndpointCreateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Update a particular webhook endpoint for a team
|
|
15
|
+
*/
|
|
16
|
+
update(webhookEndpointID: string, params: WebhookEndpointUpdateParams, options?: RequestOptions): APIPromise<WebhookEndpointUpdateResponse>;
|
|
17
|
+
/**
|
|
18
|
+
* List the team's webhook endpoints
|
|
19
|
+
*/
|
|
20
|
+
list(teamID: string, options?: RequestOptions): APIPromise<WebhookEndpointListResponse>;
|
|
21
|
+
/**
|
|
22
|
+
* Delete a particular webhook endpoint by its Id
|
|
23
|
+
*/
|
|
24
|
+
delete(webhookEndpointID: string, params: WebhookEndpointDeleteParams, options?: RequestOptions): APIPromise<unknown>;
|
|
25
|
+
}
|
|
26
|
+
export interface WebhookEndpointCreateResponse {
|
|
27
|
+
/**
|
|
28
|
+
* The creation response, and the only one that carries the secret: it is generated
|
|
29
|
+
* once and never returned again, so a client that loses it has to recreate the
|
|
30
|
+
* endpoint.
|
|
31
|
+
*/
|
|
32
|
+
webhookEndpoint: WebhookEndpointCreateResponse.WebhookEndpoint;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace WebhookEndpointCreateResponse {
|
|
35
|
+
/**
|
|
36
|
+
* The creation response, and the only one that carries the secret: it is generated
|
|
37
|
+
* once and never returned again, so a client that loses it has to recreate the
|
|
38
|
+
* endpoint.
|
|
39
|
+
*/
|
|
40
|
+
interface WebhookEndpoint {
|
|
41
|
+
/**
|
|
42
|
+
* The ID of the webhook endpoint
|
|
43
|
+
*/
|
|
44
|
+
id: string;
|
|
45
|
+
/**
|
|
46
|
+
* The date and time the webhook endpoint was created
|
|
47
|
+
*/
|
|
48
|
+
createdAt: string;
|
|
49
|
+
/**
|
|
50
|
+
* Whether the webhook is enabled
|
|
51
|
+
*/
|
|
52
|
+
enabled: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* The events that trigger the webhook. ['*'] indicates that all events are enabled
|
|
55
|
+
*/
|
|
56
|
+
enabledEvents: Array<'*' | 'asset.download.completed' | 'asset.download.created' | 'asset.download.failed' | 'generation.completed' | 'generation.created' | 'generation.failed' | 'inference.cancelled' | 'inference.completed' | 'inference.created' | 'inference.failed' | 'model.download.completed' | 'model.download.created' | 'model.download.failed' | 'model.training.cancelled' | 'model.training.completed' | 'model.training.failed' | 'model.training.started' | 'team.credit.threshold.crossed'>;
|
|
57
|
+
/**
|
|
58
|
+
* The number of calls to the webhook endpoint that have failed
|
|
59
|
+
*/
|
|
60
|
+
nbFailedCalls: number;
|
|
61
|
+
/**
|
|
62
|
+
* The number of calls to the webhook endpoint
|
|
63
|
+
*/
|
|
64
|
+
nbTotalCalls: number;
|
|
65
|
+
/**
|
|
66
|
+
* The ID of the owner of the webhook endpoint: a project id for job lifecycle
|
|
67
|
+
* events, a team id for alert events
|
|
68
|
+
*/
|
|
69
|
+
ownerId: string;
|
|
70
|
+
/**
|
|
71
|
+
* Whether the owner is a project or a team. Required to tell them apart: a project
|
|
72
|
+
* created before the team/project split shares its team's id
|
|
73
|
+
*/
|
|
74
|
+
ownerType: 'project' | 'team';
|
|
75
|
+
/**
|
|
76
|
+
* The endpoint's secret, used to generate webhook signatures
|
|
77
|
+
*/
|
|
78
|
+
secret: string;
|
|
79
|
+
/**
|
|
80
|
+
* The date and time the webhook endpoint was updated
|
|
81
|
+
*/
|
|
82
|
+
updatedAt: string;
|
|
83
|
+
/**
|
|
84
|
+
* The URL of the webhook endpoint
|
|
85
|
+
*/
|
|
86
|
+
url: string;
|
|
87
|
+
/**
|
|
88
|
+
* A description of the webhook endpoint
|
|
89
|
+
*/
|
|
90
|
+
description?: string;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
export interface WebhookEndpointUpdateResponse {
|
|
94
|
+
webhookEndpoint: WebhookEndpointUpdateResponse.WebhookEndpoint;
|
|
95
|
+
}
|
|
96
|
+
export declare namespace WebhookEndpointUpdateResponse {
|
|
97
|
+
interface WebhookEndpoint {
|
|
98
|
+
/**
|
|
99
|
+
* The ID of the webhook endpoint
|
|
100
|
+
*/
|
|
101
|
+
id: string;
|
|
102
|
+
/**
|
|
103
|
+
* The date and time the webhook endpoint was created
|
|
104
|
+
*/
|
|
105
|
+
createdAt: string;
|
|
106
|
+
/**
|
|
107
|
+
* Whether the webhook is enabled
|
|
108
|
+
*/
|
|
109
|
+
enabled: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* The events that trigger the webhook. ['*'] indicates that all events are enabled
|
|
112
|
+
*/
|
|
113
|
+
enabledEvents: Array<'*' | 'asset.download.completed' | 'asset.download.created' | 'asset.download.failed' | 'generation.completed' | 'generation.created' | 'generation.failed' | 'inference.cancelled' | 'inference.completed' | 'inference.created' | 'inference.failed' | 'model.download.completed' | 'model.download.created' | 'model.download.failed' | 'model.training.cancelled' | 'model.training.completed' | 'model.training.failed' | 'model.training.started' | 'team.credit.threshold.crossed'>;
|
|
114
|
+
/**
|
|
115
|
+
* The number of calls to the webhook endpoint that have failed
|
|
116
|
+
*/
|
|
117
|
+
nbFailedCalls: number;
|
|
118
|
+
/**
|
|
119
|
+
* The number of calls to the webhook endpoint
|
|
120
|
+
*/
|
|
121
|
+
nbTotalCalls: number;
|
|
122
|
+
/**
|
|
123
|
+
* The ID of the owner of the webhook endpoint: a project id for job lifecycle
|
|
124
|
+
* events, a team id for alert events
|
|
125
|
+
*/
|
|
126
|
+
ownerId: string;
|
|
127
|
+
/**
|
|
128
|
+
* Whether the owner is a project or a team. Required to tell them apart: a project
|
|
129
|
+
* created before the team/project split shares its team's id
|
|
130
|
+
*/
|
|
131
|
+
ownerType: 'project' | 'team';
|
|
132
|
+
/**
|
|
133
|
+
* The date and time the webhook endpoint was updated
|
|
134
|
+
*/
|
|
135
|
+
updatedAt: string;
|
|
136
|
+
/**
|
|
137
|
+
* The URL of the webhook endpoint
|
|
138
|
+
*/
|
|
139
|
+
url: string;
|
|
140
|
+
/**
|
|
141
|
+
* A description of the webhook endpoint
|
|
142
|
+
*/
|
|
143
|
+
description?: string;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
export interface WebhookEndpointListResponse {
|
|
147
|
+
/**
|
|
148
|
+
* A list of the team webhooks
|
|
149
|
+
*/
|
|
150
|
+
webhookEndpoints: Array<WebhookEndpointListResponse.WebhookEndpoint>;
|
|
151
|
+
}
|
|
152
|
+
export declare namespace WebhookEndpointListResponse {
|
|
153
|
+
interface WebhookEndpoint {
|
|
154
|
+
/**
|
|
155
|
+
* The ID of the webhook endpoint
|
|
156
|
+
*/
|
|
157
|
+
id: string;
|
|
158
|
+
/**
|
|
159
|
+
* The date and time the webhook endpoint was created
|
|
160
|
+
*/
|
|
161
|
+
createdAt: string;
|
|
162
|
+
/**
|
|
163
|
+
* Whether the webhook is enabled
|
|
164
|
+
*/
|
|
165
|
+
enabled: boolean;
|
|
166
|
+
/**
|
|
167
|
+
* The events that trigger the webhook. ['*'] indicates that all events are enabled
|
|
168
|
+
*/
|
|
169
|
+
enabledEvents: Array<'*' | 'asset.download.completed' | 'asset.download.created' | 'asset.download.failed' | 'generation.completed' | 'generation.created' | 'generation.failed' | 'inference.cancelled' | 'inference.completed' | 'inference.created' | 'inference.failed' | 'model.download.completed' | 'model.download.created' | 'model.download.failed' | 'model.training.cancelled' | 'model.training.completed' | 'model.training.failed' | 'model.training.started' | 'team.credit.threshold.crossed'>;
|
|
170
|
+
/**
|
|
171
|
+
* The number of calls to the webhook endpoint that have failed
|
|
172
|
+
*/
|
|
173
|
+
nbFailedCalls: number;
|
|
174
|
+
/**
|
|
175
|
+
* The number of calls to the webhook endpoint
|
|
176
|
+
*/
|
|
177
|
+
nbTotalCalls: number;
|
|
178
|
+
/**
|
|
179
|
+
* The ID of the owner of the webhook endpoint: a project id for job lifecycle
|
|
180
|
+
* events, a team id for alert events
|
|
181
|
+
*/
|
|
182
|
+
ownerId: string;
|
|
183
|
+
/**
|
|
184
|
+
* Whether the owner is a project or a team. Required to tell them apart: a project
|
|
185
|
+
* created before the team/project split shares its team's id
|
|
186
|
+
*/
|
|
187
|
+
ownerType: 'project' | 'team';
|
|
188
|
+
/**
|
|
189
|
+
* The date and time the webhook endpoint was updated
|
|
190
|
+
*/
|
|
191
|
+
updatedAt: string;
|
|
192
|
+
/**
|
|
193
|
+
* The URL of the webhook endpoint
|
|
194
|
+
*/
|
|
195
|
+
url: string;
|
|
196
|
+
/**
|
|
197
|
+
* A description of the webhook endpoint
|
|
198
|
+
*/
|
|
199
|
+
description?: string;
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
export type WebhookEndpointDeleteResponse = unknown;
|
|
203
|
+
export interface WebhookEndpointCreateParams {
|
|
204
|
+
/**
|
|
205
|
+
* The events that trigger the webhook. ['*'] indicates that all events are enabled
|
|
206
|
+
*/
|
|
207
|
+
enabledEvents: Array<'*' | 'asset.download.completed' | 'asset.download.created' | 'asset.download.failed' | 'generation.completed' | 'generation.created' | 'generation.failed' | 'inference.cancelled' | 'inference.completed' | 'inference.created' | 'inference.failed' | 'model.download.completed' | 'model.download.created' | 'model.download.failed' | 'model.training.cancelled' | 'model.training.completed' | 'model.training.failed' | 'model.training.started' | 'team.credit.threshold.crossed'>;
|
|
208
|
+
/**
|
|
209
|
+
* The URL of the webhook endpoint. Must be an absolute http(s) URL
|
|
210
|
+
*/
|
|
211
|
+
url: string;
|
|
212
|
+
/**
|
|
213
|
+
* A description of the webhook endpoint
|
|
214
|
+
*/
|
|
215
|
+
description?: string;
|
|
216
|
+
}
|
|
217
|
+
export interface WebhookEndpointUpdateParams {
|
|
218
|
+
/**
|
|
219
|
+
* Path param: The team Id
|
|
220
|
+
*/
|
|
221
|
+
teamId: string;
|
|
222
|
+
/**
|
|
223
|
+
* Body param: A description of the webhook endpoint
|
|
224
|
+
*/
|
|
225
|
+
description?: string;
|
|
226
|
+
/**
|
|
227
|
+
* Body param: Whether the webhook is enabled
|
|
228
|
+
*/
|
|
229
|
+
enabled?: boolean;
|
|
230
|
+
/**
|
|
231
|
+
* Body param: The events that trigger the webhook. ['*'] indicates that all events
|
|
232
|
+
* are enabled
|
|
233
|
+
*/
|
|
234
|
+
enabledEvents?: Array<'*' | 'asset.download.completed' | 'asset.download.created' | 'asset.download.failed' | 'generation.completed' | 'generation.created' | 'generation.failed' | 'inference.cancelled' | 'inference.completed' | 'inference.created' | 'inference.failed' | 'model.download.completed' | 'model.download.created' | 'model.download.failed' | 'model.training.cancelled' | 'model.training.completed' | 'model.training.failed' | 'model.training.started' | 'team.credit.threshold.crossed'>;
|
|
235
|
+
/**
|
|
236
|
+
* Body param: The URL of the webhook endpoint. Must be an absolute http(s) URL
|
|
237
|
+
*/
|
|
238
|
+
url?: string;
|
|
239
|
+
}
|
|
240
|
+
export interface WebhookEndpointDeleteParams {
|
|
241
|
+
/**
|
|
242
|
+
* The team Id
|
|
243
|
+
*/
|
|
244
|
+
teamId: string;
|
|
245
|
+
}
|
|
246
|
+
export declare namespace WebhookEndpoints {
|
|
247
|
+
export { type WebhookEndpointCreateResponse as WebhookEndpointCreateResponse, type WebhookEndpointUpdateResponse as WebhookEndpointUpdateResponse, type WebhookEndpointListResponse as WebhookEndpointListResponse, type WebhookEndpointDeleteResponse as WebhookEndpointDeleteResponse, type WebhookEndpointCreateParams as WebhookEndpointCreateParams, type WebhookEndpointUpdateParams as WebhookEndpointUpdateParams, type WebhookEndpointDeleteParams as WebhookEndpointDeleteParams, };
|
|
248
|
+
export { Events as Events, type EventRetrieveResponse as EventRetrieveResponse, type EventListResponse as EventListResponse, type EventRetrieveParams as EventRetrieveParams, type EventListParams as EventListParams, };
|
|
249
|
+
}
|
|
250
|
+
//# sourceMappingURL=webhook-endpoints.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-endpoints.d.ts","sourceRoot":"","sources":["../../../src/resources/teams/webhook-endpoints/webhook-endpoints.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,kCAA+B;AACrD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EACL,eAAe,EACf,iBAAiB,EACjB,mBAAmB,EACnB,qBAAqB,EACrB,MAAM,EACP,oBAAiB;AAClB,OAAO,EAAE,UAAU,EAAE,qCAAkC;AACvD,OAAO,EAAE,cAAc,EAAE,6CAA0C;AAGnE,qBAAa,gBAAiB,SAAQ,WAAW;IAC/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AAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,eAAe,IAAI,eAAe,GACxC,CAAC;CACH"}
|
|
@@ -0,0 +1,45 @@
|
|
|
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.WebhookEndpoints = void 0;
|
|
5
|
+
const tslib_1 = require("../../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../../core/resource.js");
|
|
7
|
+
const EventsAPI = tslib_1.__importStar(require("./events.js"));
|
|
8
|
+
const events_1 = require("./events.js");
|
|
9
|
+
const path_1 = require("../../../internal/utils/path.js");
|
|
10
|
+
class WebhookEndpoints extends resource_1.APIResource {
|
|
11
|
+
events = new EventsAPI.Events(this._client);
|
|
12
|
+
/**
|
|
13
|
+
* Register a new webhook endpoint for the team, at most 10 of them. The response
|
|
14
|
+
* carries the secret, which is never returned again
|
|
15
|
+
*/
|
|
16
|
+
create(teamID, body, options) {
|
|
17
|
+
return this._client.post((0, path_1.path) `/teams/${teamID}/webhook-endpoints`, { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Update a particular webhook endpoint for a team
|
|
21
|
+
*/
|
|
22
|
+
update(webhookEndpointID, params, options) {
|
|
23
|
+
const { teamId, ...body } = params;
|
|
24
|
+
return this._client.put((0, path_1.path) `/teams/${teamId}/webhook-endpoints/${webhookEndpointID}`, {
|
|
25
|
+
body,
|
|
26
|
+
...options,
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* List the team's webhook endpoints
|
|
31
|
+
*/
|
|
32
|
+
list(teamID, options) {
|
|
33
|
+
return this._client.get((0, path_1.path) `/teams/${teamID}/webhook-endpoints`, options);
|
|
34
|
+
}
|
|
35
|
+
/**
|
|
36
|
+
* Delete a particular webhook endpoint by its Id
|
|
37
|
+
*/
|
|
38
|
+
delete(webhookEndpointID, params, options) {
|
|
39
|
+
const { teamId } = params;
|
|
40
|
+
return this._client.delete((0, path_1.path) `/teams/${teamId}/webhook-endpoints/${webhookEndpointID}`, options);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
exports.WebhookEndpoints = WebhookEndpoints;
|
|
44
|
+
WebhookEndpoints.Events = events_1.Events;
|
|
45
|
+
//# sourceMappingURL=webhook-endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-endpoints.js","sourceRoot":"","sources":["../../../src/resources/teams/webhook-endpoints/webhook-endpoints.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,wDAAqD;AACrD,+DAAsC;AACtC,wCAMkB;AAGlB,0DAAoD;AAEpD,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C,MAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAE9D;;;OAGG;IACH,MAAM,CACJ,MAAc,EACd,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,iBAAyB,EACzB,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,sBAAsB,iBAAiB,EAAE,EAAE;YACrF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,iBAAyB,EACzB,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,sBAAsB,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;CACF;AAhDD,4CAgDC;AAiXD,gBAAgB,CAAC,MAAM,GAAG,eAAM,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../../core/resource.mjs";
|
|
3
|
+
import * as EventsAPI from "./events.mjs";
|
|
4
|
+
import { Events, } from "./events.mjs";
|
|
5
|
+
import { path } from "../../../internal/utils/path.mjs";
|
|
6
|
+
export class WebhookEndpoints extends APIResource {
|
|
7
|
+
events = new EventsAPI.Events(this._client);
|
|
8
|
+
/**
|
|
9
|
+
* Register a new webhook endpoint for the team, at most 10 of them. The response
|
|
10
|
+
* carries the secret, which is never returned again
|
|
11
|
+
*/
|
|
12
|
+
create(teamID, body, options) {
|
|
13
|
+
return this._client.post(path `/teams/${teamID}/webhook-endpoints`, { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Update a particular webhook endpoint for a team
|
|
17
|
+
*/
|
|
18
|
+
update(webhookEndpointID, params, options) {
|
|
19
|
+
const { teamId, ...body } = params;
|
|
20
|
+
return this._client.put(path `/teams/${teamId}/webhook-endpoints/${webhookEndpointID}`, {
|
|
21
|
+
body,
|
|
22
|
+
...options,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* List the team's webhook endpoints
|
|
27
|
+
*/
|
|
28
|
+
list(teamID, options) {
|
|
29
|
+
return this._client.get(path `/teams/${teamID}/webhook-endpoints`, options);
|
|
30
|
+
}
|
|
31
|
+
/**
|
|
32
|
+
* Delete a particular webhook endpoint by its Id
|
|
33
|
+
*/
|
|
34
|
+
delete(webhookEndpointID, params, options) {
|
|
35
|
+
const { teamId } = params;
|
|
36
|
+
return this._client.delete(path `/teams/${teamId}/webhook-endpoints/${webhookEndpointID}`, options);
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
WebhookEndpoints.Events = Events;
|
|
40
|
+
//# sourceMappingURL=webhook-endpoints.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-endpoints.mjs","sourceRoot":"","sources":["../../../src/resources/teams/webhook-endpoints/webhook-endpoints.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,mCAA+B;AACrD,OAAO,KAAK,SAAS,qBAAiB;AACtC,OAAO,EAKL,MAAM,GACP,qBAAiB;AAGlB,OAAO,EAAE,IAAI,EAAE,yCAAqC;AAEpD,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C,MAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAE9D;;;OAGG;IACH,MAAM,CACJ,MAAc,EACd,IAAiC,EACjC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,oBAAoB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3F,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,iBAAyB,EACzB,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,sBAAsB,iBAAiB,EAAE,EAAE;YACrF,IAAI;YACJ,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,oBAAoB,EAAE,OAAO,CAAC,CAAC;IAC7E,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,iBAAyB,EACzB,MAAmC,EACnC,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,UAAU,MAAM,sBAAsB,iBAAiB,EAAE,EAAE,OAAO,CAAC,CAAC;IACrG,CAAC;CACF;AAiXD,gBAAgB,CAAC,MAAM,GAAG,MAAM,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-endpoints.d.mts","sourceRoot":"","sources":["../../src/resources/teams/webhook-endpoints.ts"],"names":[],"mappings":"AAEA,8CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-endpoints.d.ts","sourceRoot":"","sources":["../../src/resources/teams/webhook-endpoints.ts"],"names":[],"mappings":"AAEA,6CAA0C"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./webhook-endpoints/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=webhook-endpoints.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-endpoints.js","sourceRoot":"","sources":["../../src/resources/teams/webhook-endpoints.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,uEAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"webhook-endpoints.mjs","sourceRoot":"","sources":["../../src/resources/teams/webhook-endpoints.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,8CAA0C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.mts","sourceRoot":"","sources":["../src/resources/teams.ts"],"names":[],"mappings":"AAEA,kCAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.d.ts","sourceRoot":"","sources":["../src/resources/teams.ts"],"names":[],"mappings":"AAEA,iCAA8B"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./teams/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=teams.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.js","sourceRoot":"","sources":["../src/resources/teams.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,2DAA8B"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"teams.mjs","sourceRoot":"","sources":["../src/resources/teams.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,kCAA8B"}
|
package/resources/uploads.d.mts
CHANGED
|
@@ -173,6 +173,11 @@ export declare namespace UploadTriggerActionResponse {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
export interface UploadCreateParams {
|
|
176
|
+
/**
|
|
177
|
+
* Query param: Estimate the operation instead of running it: the call returns a
|
|
178
|
+
* 269 response carrying the creative units cost. `api` estimates at the API tier.
|
|
179
|
+
*/
|
|
180
|
+
dryRun?: 'true' | 'api';
|
|
176
181
|
/**
|
|
177
182
|
* Query param: The projectId used for ownership resource management. Either to
|
|
178
183
|
* assert ownership or to set the owner of the resource(s)
|
|
@@ -245,7 +250,11 @@ export declare namespace UploadCreateParams {
|
|
|
245
250
|
}
|
|
246
251
|
}
|
|
247
252
|
export interface UploadRetrieveParams {
|
|
248
|
-
|
|
253
|
+
/**
|
|
254
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
255
|
+
* or to set the owner of the resource(s)
|
|
256
|
+
*/
|
|
257
|
+
projectId?: string;
|
|
249
258
|
}
|
|
250
259
|
export interface UploadTriggerActionParams {
|
|
251
260
|
/**
|
|
@@ -254,9 +263,10 @@ export interface UploadTriggerActionParams {
|
|
|
254
263
|
*/
|
|
255
264
|
action: 'complete';
|
|
256
265
|
/**
|
|
257
|
-
* Query param
|
|
266
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
267
|
+
* assert ownership or to set the owner of the resource(s)
|
|
258
268
|
*/
|
|
259
|
-
projectId?:
|
|
269
|
+
projectId?: string;
|
|
260
270
|
}
|
|
261
271
|
export declare namespace Uploads {
|
|
262
272
|
export { type UploadCreateResponse as UploadCreateResponse, type UploadRetrieveResponse as UploadRetrieveResponse, type UploadTriggerActionResponse as UploadTriggerActionResponse, type UploadCreateParams as UploadCreateParams, type UploadRetrieveParams as UploadRetrieveParams, type UploadTriggerActionParams as UploadTriggerActionParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;
|
|
1
|
+
{"version":3,"file":"uploads.d.mts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAI7D,qBAAa,OAAQ,SAAQ,WAAW;IAC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7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
package/resources/uploads.d.ts
CHANGED
|
@@ -173,6 +173,11 @@ export declare namespace UploadTriggerActionResponse {
|
|
|
173
173
|
}
|
|
174
174
|
}
|
|
175
175
|
export interface UploadCreateParams {
|
|
176
|
+
/**
|
|
177
|
+
* Query param: Estimate the operation instead of running it: the call returns a
|
|
178
|
+
* 269 response carrying the creative units cost. `api` estimates at the API tier.
|
|
179
|
+
*/
|
|
180
|
+
dryRun?: 'true' | 'api';
|
|
176
181
|
/**
|
|
177
182
|
* Query param: The projectId used for ownership resource management. Either to
|
|
178
183
|
* assert ownership or to set the owner of the resource(s)
|
|
@@ -245,7 +250,11 @@ export declare namespace UploadCreateParams {
|
|
|
245
250
|
}
|
|
246
251
|
}
|
|
247
252
|
export interface UploadRetrieveParams {
|
|
248
|
-
|
|
253
|
+
/**
|
|
254
|
+
* The projectId used for ownership resource management. Either to assert ownership
|
|
255
|
+
* or to set the owner of the resource(s)
|
|
256
|
+
*/
|
|
257
|
+
projectId?: string;
|
|
249
258
|
}
|
|
250
259
|
export interface UploadTriggerActionParams {
|
|
251
260
|
/**
|
|
@@ -254,9 +263,10 @@ export interface UploadTriggerActionParams {
|
|
|
254
263
|
*/
|
|
255
264
|
action: 'complete';
|
|
256
265
|
/**
|
|
257
|
-
* Query param
|
|
266
|
+
* Query param: The projectId used for ownership resource management. Either to
|
|
267
|
+
* assert ownership or to set the owner of the resource(s)
|
|
258
268
|
*/
|
|
259
|
-
projectId?:
|
|
269
|
+
projectId?: string;
|
|
260
270
|
}
|
|
261
271
|
export declare namespace Uploads {
|
|
262
272
|
export { type UploadCreateResponse as UploadCreateResponse, type UploadRetrieveResponse as UploadRetrieveResponse, type UploadTriggerActionResponse as UploadTriggerActionResponse, type UploadCreateParams as UploadCreateParams, type UploadRetrieveParams as UploadRetrieveParams, type UploadTriggerActionParams as UploadTriggerActionParams, };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;
|
|
1
|
+
{"version":3,"file":"uploads.d.ts","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAI7D,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAS9F;;OAEG;IACH,QAAQ,CACN,QAAQ,EAAE,MAAM,EAChB,KAAK,GAAE,oBAAoB,GAAG,IAAI,GAAG,SAAc,EACnD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAOrC;;OAEG;IACH,aAAa,CACX,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,yBAAyB,EACjC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;CAQ3C;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,oBAAoB,CAAC,MAAM,CAAC;CACrC;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,MAAM;QACrB,EAAE,EAAE,MAAM,CAAC;QAEX,QAAQ,EAAE,MAAM,CAAC;QAEjB,SAAS,EAAE,MAAM,CAAC;QAElB,QAAQ,EAAE,MAAM,CAAC;QAEjB;;WAEG;QACH,IAAI,EAAE,IAAI,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,GAAG,OAAO,GAAG,MA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WAEG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,MAAM,EAAE,UAAU,CAAC;IAEnB;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
package/resources/uploads.js
CHANGED
|
@@ -4,27 +4,39 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.Uploads = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
6
|
const path_1 = require("../internal/utils/path.js");
|
|
7
|
+
const values_1 = require("../internal/utils/values.js");
|
|
7
8
|
class Uploads extends resource_1.APIResource {
|
|
8
9
|
/**
|
|
9
10
|
* Create a temporary upload URL for a file. Support multipart uploads. Return a
|
|
10
11
|
* list of URLs for each part of the file.
|
|
11
12
|
*/
|
|
12
13
|
create(params, options) {
|
|
13
|
-
const { projectId, ...body } = params;
|
|
14
|
-
return this._client.post('/uploads', {
|
|
14
|
+
const { dryRun, projectId, ...body } = params;
|
|
15
|
+
return this._client.post('/uploads', {
|
|
16
|
+
body,
|
|
17
|
+
...options,
|
|
18
|
+
query: { dryRun, projectId, ...(0, values_1.omitUndefined)(options?.query) },
|
|
19
|
+
});
|
|
15
20
|
}
|
|
16
21
|
/**
|
|
17
22
|
* Get the details of an existing upload
|
|
18
23
|
*/
|
|
19
24
|
retrieve(uploadID, query = {}, options) {
|
|
20
|
-
return this._client.get((0, path_1.path) `/uploads/${uploadID}`, {
|
|
25
|
+
return this._client.get((0, path_1.path) `/uploads/${uploadID}`, {
|
|
26
|
+
...options,
|
|
27
|
+
query: { ...query, ...(0, values_1.omitUndefined)(options?.query) },
|
|
28
|
+
});
|
|
21
29
|
}
|
|
22
30
|
/**
|
|
23
31
|
* Trigger an action on upload
|
|
24
32
|
*/
|
|
25
33
|
triggerAction(uploadID, params, options) {
|
|
26
34
|
const { projectId, ...body } = params;
|
|
27
|
-
return this._client.post((0, path_1.path) `/uploads/${uploadID}/action`, {
|
|
35
|
+
return this._client.post((0, path_1.path) `/uploads/${uploadID}/action`, {
|
|
36
|
+
body,
|
|
37
|
+
...options,
|
|
38
|
+
query: { projectId, ...(0, values_1.omitUndefined)(options?.query) },
|
|
39
|
+
});
|
|
28
40
|
}
|
|
29
41
|
}
|
|
30
42
|
exports.Uploads = Uploads;
|
package/resources/uploads.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;
|
|
1
|
+
{"version":3,"file":"uploads.js","sourceRoot":"","sources":["../src/resources/uploads.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAC9C,wDAAyD;AAEzD,MAAa,OAAQ,SAAQ,sBAAW;IACtC;;;OAGG;IACH,MAAM,CAAC,MAA0B,EAAE,OAAwB;QACzD,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,UAAU,EAAE;YACnC,IAAI;YACJ,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAA,sBAAa,EAAC,OAAO,EAA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