Interface CreateSubscriptionInput<CustomFields>

interface CreateSubscriptionInput {
    approved?: boolean;
    customFields?: CustomFields;
    organizationId?: string;
    permissions?: ("admin" | "read" | "write")[];
    topicId: string;
    userId?: string;
}

Type Parameters

  • CustomFields = unknown

Properties

approved?: boolean

Whether the subscription is approved. This may not be used depending upon the application.

customFields?: CustomFields

Custom fields for the subscription

organizationId?: string

Org ID for the subscription (either this or userId should be provided)

permissions?: ("admin" | "read" | "write")[]

Permissions that this subscription has over the topic

topicId: string

Topic ID for the subscription

userId?: string

User ID for the subscription (either this or organizationId should be provided)

Generated using TypeDoc