Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
110 changes: 110 additions & 0 deletions openapi/v1.0.0.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6849,6 +6849,68 @@ components:
required: [fileId, url, name, path, transformation]
required: [type, created_at, request, data]

DamFileCreateEvent:
allOf:
- $ref: "#/components/schemas/BaseWebhookEvent"
- type: object
description: |
Triggered when a file is created.
properties:
type:
type: string
const: "file.created"
description: Type of the webhook event.
created_at:
type: string
format: date-time
description: Timestamp of when the event occurred in ISO8601 format.
data:
$ref: "#/components/schemas/FileDetails"
required: [type, created_at, data]

DamFileUpdateEvent:
allOf:
- $ref: "#/components/schemas/BaseWebhookEvent"
- type: object
description: |
Triggered when a file is updated.
properties:
type:
type: string
const: "file.updated"
description: Type of the webhook event.
created_at:
type: string
format: date-time
description: Timestamp of when the event occurred in ISO8601 format.
data:
$ref: "#/components/schemas/FileDetails"
required: [type, created_at, data]

DamFileDeleteEvent:
allOf:
- $ref: "#/components/schemas/BaseWebhookEvent"
- type: object
description: |
Triggered when a file is deleted.
properties:
type:
type: string
const: "file.deleted"
description: Type of the webhook event.
created_at:
type: string
format: date-time
description: Timestamp of when the event occurred in ISO8601 format.
data:
type: object
properties:
fileId:
type: string
description: The unique `fileId` of the deleted file.
required: [fileId]
required: [type, created_at, data]

SrcOptions:
title: Source Options
description: Options for generating ImageKit URLs with transformations. See the [Transformations guide](https://imagekit.io/docs/transformations).
Expand Down Expand Up @@ -8510,5 +8572,53 @@ webhooks:
"200":
description: Acknowledge

dam.file.created:
post:
operationId: dam-file-created
summary: File created
description: |
Triggered when a file is created.
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/DamFileCreateEvent"
responses:
"200":
description: Acknowledge

dam.file.updated:
post:
operationId: dam-file-updated
summary: File updated
description: |
Triggered when a file is updated.
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/DamFileUpdateEvent"
responses:
"200":
description: Acknowledge

dam.file.deleted:
post:
operationId: dam-file-deleted
summary: File deleted
description: |
Triggered when a file is deleted.
requestBody:
required: true
content:
application/json:
schema:
$ref: "#/components/schemas/DamFileDeleteEvent"
responses:
"200":
description: Acknowledge

security:
- basicAuth: []
3 changes: 3 additions & 0 deletions stainless-config/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,9 @@ resources:
UploadPreTransformErrorEvent: '#/components/schemas/UploadPreTransformErrorEvent'
UploadPostTransformSuccessEvent: '#/components/schemas/UploadPostTransformSuccessEvent'
UploadPostTransformErrorEvent: '#/components/schemas/UploadPostTransformErrorEvent'
DamFileCreateEvent: '#/components/schemas/DamFileCreateEvent'
DamFileUpdateEvent: '#/components/schemas/DamFileUpdateEvent'
DamFileDeleteEvent: '#/components/schemas/DamFileDeleteEvent'

methods:
unwrap:
Expand Down