@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,28 @@
|
|
|
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.Brief = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class Brief extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Get the team's Quality Gate brief
|
|
10
|
+
*/
|
|
11
|
+
retrieve(teamID, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/teams/${teamID}/brief`, options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Create or update the team's Quality Gate brief
|
|
16
|
+
*/
|
|
17
|
+
update(teamID, body, options) {
|
|
18
|
+
return this._client.put((0, path_1.path) `/teams/${teamID}/brief`, { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Delete the team's Quality Gate brief
|
|
22
|
+
*/
|
|
23
|
+
delete(teamID, options) {
|
|
24
|
+
return this._client.delete((0, path_1.path) `/teams/${teamID}/brief`, options);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
exports.Brief = Brief;
|
|
28
|
+
//# sourceMappingURL=brief.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief.js","sourceRoot":"","sources":["../../src/resources/teams/brief.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF;AArBD,sBAqBC"}
|
|
@@ -0,0 +1,24 @@
|
|
|
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
|
+
export class Brief extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the team's Quality Gate brief
|
|
7
|
+
*/
|
|
8
|
+
retrieve(teamID, options) {
|
|
9
|
+
return this._client.get(path `/teams/${teamID}/brief`, options);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Create or update the team's Quality Gate brief
|
|
13
|
+
*/
|
|
14
|
+
update(teamID, body, options) {
|
|
15
|
+
return this._client.put(path `/teams/${teamID}/brief`, { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Delete the team's Quality Gate brief
|
|
19
|
+
*/
|
|
20
|
+
delete(teamID, options) {
|
|
21
|
+
return this._client.delete(path `/teams/${teamID}/brief`, options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=brief.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief.mjs","sourceRoot":"","sources":["../../src/resources/teams/brief.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,MAAc,EAAE,OAAwB;QAC/C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,IAAuB,EAAE,OAAwB;QACtE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC9E,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,UAAU,MAAM,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpE,CAAC;CACF"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Brief, type BriefRetrieveResponse, type BriefUpdateResponse, type BriefDeleteResponse, type BriefUpdateParams, } from "./brief.mjs";
|
|
2
|
+
export { IPFilters, type IPFilterCreateResponse, type IPFilterUpdateResponse, type IPFilterListResponse, type IPFilterDeleteResponse, type IPFilterDraftInstructionResponse, type IPFilterCreateParams, type IPFilterUpdateParams, type IPFilterDeleteParams, type IPFilterDraftInstructionParams, } from "./ip-filters.mjs";
|
|
3
|
+
export { Members, type MemberCreateResponse, type MemberUpdateResponse, type MemberDeleteResponse, type MemberCreateParams, type MemberUpdateParams, type MemberDeleteParams, } from "./members.mjs";
|
|
4
|
+
export { Teams, type TeamRetrieveResponse, type TeamUpdateResponse, type TeamListResponse, type TeamDeleteInvitationsResponse, type TeamRetrieveLimitsResponse, type TeamUpdateParams, type TeamDeleteInvitationsParams, } from "./teams.mjs";
|
|
5
|
+
export { Watermark, type WatermarkRetrieveResponse, type WatermarkUpdateResponse, type WatermarkDeleteResponse, type WatermarkDeleteLogoResponse, type WatermarkPreviewResponse, type WatermarkUpdateLogoResponse, type WatermarkUpdateParams, type WatermarkPreviewParams, type WatermarkUpdateLogoParams, } from "./watermark.mjs";
|
|
6
|
+
export { WebhookEndpoints, type WebhookEndpointCreateResponse, type WebhookEndpointUpdateResponse, type WebhookEndpointListResponse, type WebhookEndpointDeleteResponse, type WebhookEndpointCreateParams, type WebhookEndpointUpdateParams, type WebhookEndpointDeleteParams, } from "./webhook-endpoints/index.mjs";
|
|
7
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/teams/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,oBAAgB;AACjB,OAAO,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,GACpC,yBAAqB;AACtB,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,sBAAkB;AACnB,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,GACjC,oBAAgB;AACjB,OAAO,EACL,SAAS,EACT,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B,wBAAoB;AACrB,OAAO,EACL,gBAAgB,EAChB,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,GACjC,sCAAkC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Brief, type BriefRetrieveResponse, type BriefUpdateResponse, type BriefDeleteResponse, type BriefUpdateParams, } from "./brief.js";
|
|
2
|
+
export { IPFilters, type IPFilterCreateResponse, type IPFilterUpdateResponse, type IPFilterListResponse, type IPFilterDeleteResponse, type IPFilterDraftInstructionResponse, type IPFilterCreateParams, type IPFilterUpdateParams, type IPFilterDeleteParams, type IPFilterDraftInstructionParams, } from "./ip-filters.js";
|
|
3
|
+
export { Members, type MemberCreateResponse, type MemberUpdateResponse, type MemberDeleteResponse, type MemberCreateParams, type MemberUpdateParams, type MemberDeleteParams, } from "./members.js";
|
|
4
|
+
export { Teams, type TeamRetrieveResponse, type TeamUpdateResponse, type TeamListResponse, type TeamDeleteInvitationsResponse, type TeamRetrieveLimitsResponse, type TeamUpdateParams, type TeamDeleteInvitationsParams, } from "./teams.js";
|
|
5
|
+
export { Watermark, type WatermarkRetrieveResponse, type WatermarkUpdateResponse, type WatermarkDeleteResponse, type WatermarkDeleteLogoResponse, type WatermarkPreviewResponse, type WatermarkUpdateLogoResponse, type WatermarkUpdateParams, type WatermarkPreviewParams, type WatermarkUpdateLogoParams, } from "./watermark.js";
|
|
6
|
+
export { WebhookEndpoints, type WebhookEndpointCreateResponse, type WebhookEndpointUpdateResponse, type WebhookEndpointListResponse, type WebhookEndpointDeleteResponse, type WebhookEndpointCreateParams, type WebhookEndpointUpdateParams, type WebhookEndpointDeleteParams, } from "./webhook-endpoints/index.js";
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/teams/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,mBAAgB;AACjB,OAAO,EACL,SAAS,EACT,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,gCAAgC,EACrC,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,8BAA8B,GACpC,wBAAqB;AACtB,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,qBAAkB;AACnB,OAAO,EACL,KAAK,EACL,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,6BAA6B,EAClC,KAAK,0BAA0B,EAC/B,KAAK,gBAAgB,EACrB,KAAK,2BAA2B,GACjC,mBAAgB;AACjB,OAAO,EACL,SAAS,EACT,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,EAC5B,KAAK,2BAA2B,EAChC,KAAK,wBAAwB,EAC7B,KAAK,2BAA2B,EAChC,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,GAC/B,uBAAoB;AACrB,OAAO,EACL,gBAAgB,EAChB,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,GACjC,qCAAkC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 = exports.Watermark = exports.Teams = exports.Members = exports.IPFilters = exports.Brief = void 0;
|
|
5
|
+
var brief_1 = require("./brief.js");
|
|
6
|
+
Object.defineProperty(exports, "Brief", { enumerable: true, get: function () { return brief_1.Brief; } });
|
|
7
|
+
var ip_filters_1 = require("./ip-filters.js");
|
|
8
|
+
Object.defineProperty(exports, "IPFilters", { enumerable: true, get: function () { return ip_filters_1.IPFilters; } });
|
|
9
|
+
var members_1 = require("./members.js");
|
|
10
|
+
Object.defineProperty(exports, "Members", { enumerable: true, get: function () { return members_1.Members; } });
|
|
11
|
+
var teams_1 = require("./teams.js");
|
|
12
|
+
Object.defineProperty(exports, "Teams", { enumerable: true, get: function () { return teams_1.Teams; } });
|
|
13
|
+
var watermark_1 = require("./watermark.js");
|
|
14
|
+
Object.defineProperty(exports, "Watermark", { enumerable: true, get: function () { return watermark_1.Watermark; } });
|
|
15
|
+
var index_1 = require("./webhook-endpoints/index.js");
|
|
16
|
+
Object.defineProperty(exports, "WebhookEndpoints", { enumerable: true, get: function () { return index_1.WebhookEndpoints; } });
|
|
17
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/teams/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,8CAWsB;AAVpB,uGAAA,SAAS,OAAA;AAWX,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,oCASiB;AARf,8FAAA,KAAK,OAAA;AASP,4CAWqB;AAVnB,sGAAA,SAAS,OAAA;AAWX,sDASmC;AARjC,yGAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { Brief, } from "./brief.mjs";
|
|
3
|
+
export { IPFilters, } from "./ip-filters.mjs";
|
|
4
|
+
export { Members, } from "./members.mjs";
|
|
5
|
+
export { Teams, } from "./teams.mjs";
|
|
6
|
+
export { Watermark, } from "./watermark.mjs";
|
|
7
|
+
export { WebhookEndpoints, } from "./webhook-endpoints/index.mjs";
|
|
8
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/teams/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,KAAK,GAKN,oBAAgB;AACjB,OAAO,EACL,SAAS,GAUV,yBAAqB;AACtB,OAAO,EACL,OAAO,GAOR,sBAAkB;AACnB,OAAO,EACL,KAAK,GAQN,oBAAgB;AACjB,OAAO,EACL,SAAS,GAUV,wBAAoB;AACrB,OAAO,EACL,gBAAgB,GAQjB,sCAAkC"}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 IPFilters extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a custom IP-detection filter for a team (built-in filters are toggled via
|
|
7
|
+
* PUT /teams/{teamId}/ip-filters/{filterId})
|
|
8
|
+
*/
|
|
9
|
+
create(teamID: string, body: IPFilterCreateParams, options?: RequestOptions): APIPromise<IPFilterCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Enable, disable, or override a built-in or custom IP-detection filter for a team
|
|
12
|
+
*/
|
|
13
|
+
update(filterID: string, params: IPFilterUpdateParams, options?: RequestOptions): APIPromise<IPFilterUpdateResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* List the built-in and custom IP-detection filters available to a team, with
|
|
16
|
+
* their enabled state
|
|
17
|
+
*/
|
|
18
|
+
list(teamID: string, options?: RequestOptions): APIPromise<IPFilterListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a custom IP-detection filter for a team
|
|
21
|
+
*/
|
|
22
|
+
delete(filterID: string, params: IPFilterDeleteParams, options?: RequestOptions): APIPromise<IPFilterDeleteResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Draft a custom IP-detection filter instruction from reference assets (the caller
|
|
25
|
+
* must have read access to every asset)
|
|
26
|
+
*/
|
|
27
|
+
draftInstruction(teamID: string, body: IPFilterDraftInstructionParams, options?: RequestOptions): APIPromise<IPFilterDraftInstructionResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface IPFilterCreateResponse {
|
|
30
|
+
/**
|
|
31
|
+
* The created custom filter, including its enabled state
|
|
32
|
+
*/
|
|
33
|
+
filter: unknown;
|
|
34
|
+
}
|
|
35
|
+
export interface IPFilterUpdateResponse {
|
|
36
|
+
/**
|
|
37
|
+
* The updated filter, including its enabled state
|
|
38
|
+
*/
|
|
39
|
+
filter: unknown;
|
|
40
|
+
}
|
|
41
|
+
export interface IPFilterListResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Built-in and custom IP-detection filters for the team, each with its enabled
|
|
44
|
+
* state
|
|
45
|
+
*/
|
|
46
|
+
filters: Array<unknown>;
|
|
47
|
+
}
|
|
48
|
+
export interface IPFilterDeleteResponse {
|
|
49
|
+
/**
|
|
50
|
+
* True when the filter was deleted
|
|
51
|
+
*/
|
|
52
|
+
deleted: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface IPFilterDraftInstructionResponse {
|
|
55
|
+
/**
|
|
56
|
+
* Drafted natural-language detection instruction derived from the reference assets
|
|
57
|
+
*/
|
|
58
|
+
instruction: string;
|
|
59
|
+
}
|
|
60
|
+
export interface IPFilterCreateParams {
|
|
61
|
+
/**
|
|
62
|
+
* Filter category; use "custom" for customer-authored filters
|
|
63
|
+
*/
|
|
64
|
+
category: 'artist-style' | 'brand-trademark' | 'celebrity-likeness' | 'custom' | 'fictional-character';
|
|
65
|
+
/**
|
|
66
|
+
* Display name for the filter
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the filter is active
|
|
71
|
+
*/
|
|
72
|
+
enabled?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Natural-language detection instruction (required for custom filters)
|
|
75
|
+
*/
|
|
76
|
+
instruction?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Optional reference assets used only to generate the instruction
|
|
79
|
+
*/
|
|
80
|
+
sourceAssetIds?: Array<string>;
|
|
81
|
+
}
|
|
82
|
+
export interface IPFilterUpdateParams {
|
|
83
|
+
/**
|
|
84
|
+
* Path param: The team the filter belongs to
|
|
85
|
+
*/
|
|
86
|
+
teamId: string;
|
|
87
|
+
/**
|
|
88
|
+
* Body param: Whether the filter is active
|
|
89
|
+
*/
|
|
90
|
+
enabled?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Body param: Natural-language detection instruction
|
|
93
|
+
*/
|
|
94
|
+
instruction?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Body param: Display name for the filter
|
|
97
|
+
*/
|
|
98
|
+
name?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface IPFilterDeleteParams {
|
|
101
|
+
/**
|
|
102
|
+
* The team the filter belongs to
|
|
103
|
+
*/
|
|
104
|
+
teamId: string;
|
|
105
|
+
}
|
|
106
|
+
export interface IPFilterDraftInstructionParams {
|
|
107
|
+
/**
|
|
108
|
+
* Reference assets whose imagery seeds the drafted detection instruction
|
|
109
|
+
*/
|
|
110
|
+
assetIds: Array<string>;
|
|
111
|
+
}
|
|
112
|
+
export declare namespace IPFilters {
|
|
113
|
+
export { type IPFilterCreateResponse as IPFilterCreateResponse, type IPFilterUpdateResponse as IPFilterUpdateResponse, type IPFilterListResponse as IPFilterListResponse, type IPFilterDeleteResponse as IPFilterDeleteResponse, type IPFilterDraftInstructionResponse as IPFilterDraftInstructionResponse, type IPFilterCreateParams as IPFilterCreateParams, type IPFilterUpdateParams as IPFilterUpdateParams, type IPFilterDeleteParams as IPFilterDeleteParams, type IPFilterDraftInstructionParams as IPFilterDraftInstructionParams, };
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=ip-filters.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip-filters.d.mts","sourceRoot":"","sources":["../../src/resources/teams/ip-filters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAKrC;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAKrC;;;OAGG;IACH,gBAAgB,CACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;CAGhD;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,cAAc,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,QAAQ,GAAG,qBAAqB,CAAC;IAEvG;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
|
|
@@ -0,0 +1,115 @@
|
|
|
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 IPFilters extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a custom IP-detection filter for a team (built-in filters are toggled via
|
|
7
|
+
* PUT /teams/{teamId}/ip-filters/{filterId})
|
|
8
|
+
*/
|
|
9
|
+
create(teamID: string, body: IPFilterCreateParams, options?: RequestOptions): APIPromise<IPFilterCreateResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Enable, disable, or override a built-in or custom IP-detection filter for a team
|
|
12
|
+
*/
|
|
13
|
+
update(filterID: string, params: IPFilterUpdateParams, options?: RequestOptions): APIPromise<IPFilterUpdateResponse>;
|
|
14
|
+
/**
|
|
15
|
+
* List the built-in and custom IP-detection filters available to a team, with
|
|
16
|
+
* their enabled state
|
|
17
|
+
*/
|
|
18
|
+
list(teamID: string, options?: RequestOptions): APIPromise<IPFilterListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Delete a custom IP-detection filter for a team
|
|
21
|
+
*/
|
|
22
|
+
delete(filterID: string, params: IPFilterDeleteParams, options?: RequestOptions): APIPromise<IPFilterDeleteResponse>;
|
|
23
|
+
/**
|
|
24
|
+
* Draft a custom IP-detection filter instruction from reference assets (the caller
|
|
25
|
+
* must have read access to every asset)
|
|
26
|
+
*/
|
|
27
|
+
draftInstruction(teamID: string, body: IPFilterDraftInstructionParams, options?: RequestOptions): APIPromise<IPFilterDraftInstructionResponse>;
|
|
28
|
+
}
|
|
29
|
+
export interface IPFilterCreateResponse {
|
|
30
|
+
/**
|
|
31
|
+
* The created custom filter, including its enabled state
|
|
32
|
+
*/
|
|
33
|
+
filter: unknown;
|
|
34
|
+
}
|
|
35
|
+
export interface IPFilterUpdateResponse {
|
|
36
|
+
/**
|
|
37
|
+
* The updated filter, including its enabled state
|
|
38
|
+
*/
|
|
39
|
+
filter: unknown;
|
|
40
|
+
}
|
|
41
|
+
export interface IPFilterListResponse {
|
|
42
|
+
/**
|
|
43
|
+
* Built-in and custom IP-detection filters for the team, each with its enabled
|
|
44
|
+
* state
|
|
45
|
+
*/
|
|
46
|
+
filters: Array<unknown>;
|
|
47
|
+
}
|
|
48
|
+
export interface IPFilterDeleteResponse {
|
|
49
|
+
/**
|
|
50
|
+
* True when the filter was deleted
|
|
51
|
+
*/
|
|
52
|
+
deleted: boolean;
|
|
53
|
+
}
|
|
54
|
+
export interface IPFilterDraftInstructionResponse {
|
|
55
|
+
/**
|
|
56
|
+
* Drafted natural-language detection instruction derived from the reference assets
|
|
57
|
+
*/
|
|
58
|
+
instruction: string;
|
|
59
|
+
}
|
|
60
|
+
export interface IPFilterCreateParams {
|
|
61
|
+
/**
|
|
62
|
+
* Filter category; use "custom" for customer-authored filters
|
|
63
|
+
*/
|
|
64
|
+
category: 'artist-style' | 'brand-trademark' | 'celebrity-likeness' | 'custom' | 'fictional-character';
|
|
65
|
+
/**
|
|
66
|
+
* Display name for the filter
|
|
67
|
+
*/
|
|
68
|
+
name: string;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the filter is active
|
|
71
|
+
*/
|
|
72
|
+
enabled?: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Natural-language detection instruction (required for custom filters)
|
|
75
|
+
*/
|
|
76
|
+
instruction?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Optional reference assets used only to generate the instruction
|
|
79
|
+
*/
|
|
80
|
+
sourceAssetIds?: Array<string>;
|
|
81
|
+
}
|
|
82
|
+
export interface IPFilterUpdateParams {
|
|
83
|
+
/**
|
|
84
|
+
* Path param: The team the filter belongs to
|
|
85
|
+
*/
|
|
86
|
+
teamId: string;
|
|
87
|
+
/**
|
|
88
|
+
* Body param: Whether the filter is active
|
|
89
|
+
*/
|
|
90
|
+
enabled?: boolean;
|
|
91
|
+
/**
|
|
92
|
+
* Body param: Natural-language detection instruction
|
|
93
|
+
*/
|
|
94
|
+
instruction?: string;
|
|
95
|
+
/**
|
|
96
|
+
* Body param: Display name for the filter
|
|
97
|
+
*/
|
|
98
|
+
name?: string;
|
|
99
|
+
}
|
|
100
|
+
export interface IPFilterDeleteParams {
|
|
101
|
+
/**
|
|
102
|
+
* The team the filter belongs to
|
|
103
|
+
*/
|
|
104
|
+
teamId: string;
|
|
105
|
+
}
|
|
106
|
+
export interface IPFilterDraftInstructionParams {
|
|
107
|
+
/**
|
|
108
|
+
* Reference assets whose imagery seeds the drafted detection instruction
|
|
109
|
+
*/
|
|
110
|
+
assetIds: Array<string>;
|
|
111
|
+
}
|
|
112
|
+
export declare namespace IPFilters {
|
|
113
|
+
export { type IPFilterCreateResponse as IPFilterCreateResponse, type IPFilterUpdateResponse as IPFilterUpdateResponse, type IPFilterListResponse as IPFilterListResponse, type IPFilterDeleteResponse as IPFilterDeleteResponse, type IPFilterDraftInstructionResponse as IPFilterDraftInstructionResponse, type IPFilterCreateParams as IPFilterCreateParams, type IPFilterUpdateParams as IPFilterUpdateParams, type IPFilterDeleteParams as IPFilterDeleteParams, type IPFilterDraftInstructionParams as IPFilterDraftInstructionParams, };
|
|
114
|
+
}
|
|
115
|
+
//# sourceMappingURL=ip-filters.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip-filters.d.ts","sourceRoot":"","sources":["../../src/resources/teams/ip-filters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAKrC;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAKrC;;;OAGG;IACH,gBAAgB,CACd,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,8BAA8B,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,gCAAgC,CAAC;CAGhD;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACnC;;;OAGG;IACH,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;CACzB;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,gCAAgC;IAC/C;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,QAAQ,EAAE,cAAc,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,QAAQ,GAAG,qBAAqB,CAAC;IAEvG;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CAChC;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,oBAAoB;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,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.IPFilters = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
7
|
+
class IPFilters extends resource_1.APIResource {
|
|
8
|
+
/**
|
|
9
|
+
* Create a custom IP-detection filter for a team (built-in filters are toggled via
|
|
10
|
+
* PUT /teams/{teamId}/ip-filters/{filterId})
|
|
11
|
+
*/
|
|
12
|
+
create(teamID, body, options) {
|
|
13
|
+
return this._client.post((0, path_1.path) `/teams/${teamID}/ip-filters`, { body, ...options });
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Enable, disable, or override a built-in or custom IP-detection filter for a team
|
|
17
|
+
*/
|
|
18
|
+
update(filterID, params, options) {
|
|
19
|
+
const { teamId, ...body } = params;
|
|
20
|
+
return this._client.put((0, path_1.path) `/teams/${teamId}/ip-filters/${filterID}`, { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* List the built-in and custom IP-detection filters available to a team, with
|
|
24
|
+
* their enabled state
|
|
25
|
+
*/
|
|
26
|
+
list(teamID, options) {
|
|
27
|
+
return this._client.get((0, path_1.path) `/teams/${teamID}/ip-filters`, options);
|
|
28
|
+
}
|
|
29
|
+
/**
|
|
30
|
+
* Delete a custom IP-detection filter for a team
|
|
31
|
+
*/
|
|
32
|
+
delete(filterID, params, options) {
|
|
33
|
+
const { teamId } = params;
|
|
34
|
+
return this._client.delete((0, path_1.path) `/teams/${teamId}/ip-filters/${filterID}`, options);
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Draft a custom IP-detection filter instruction from reference assets (the caller
|
|
38
|
+
* must have read access to every asset)
|
|
39
|
+
*/
|
|
40
|
+
draftInstruction(teamID, body, options) {
|
|
41
|
+
return this._client.post((0, path_1.path) `/teams/${teamID}/ip-filters/draft-instruction`, { body, ...options });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
exports.IPFilters = IPFilters;
|
|
45
|
+
//# sourceMappingURL=ip-filters.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip-filters.js","sourceRoot":"","sources":["../../src/resources/teams/ip-filters.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;OAGG;IACH,MAAM,CACJ,MAAc,EACd,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA4B,EAC5B,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,eAAe,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,aAAa,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,MAAc,EACd,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;AAxDD,8BAwDC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
export class IPFilters extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Create a custom IP-detection filter for a team (built-in filters are toggled via
|
|
7
|
+
* PUT /teams/{teamId}/ip-filters/{filterId})
|
|
8
|
+
*/
|
|
9
|
+
create(teamID, body, options) {
|
|
10
|
+
return this._client.post(path `/teams/${teamID}/ip-filters`, { body, ...options });
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* Enable, disable, or override a built-in or custom IP-detection filter for a team
|
|
14
|
+
*/
|
|
15
|
+
update(filterID, params, options) {
|
|
16
|
+
const { teamId, ...body } = params;
|
|
17
|
+
return this._client.put(path `/teams/${teamId}/ip-filters/${filterID}`, { body, ...options });
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* List the built-in and custom IP-detection filters available to a team, with
|
|
21
|
+
* their enabled state
|
|
22
|
+
*/
|
|
23
|
+
list(teamID, options) {
|
|
24
|
+
return this._client.get(path `/teams/${teamID}/ip-filters`, options);
|
|
25
|
+
}
|
|
26
|
+
/**
|
|
27
|
+
* Delete a custom IP-detection filter for a team
|
|
28
|
+
*/
|
|
29
|
+
delete(filterID, params, options) {
|
|
30
|
+
const { teamId } = params;
|
|
31
|
+
return this._client.delete(path `/teams/${teamId}/ip-filters/${filterID}`, options);
|
|
32
|
+
}
|
|
33
|
+
/**
|
|
34
|
+
* Draft a custom IP-detection filter instruction from reference assets (the caller
|
|
35
|
+
* must have read access to every asset)
|
|
36
|
+
*/
|
|
37
|
+
draftInstruction(teamID, body, options) {
|
|
38
|
+
return this._client.post(path `/teams/${teamID}/ip-filters/draft-instruction`, { body, ...options });
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=ip-filters.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ip-filters.mjs","sourceRoot":"","sources":["../../src/resources/teams/ip-filters.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,MAAM,CACJ,MAAc,EACd,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,eAAe,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,aAAa,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,UAAU,MAAM,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,MAAc,EACd,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF"}
|