Repository navigation
2.6.0: Photo Mockups adları — JobKind, WebhookEvent, eventNaming - #2
Merged
Merged
Conversation
Fotoğraf-mockup işinin iki yazımı vardır: /api/v1/photo-mockups üzerinden
gelen iş photo_mockup_create / photo_mockup_render, client.ai'nin post ettiği
/api/v1/sudoai/2d-mockups üzerinden gelen iş 2d_create / 2d_render adını
taşır. JobKind ve Create2DMockupResult.kind iki yazımı da tipler;
jobs.list({ kind }) hangisiyle çağrılırsa çağrılsın ikisini de döner.
WebhookEvent'e photo_mockup.ready|rejected|failed ve
photo_mockup_render.succeeded|failed eklendi. Endpoint, bağlı olduğu yazımı
alır; bu sürümden önce açılmış endpoint 2d_mockup.* / 2d_render.* adlarını
almaya devam eder.
Tip kapısı: tests/photo-mockup-names.typecheck.ts adlandırılmış üyeleri
(string & {}) kaçış kapısını süzerek pinler; eski birleşimle 10 TS hatası,
yeni birleşimle temiz. vitest: kind/event akışları için 5 yeni test.
API, bir webhook endpoint'ini fotoğraf-mockup olaylarının tek bir yazımına bağlar: 'current' (photo_mockup.*, photo_mockup_render.*) ya da 'legacy' (2d_mockup.*, 2d_render.*). Yanıttaki event_naming alanı SDK'nın alan beyaz-listesinde olmadığı için düşüyordu; kullanıcı endpoint'inin hangi yazıma bağlı olduğunu göremiyordu. WebhookEndpoint.eventNaming alanı okunur; webhooks.create ve webhooks.update eventNaming kabul eder (create'te verilmezse gövdeye yazılmaz, API varsayılanı 'current' geçerli olur). WebhookEventNaming tipi dışa verildi. vitest: create gövdesinde event_naming, verilmeyince alan yok, list/retrieve ve update yanıtında pin okunur, alanı olmayan eski yanıtta undefined. Tip kapısı: create/update/endpoint şekillerinde eventNaming.
… geçti - package.json ve package-lock.json 2.5.1 -> 2.6.0 (tag atılmadı, publish yok) - CHANGELOG: [Unreleased] altındaki JobKind / WebhookEvent / eventNaming girdileri "## [2.6.0] - 2026-09-18" başlığına indi; boş [Unreleased] üstte - tests/release.test.ts: lock sürümü package.json ile iki kökte aynı, wire sürümünün (X-SudoMock-Client) tarihli CHANGELOG girdisi var ve eventNaming / photo_mockup_create / photo_mockup.ready yayınlanmış bir sürüm altında belgeli (yalnız [Unreleased] altında olması kırmızı)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Photo Mockups adlandırması: yeni webhook olay adları ve iş türleri, endpoint ad pini (event_naming), sürüm bump. Önceki adlar ve yollar çalışmaya devam eder.