@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,149 @@
|
|
|
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 Brief extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the project's Quality Gate brief
|
|
7
|
+
*/
|
|
8
|
+
retrieve(projectID: string, options?: RequestOptions): APIPromise<BriefRetrieveResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Create or update the project's Quality Gate brief
|
|
11
|
+
*/
|
|
12
|
+
update(projectID: string, body: BriefUpdateParams, options?: RequestOptions): APIPromise<BriefUpdateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Delete the project's Quality Gate brief
|
|
15
|
+
*/
|
|
16
|
+
delete(projectID: string, options?: RequestOptions): APIPromise<BriefDeleteResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface BriefRetrieveResponse {
|
|
19
|
+
/**
|
|
20
|
+
* A brand-style / project-rules / campaign-context brief stored at one scope.
|
|
21
|
+
*/
|
|
22
|
+
brief: BriefRetrieveResponse.Brief;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace BriefRetrieveResponse {
|
|
25
|
+
/**
|
|
26
|
+
* A brand-style / project-rules / campaign-context brief stored at one scope.
|
|
27
|
+
*/
|
|
28
|
+
interface Brief {
|
|
29
|
+
/**
|
|
30
|
+
* Stable identifier derived from level + scopeId
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* Free-text brief: brand style, rules, campaign context
|
|
35
|
+
*/
|
|
36
|
+
body: string;
|
|
37
|
+
/**
|
|
38
|
+
* ISO-8601 creation timestamp
|
|
39
|
+
*/
|
|
40
|
+
createdAt: string;
|
|
41
|
+
/**
|
|
42
|
+
* User id that last wrote the brief
|
|
43
|
+
*/
|
|
44
|
+
createdBy: string;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the brief is applied during verification
|
|
47
|
+
*/
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Scope this brief applies to: team or project
|
|
51
|
+
*/
|
|
52
|
+
level: 'project' | 'team';
|
|
53
|
+
/**
|
|
54
|
+
* Reference assets the verifier compares the image against
|
|
55
|
+
*/
|
|
56
|
+
referenceAssetIds: Array<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The id of the team or project that owns this brief
|
|
59
|
+
*/
|
|
60
|
+
scopeId: string;
|
|
61
|
+
/**
|
|
62
|
+
* ISO-8601 last-update timestamp
|
|
63
|
+
*/
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
/**
|
|
66
|
+
* Threshold strictness applied when verifying against this scope
|
|
67
|
+
*/
|
|
68
|
+
sensitivity?: 'high' | 'low' | 'medium';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export interface BriefUpdateResponse {
|
|
72
|
+
/**
|
|
73
|
+
* A brand-style / project-rules / campaign-context brief stored at one scope.
|
|
74
|
+
*/
|
|
75
|
+
brief: BriefUpdateResponse.Brief;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace BriefUpdateResponse {
|
|
78
|
+
/**
|
|
79
|
+
* A brand-style / project-rules / campaign-context brief stored at one scope.
|
|
80
|
+
*/
|
|
81
|
+
interface Brief {
|
|
82
|
+
/**
|
|
83
|
+
* Stable identifier derived from level + scopeId
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
/**
|
|
87
|
+
* Free-text brief: brand style, rules, campaign context
|
|
88
|
+
*/
|
|
89
|
+
body: string;
|
|
90
|
+
/**
|
|
91
|
+
* ISO-8601 creation timestamp
|
|
92
|
+
*/
|
|
93
|
+
createdAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* User id that last wrote the brief
|
|
96
|
+
*/
|
|
97
|
+
createdBy: string;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the brief is applied during verification
|
|
100
|
+
*/
|
|
101
|
+
enabled: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Scope this brief applies to: team or project
|
|
104
|
+
*/
|
|
105
|
+
level: 'project' | 'team';
|
|
106
|
+
/**
|
|
107
|
+
* Reference assets the verifier compares the image against
|
|
108
|
+
*/
|
|
109
|
+
referenceAssetIds: Array<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The id of the team or project that owns this brief
|
|
112
|
+
*/
|
|
113
|
+
scopeId: string;
|
|
114
|
+
/**
|
|
115
|
+
* ISO-8601 last-update timestamp
|
|
116
|
+
*/
|
|
117
|
+
updatedAt: string;
|
|
118
|
+
/**
|
|
119
|
+
* Threshold strictness applied when verifying against this scope
|
|
120
|
+
*/
|
|
121
|
+
sensitivity?: 'high' | 'low' | 'medium';
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export interface BriefDeleteResponse {
|
|
125
|
+
deleted: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface BriefUpdateParams {
|
|
128
|
+
/**
|
|
129
|
+
* Free-text brief content
|
|
130
|
+
*/
|
|
131
|
+
body: string;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the brief is applied during verification (default true)
|
|
134
|
+
*/
|
|
135
|
+
enabled?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Reference assets the verifier compares against (max 10). Send [] to clear.
|
|
138
|
+
*/
|
|
139
|
+
referenceAssetIds?: Array<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Threshold strictness stored for this scope: low, medium, or high. Applied to
|
|
142
|
+
* verifications unless the verify call passes its own sensitivity.
|
|
143
|
+
*/
|
|
144
|
+
sensitivity?: 'high' | 'low' | 'medium';
|
|
145
|
+
}
|
|
146
|
+
export declare namespace Brief {
|
|
147
|
+
export { type BriefRetrieveResponse as BriefRetrieveResponse, type BriefUpdateResponse as BriefUpdateResponse, type BriefDeleteResponse as BriefDeleteResponse, type BriefUpdateParams as BriefUpdateParams, };
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=brief.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief.d.mts","sourceRoot":"","sources":["../../src/resources/projects/brief.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIxF;;OAEG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGrF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC;CACpC;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;QAEjB;;WAEG;QACH,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;QAE1B;;WAEG;QACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEjC;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;KACzC;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC;CAClC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;QAEjB;;WAEG;QACH,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;QAE1B;;WAEG;QACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEjC;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;KACzC;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAElC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -0,0 +1,149 @@
|
|
|
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 Brief extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the project's Quality Gate brief
|
|
7
|
+
*/
|
|
8
|
+
retrieve(projectID: string, options?: RequestOptions): APIPromise<BriefRetrieveResponse>;
|
|
9
|
+
/**
|
|
10
|
+
* Create or update the project's Quality Gate brief
|
|
11
|
+
*/
|
|
12
|
+
update(projectID: string, body: BriefUpdateParams, options?: RequestOptions): APIPromise<BriefUpdateResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* Delete the project's Quality Gate brief
|
|
15
|
+
*/
|
|
16
|
+
delete(projectID: string, options?: RequestOptions): APIPromise<BriefDeleteResponse>;
|
|
17
|
+
}
|
|
18
|
+
export interface BriefRetrieveResponse {
|
|
19
|
+
/**
|
|
20
|
+
* A brand-style / project-rules / campaign-context brief stored at one scope.
|
|
21
|
+
*/
|
|
22
|
+
brief: BriefRetrieveResponse.Brief;
|
|
23
|
+
}
|
|
24
|
+
export declare namespace BriefRetrieveResponse {
|
|
25
|
+
/**
|
|
26
|
+
* A brand-style / project-rules / campaign-context brief stored at one scope.
|
|
27
|
+
*/
|
|
28
|
+
interface Brief {
|
|
29
|
+
/**
|
|
30
|
+
* Stable identifier derived from level + scopeId
|
|
31
|
+
*/
|
|
32
|
+
id: string;
|
|
33
|
+
/**
|
|
34
|
+
* Free-text brief: brand style, rules, campaign context
|
|
35
|
+
*/
|
|
36
|
+
body: string;
|
|
37
|
+
/**
|
|
38
|
+
* ISO-8601 creation timestamp
|
|
39
|
+
*/
|
|
40
|
+
createdAt: string;
|
|
41
|
+
/**
|
|
42
|
+
* User id that last wrote the brief
|
|
43
|
+
*/
|
|
44
|
+
createdBy: string;
|
|
45
|
+
/**
|
|
46
|
+
* Whether the brief is applied during verification
|
|
47
|
+
*/
|
|
48
|
+
enabled: boolean;
|
|
49
|
+
/**
|
|
50
|
+
* Scope this brief applies to: team or project
|
|
51
|
+
*/
|
|
52
|
+
level: 'project' | 'team';
|
|
53
|
+
/**
|
|
54
|
+
* Reference assets the verifier compares the image against
|
|
55
|
+
*/
|
|
56
|
+
referenceAssetIds: Array<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The id of the team or project that owns this brief
|
|
59
|
+
*/
|
|
60
|
+
scopeId: string;
|
|
61
|
+
/**
|
|
62
|
+
* ISO-8601 last-update timestamp
|
|
63
|
+
*/
|
|
64
|
+
updatedAt: string;
|
|
65
|
+
/**
|
|
66
|
+
* Threshold strictness applied when verifying against this scope
|
|
67
|
+
*/
|
|
68
|
+
sensitivity?: 'high' | 'low' | 'medium';
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
export interface BriefUpdateResponse {
|
|
72
|
+
/**
|
|
73
|
+
* A brand-style / project-rules / campaign-context brief stored at one scope.
|
|
74
|
+
*/
|
|
75
|
+
brief: BriefUpdateResponse.Brief;
|
|
76
|
+
}
|
|
77
|
+
export declare namespace BriefUpdateResponse {
|
|
78
|
+
/**
|
|
79
|
+
* A brand-style / project-rules / campaign-context brief stored at one scope.
|
|
80
|
+
*/
|
|
81
|
+
interface Brief {
|
|
82
|
+
/**
|
|
83
|
+
* Stable identifier derived from level + scopeId
|
|
84
|
+
*/
|
|
85
|
+
id: string;
|
|
86
|
+
/**
|
|
87
|
+
* Free-text brief: brand style, rules, campaign context
|
|
88
|
+
*/
|
|
89
|
+
body: string;
|
|
90
|
+
/**
|
|
91
|
+
* ISO-8601 creation timestamp
|
|
92
|
+
*/
|
|
93
|
+
createdAt: string;
|
|
94
|
+
/**
|
|
95
|
+
* User id that last wrote the brief
|
|
96
|
+
*/
|
|
97
|
+
createdBy: string;
|
|
98
|
+
/**
|
|
99
|
+
* Whether the brief is applied during verification
|
|
100
|
+
*/
|
|
101
|
+
enabled: boolean;
|
|
102
|
+
/**
|
|
103
|
+
* Scope this brief applies to: team or project
|
|
104
|
+
*/
|
|
105
|
+
level: 'project' | 'team';
|
|
106
|
+
/**
|
|
107
|
+
* Reference assets the verifier compares the image against
|
|
108
|
+
*/
|
|
109
|
+
referenceAssetIds: Array<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The id of the team or project that owns this brief
|
|
112
|
+
*/
|
|
113
|
+
scopeId: string;
|
|
114
|
+
/**
|
|
115
|
+
* ISO-8601 last-update timestamp
|
|
116
|
+
*/
|
|
117
|
+
updatedAt: string;
|
|
118
|
+
/**
|
|
119
|
+
* Threshold strictness applied when verifying against this scope
|
|
120
|
+
*/
|
|
121
|
+
sensitivity?: 'high' | 'low' | 'medium';
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
export interface BriefDeleteResponse {
|
|
125
|
+
deleted: boolean;
|
|
126
|
+
}
|
|
127
|
+
export interface BriefUpdateParams {
|
|
128
|
+
/**
|
|
129
|
+
* Free-text brief content
|
|
130
|
+
*/
|
|
131
|
+
body: string;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the brief is applied during verification (default true)
|
|
134
|
+
*/
|
|
135
|
+
enabled?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Reference assets the verifier compares against (max 10). Send [] to clear.
|
|
138
|
+
*/
|
|
139
|
+
referenceAssetIds?: Array<string>;
|
|
140
|
+
/**
|
|
141
|
+
* Threshold strictness stored for this scope: low, medium, or high. Applied to
|
|
142
|
+
* verifications unless the verify call passes its own sensitivity.
|
|
143
|
+
*/
|
|
144
|
+
sensitivity?: 'high' | 'low' | 'medium';
|
|
145
|
+
}
|
|
146
|
+
export declare namespace Brief {
|
|
147
|
+
export { type BriefRetrieveResponse as BriefRetrieveResponse, type BriefUpdateResponse as BriefUpdateResponse, type BriefDeleteResponse as BriefDeleteResponse, type BriefUpdateParams as BriefUpdateParams, };
|
|
148
|
+
}
|
|
149
|
+
//# sourceMappingURL=brief.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief.d.ts","sourceRoot":"","sources":["../../src/resources/projects/brief.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,KAAM,SAAQ,WAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAIxF;;OAEG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,iBAAiB,EACvB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,mBAAmB,CAAC;IAIlC;;OAEG;IACH,MAAM,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,mBAAmB,CAAC;CAGrF;AAED,MAAM,WAAW,qBAAqB;IACpC;;OAEG;IACH,KAAK,EAAE,qBAAqB,CAAC,KAAK,CAAC;CACpC;AAED,yBAAiB,qBAAqB,CAAC;IACrC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;QAEjB;;WAEG;QACH,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;QAE1B;;WAEG;QACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEjC;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;KACzC;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC;;OAEG;IACH,KAAK,EAAE,mBAAmB,CAAC,KAAK,CAAC;CAClC;AAED,yBAAiB,mBAAmB,CAAC;IACnC;;OAEG;IACH,UAAiB,KAAK;QACpB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,OAAO,EAAE,OAAO,CAAC;QAEjB;;WAEG;QACH,KAAK,EAAE,SAAS,GAAG,MAAM,CAAC;QAE1B;;WAEG;QACH,iBAAiB,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;QAEjC;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;KACzC;CACF;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IAEb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAElB;;OAEG;IACH,iBAAiB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAElC;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,KAAK,GAAG,QAAQ,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,KAAK,CAAC;IAC7B,OAAO,EACL,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,iBAAiB,IAAI,iBAAiB,GAC5C,CAAC;CACH"}
|
|
@@ -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 project's Quality Gate brief
|
|
10
|
+
*/
|
|
11
|
+
retrieve(projectID, options) {
|
|
12
|
+
return this._client.get((0, path_1.path) `/projects/${projectID}/brief`, options);
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Create or update the project's Quality Gate brief
|
|
16
|
+
*/
|
|
17
|
+
update(projectID, body, options) {
|
|
18
|
+
return this._client.put((0, path_1.path) `/projects/${projectID}/brief`, { body, ...options });
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* Delete the project's Quality Gate brief
|
|
22
|
+
*/
|
|
23
|
+
delete(projectID, options) {
|
|
24
|
+
return this._client.delete((0, path_1.path) `/projects/${projectID}/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/projects/brief.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IACpC;;OAEG;IACH,QAAQ,CAAC,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,SAAS,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF;AAzBD,sBAyBC"}
|
|
@@ -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 project's Quality Gate brief
|
|
7
|
+
*/
|
|
8
|
+
retrieve(projectID, options) {
|
|
9
|
+
return this._client.get(path `/projects/${projectID}/brief`, options);
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Create or update the project's Quality Gate brief
|
|
13
|
+
*/
|
|
14
|
+
update(projectID, body, options) {
|
|
15
|
+
return this._client.put(path `/projects/${projectID}/brief`, { body, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Delete the project's Quality Gate brief
|
|
19
|
+
*/
|
|
20
|
+
delete(projectID, options) {
|
|
21
|
+
return this._client.delete(path `/projects/${projectID}/brief`, options);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=brief.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"brief.mjs","sourceRoot":"","sources":["../../src/resources/projects/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,SAAiB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,QAAQ,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,SAAiB,EACjB,IAAuB,EACvB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,aAAa,SAAS,QAAQ,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,SAAiB,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,aAAa,SAAS,QAAQ,EAAE,OAAO,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { APIKeys, type APIKeyCreateResponse, type APIKeyDeleteResponse, type APIKeyCreateParams, type APIKeyDeleteParams, } from "./api-keys.mjs";
|
|
2
|
+
export { Brief, type BriefRetrieveResponse, type BriefUpdateResponse, type BriefDeleteResponse, type BriefUpdateParams, } from "./brief.mjs";
|
|
3
|
+
export { Instructions, type InstructionRetrieveResponse, type InstructionUpdateResponse, type InstructionUpdateParams, } from "./instructions.mjs";
|
|
4
|
+
export { Members, type MemberCreateResponse, type MemberUpdateResponse, type MemberDeleteResponse, type MemberCreateParams, type MemberUpdateParams, type MemberDeleteParams, } from "./members.mjs";
|
|
5
|
+
export { Memory, type MemoryRetrieveResponse, type MemoryUpdateResponse, type MemoryUpdateParams, } from "./memory.mjs";
|
|
6
|
+
export { Projects, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectUpdateResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, type ProjectListParams, type ProjectListResponsesProjectsCursor, } from "./projects.mjs";
|
|
7
|
+
export { Watermark, type WatermarkRetrieveResponse, type WatermarkUpdateResponse, type WatermarkDeleteResponse, type WatermarkDeleteLogoResponse, type WatermarkPreviewResponse, type WatermarkUpdateLogoResponse, type WatermarkUpdateParams, type WatermarkPreviewParams, type WatermarkUpdateLogoParams, } from "./watermark.mjs";
|
|
8
|
+
export { WebhookEndpoints, type WebhookEndpointCreateResponse, type WebhookEndpointUpdateResponse, type WebhookEndpointListResponse, type WebhookEndpointDeleteResponse, type WebhookEndpointCreateParams, type WebhookEndpointUpdateParams, type WebhookEndpointDeleteParams, } from "./webhook-endpoints/index.mjs";
|
|
9
|
+
//# sourceMappingURL=index.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,uBAAmB;AACpB,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,oBAAgB;AACjB,OAAO,EACL,YAAY,EACZ,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,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,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,qBAAiB;AAClB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kCAAkC,GACxC,uBAAmB;AACpB,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,9 @@
|
|
|
1
|
+
export { APIKeys, type APIKeyCreateResponse, type APIKeyDeleteResponse, type APIKeyCreateParams, type APIKeyDeleteParams, } from "./api-keys.js";
|
|
2
|
+
export { Brief, type BriefRetrieveResponse, type BriefUpdateResponse, type BriefDeleteResponse, type BriefUpdateParams, } from "./brief.js";
|
|
3
|
+
export { Instructions, type InstructionRetrieveResponse, type InstructionUpdateResponse, type InstructionUpdateParams, } from "./instructions.js";
|
|
4
|
+
export { Members, type MemberCreateResponse, type MemberUpdateResponse, type MemberDeleteResponse, type MemberCreateParams, type MemberUpdateParams, type MemberDeleteParams, } from "./members.js";
|
|
5
|
+
export { Memory, type MemoryRetrieveResponse, type MemoryUpdateResponse, type MemoryUpdateParams, } from "./memory.js";
|
|
6
|
+
export { Projects, type ProjectCreateResponse, type ProjectRetrieveResponse, type ProjectUpdateResponse, type ProjectListResponse, type ProjectDeleteResponse, type ProjectCreateParams, type ProjectUpdateParams, type ProjectListParams, type ProjectListResponsesProjectsCursor, } from "./projects.js";
|
|
7
|
+
export { Watermark, type WatermarkRetrieveResponse, type WatermarkUpdateResponse, type WatermarkDeleteResponse, type WatermarkDeleteLogoResponse, type WatermarkPreviewResponse, type WatermarkUpdateLogoResponse, type WatermarkUpdateParams, type WatermarkPreviewParams, type WatermarkUpdateLogoParams, } from "./watermark.js";
|
|
8
|
+
export { WebhookEndpoints, type WebhookEndpointCreateResponse, type WebhookEndpointUpdateResponse, type WebhookEndpointListResponse, type WebhookEndpointDeleteResponse, type WebhookEndpointCreateParams, type WebhookEndpointUpdateParams, type WebhookEndpointDeleteParams, } from "./webhook-endpoints/index.js";
|
|
9
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB,sBAAmB;AACpB,OAAO,EACL,KAAK,EACL,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,GACvB,mBAAgB;AACjB,OAAO,EACL,YAAY,EACZ,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,0BAAuB;AACxB,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,MAAM,EACN,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,GACxB,oBAAiB;AAClB,OAAO,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,kCAAkC,GACxC,sBAAmB;AACpB,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,21 @@
|
|
|
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.Projects = exports.Memory = exports.Members = exports.Instructions = exports.Brief = exports.APIKeys = void 0;
|
|
5
|
+
var api_keys_1 = require("./api-keys.js");
|
|
6
|
+
Object.defineProperty(exports, "APIKeys", { enumerable: true, get: function () { return api_keys_1.APIKeys; } });
|
|
7
|
+
var brief_1 = require("./brief.js");
|
|
8
|
+
Object.defineProperty(exports, "Brief", { enumerable: true, get: function () { return brief_1.Brief; } });
|
|
9
|
+
var instructions_1 = require("./instructions.js");
|
|
10
|
+
Object.defineProperty(exports, "Instructions", { enumerable: true, get: function () { return instructions_1.Instructions; } });
|
|
11
|
+
var members_1 = require("./members.js");
|
|
12
|
+
Object.defineProperty(exports, "Members", { enumerable: true, get: function () { return members_1.Members; } });
|
|
13
|
+
var memory_1 = require("./memory.js");
|
|
14
|
+
Object.defineProperty(exports, "Memory", { enumerable: true, get: function () { return memory_1.Memory; } });
|
|
15
|
+
var projects_1 = require("./projects.js");
|
|
16
|
+
Object.defineProperty(exports, "Projects", { enumerable: true, get: function () { return projects_1.Projects; } });
|
|
17
|
+
var watermark_1 = require("./watermark.js");
|
|
18
|
+
Object.defineProperty(exports, "Watermark", { enumerable: true, get: function () { return watermark_1.Watermark; } });
|
|
19
|
+
var index_1 = require("./webhook-endpoints/index.js");
|
|
20
|
+
Object.defineProperty(exports, "WebhookEndpoints", { enumerable: true, get: function () { return index_1.WebhookEndpoints; } });
|
|
21
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,0CAMoB;AALlB,mGAAA,OAAO,OAAA;AAMT,oCAMiB;AALf,8FAAA,KAAK,OAAA;AAMP,kDAKwB;AAJtB,4GAAA,YAAY,OAAA;AAKd,wCAQmB;AAPjB,kGAAA,OAAO,OAAA;AAQT,sCAKkB;AAJhB,gGAAA,MAAM,OAAA;AAKR,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,4CAWqB;AAVnB,sGAAA,SAAS,OAAA;AAWX,sDASmC;AARjC,yGAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
export { APIKeys, } from "./api-keys.mjs";
|
|
3
|
+
export { Brief, } from "./brief.mjs";
|
|
4
|
+
export { Instructions, } from "./instructions.mjs";
|
|
5
|
+
export { Members, } from "./members.mjs";
|
|
6
|
+
export { Memory, } from "./memory.mjs";
|
|
7
|
+
export { Projects, } from "./projects.mjs";
|
|
8
|
+
export { Watermark, } from "./watermark.mjs";
|
|
9
|
+
export { WebhookEndpoints, } from "./webhook-endpoints/index.mjs";
|
|
10
|
+
//# sourceMappingURL=index.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/projects/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAKR,uBAAmB;AACpB,OAAO,EACL,KAAK,GAKN,oBAAgB;AACjB,OAAO,EACL,YAAY,GAIb,2BAAuB;AACxB,OAAO,EACL,OAAO,GAOR,sBAAkB;AACnB,OAAO,EACL,MAAM,GAIP,qBAAiB;AAClB,OAAO,EACL,QAAQ,GAUT,uBAAmB;AACpB,OAAO,EACL,SAAS,GAUV,wBAAoB;AACrB,OAAO,EACL,gBAAgB,GAQjB,sCAAkC"}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 Instructions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the project's assistant instructions (markdown). Returns 404 if not set. Any
|
|
7
|
+
* project member can read.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(projectID: string, options?: RequestOptions): APIPromise<InstructionRetrieveResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Set the project's assistant instructions (markdown, max 50KB). Set content to
|
|
12
|
+
* null to clear. Team or project admins only.
|
|
13
|
+
*/
|
|
14
|
+
update(projectID: string, body: InstructionUpdateParams, options?: RequestOptions): APIPromise<InstructionUpdateResponse>;
|
|
15
|
+
}
|
|
16
|
+
export interface InstructionRetrieveResponse {
|
|
17
|
+
/**
|
|
18
|
+
* Public JSON shape returned by GET endpoints
|
|
19
|
+
*/
|
|
20
|
+
memory: InstructionRetrieveResponse.Memory;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace InstructionRetrieveResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Public JSON shape returned by GET endpoints
|
|
25
|
+
*/
|
|
26
|
+
interface Memory {
|
|
27
|
+
/**
|
|
28
|
+
* The memory ID — deterministic from scope + parent IDs (example:
|
|
29
|
+
* "mem_team_team_abc")
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Markdown content of the memory
|
|
34
|
+
*/
|
|
35
|
+
content: string;
|
|
36
|
+
/**
|
|
37
|
+
* ISO 8601 timestamp when the memory was first written
|
|
38
|
+
*/
|
|
39
|
+
createdAt: string;
|
|
40
|
+
/**
|
|
41
|
+
* UTF-8 byte length of the content — used for quota enforcement
|
|
42
|
+
*/
|
|
43
|
+
sizeBytes: number;
|
|
44
|
+
/**
|
|
45
|
+
* ISO 8601 timestamp when the memory was last updated
|
|
46
|
+
*/
|
|
47
|
+
updatedAt: string;
|
|
48
|
+
/**
|
|
49
|
+
* The userId of the last writer — useful for audit/UI
|
|
50
|
+
*/
|
|
51
|
+
updatedBy: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export interface InstructionUpdateResponse {
|
|
55
|
+
/**
|
|
56
|
+
* Public JSON shape returned by GET endpoints
|
|
57
|
+
*/
|
|
58
|
+
memory?: InstructionUpdateResponse.Memory;
|
|
59
|
+
}
|
|
60
|
+
export declare namespace InstructionUpdateResponse {
|
|
61
|
+
/**
|
|
62
|
+
* Public JSON shape returned by GET endpoints
|
|
63
|
+
*/
|
|
64
|
+
interface Memory {
|
|
65
|
+
/**
|
|
66
|
+
* The memory ID — deterministic from scope + parent IDs (example:
|
|
67
|
+
* "mem_team_team_abc")
|
|
68
|
+
*/
|
|
69
|
+
id: string;
|
|
70
|
+
/**
|
|
71
|
+
* Markdown content of the memory
|
|
72
|
+
*/
|
|
73
|
+
content: string;
|
|
74
|
+
/**
|
|
75
|
+
* ISO 8601 timestamp when the memory was first written
|
|
76
|
+
*/
|
|
77
|
+
createdAt: string;
|
|
78
|
+
/**
|
|
79
|
+
* UTF-8 byte length of the content — used for quota enforcement
|
|
80
|
+
*/
|
|
81
|
+
sizeBytes: number;
|
|
82
|
+
/**
|
|
83
|
+
* ISO 8601 timestamp when the memory was last updated
|
|
84
|
+
*/
|
|
85
|
+
updatedAt: string;
|
|
86
|
+
/**
|
|
87
|
+
* The userId of the last writer — useful for audit/UI
|
|
88
|
+
*/
|
|
89
|
+
updatedBy: string;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export interface InstructionUpdateParams {
|
|
93
|
+
/**
|
|
94
|
+
* Markdown content of the memory. Set to null to clear. Max size depends on the
|
|
95
|
+
* scope (20-50 KB).
|
|
96
|
+
*/
|
|
97
|
+
content?: string;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace Instructions {
|
|
100
|
+
export { type InstructionRetrieveResponse as InstructionRetrieveResponse, type InstructionUpdateResponse as InstructionUpdateResponse, type InstructionUpdateParams as InstructionUpdateParams, };
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=instructions.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instructions.d.mts","sourceRoot":"","sources":["../../src/resources/projects/instructions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI9F;;;OAGG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAC,MAAM,CAAC;CAC5C;AAED,yBAAiB,2BAA2B,CAAC;IAC3C;;OAEG;IACH,UAAiB,MAAM;QACrB;;;WAGG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,yBAAyB,CAAC,MAAM,CAAC;CAC3C;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,MAAM;QACrB;;;WAGG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|
|
@@ -0,0 +1,102 @@
|
|
|
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 Instructions extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* Get the project's assistant instructions (markdown). Returns 404 if not set. Any
|
|
7
|
+
* project member can read.
|
|
8
|
+
*/
|
|
9
|
+
retrieve(projectID: string, options?: RequestOptions): APIPromise<InstructionRetrieveResponse>;
|
|
10
|
+
/**
|
|
11
|
+
* Set the project's assistant instructions (markdown, max 50KB). Set content to
|
|
12
|
+
* null to clear. Team or project admins only.
|
|
13
|
+
*/
|
|
14
|
+
update(projectID: string, body: InstructionUpdateParams, options?: RequestOptions): APIPromise<InstructionUpdateResponse>;
|
|
15
|
+
}
|
|
16
|
+
export interface InstructionRetrieveResponse {
|
|
17
|
+
/**
|
|
18
|
+
* Public JSON shape returned by GET endpoints
|
|
19
|
+
*/
|
|
20
|
+
memory: InstructionRetrieveResponse.Memory;
|
|
21
|
+
}
|
|
22
|
+
export declare namespace InstructionRetrieveResponse {
|
|
23
|
+
/**
|
|
24
|
+
* Public JSON shape returned by GET endpoints
|
|
25
|
+
*/
|
|
26
|
+
interface Memory {
|
|
27
|
+
/**
|
|
28
|
+
* The memory ID — deterministic from scope + parent IDs (example:
|
|
29
|
+
* "mem_team_team_abc")
|
|
30
|
+
*/
|
|
31
|
+
id: string;
|
|
32
|
+
/**
|
|
33
|
+
* Markdown content of the memory
|
|
34
|
+
*/
|
|
35
|
+
content: string;
|
|
36
|
+
/**
|
|
37
|
+
* ISO 8601 timestamp when the memory was first written
|
|
38
|
+
*/
|
|
39
|
+
createdAt: string;
|
|
40
|
+
/**
|
|
41
|
+
* UTF-8 byte length of the content — used for quota enforcement
|
|
42
|
+
*/
|
|
43
|
+
sizeBytes: number;
|
|
44
|
+
/**
|
|
45
|
+
* ISO 8601 timestamp when the memory was last updated
|
|
46
|
+
*/
|
|
47
|
+
updatedAt: string;
|
|
48
|
+
/**
|
|
49
|
+
* The userId of the last writer — useful for audit/UI
|
|
50
|
+
*/
|
|
51
|
+
updatedBy: string;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export interface InstructionUpdateResponse {
|
|
55
|
+
/**
|
|
56
|
+
* Public JSON shape returned by GET endpoints
|
|
57
|
+
*/
|
|
58
|
+
memory?: InstructionUpdateResponse.Memory;
|
|
59
|
+
}
|
|
60
|
+
export declare namespace InstructionUpdateResponse {
|
|
61
|
+
/**
|
|
62
|
+
* Public JSON shape returned by GET endpoints
|
|
63
|
+
*/
|
|
64
|
+
interface Memory {
|
|
65
|
+
/**
|
|
66
|
+
* The memory ID — deterministic from scope + parent IDs (example:
|
|
67
|
+
* "mem_team_team_abc")
|
|
68
|
+
*/
|
|
69
|
+
id: string;
|
|
70
|
+
/**
|
|
71
|
+
* Markdown content of the memory
|
|
72
|
+
*/
|
|
73
|
+
content: string;
|
|
74
|
+
/**
|
|
75
|
+
* ISO 8601 timestamp when the memory was first written
|
|
76
|
+
*/
|
|
77
|
+
createdAt: string;
|
|
78
|
+
/**
|
|
79
|
+
* UTF-8 byte length of the content — used for quota enforcement
|
|
80
|
+
*/
|
|
81
|
+
sizeBytes: number;
|
|
82
|
+
/**
|
|
83
|
+
* ISO 8601 timestamp when the memory was last updated
|
|
84
|
+
*/
|
|
85
|
+
updatedAt: string;
|
|
86
|
+
/**
|
|
87
|
+
* The userId of the last writer — useful for audit/UI
|
|
88
|
+
*/
|
|
89
|
+
updatedBy: string;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
export interface InstructionUpdateParams {
|
|
93
|
+
/**
|
|
94
|
+
* Markdown content of the memory. Set to null to clear. Max size depends on the
|
|
95
|
+
* scope (20-50 KB).
|
|
96
|
+
*/
|
|
97
|
+
content?: string;
|
|
98
|
+
}
|
|
99
|
+
export declare namespace Instructions {
|
|
100
|
+
export { type InstructionRetrieveResponse as InstructionRetrieveResponse, type InstructionUpdateResponse as InstructionUpdateResponse, type InstructionUpdateParams as InstructionUpdateParams, };
|
|
101
|
+
}
|
|
102
|
+
//# sourceMappingURL=instructions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"instructions.d.ts","sourceRoot":"","sources":["../../src/resources/projects/instructions.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,YAAa,SAAQ,WAAW;IAC3C;;;OAGG;IACH,QAAQ,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI9F;;;OAGG;IACH,MAAM,CACJ,SAAS,EAAE,MAAM,EACjB,IAAI,EAAE,uBAAuB,EAC7B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,yBAAyB,CAAC;CAGzC;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,EAAE,2BAA2B,CAAC,MAAM,CAAC;CAC5C;AAED,yBAAiB,2BAA2B,CAAC;IAC3C;;OAEG;IACH,UAAiB,MAAM;QACrB;;;WAGG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,MAAM,CAAC,EAAE,yBAAyB,CAAC,MAAM,CAAC;CAC3C;AAED,yBAAiB,yBAAyB,CAAC;IACzC;;OAEG;IACH,UAAiB,MAAM;QACrB;;;WAGG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,MAAM,CAAC;QAEhB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;KACnB;CACF;AAED,MAAM,WAAW,uBAAuB;IACtC;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,YAAY,CAAC;IACpC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,uBAAuB,IAAI,uBAAuB,GACxD,CAAC;CACH"}
|