HookOperations

Class Webhook operations.

Properties​

NameTypeDescription
sendSend-

Members​

constructor​

(send: Send) => HookOperations

Parameters​

NameTypeDescription
sendSend-

create​

(request: { apis: object; hookUrl: string }) => Promise

Registers a hook URL; the endpoint must confirm the SNS subscription.

Parameters​

NameTypeDescription
request{ apis: object; hookUrl: string }-

delete​

(hookUrl: string) => Promise

Deletes a hook.

Parameters​

NameTypeDescription
hookUrlstring-

get​

(hookUrl: string) => Promise

Gets one hook by its URL.

Parameters​

NameTypeDescription
hookUrlstring-

list​

() => Promise

Lists the registered hooks.

update​

(hookUrl: string, apis: object) => Promise

Changes which APIs' events are sent to the hook.

Parameters​

NameTypeDescription
hookUrlstring-
apisobject-

Source: carmen-cloud/index.ts:353