@burdenoff/microfe-channel 2026.1013.2 → 2026.1114.1
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/dist/channel/ChannelRoot.d.ts +0 -2
- package/dist/channel/ChannelRoot.js +9 -6
- package/dist/channel/ChannelRoot.js.map +1 -1
- package/dist/channel/ChannelRoutes.d.ts +1 -2
- package/dist/channel/ChannelRoutes.js +5 -6
- package/dist/channel/ChannelRoutes.js.map +1 -1
- package/dist/channel/components/AdapterCredentialsForm.d.ts +2 -4
- package/dist/channel/components/AdapterCredentialsForm.js +1 -2
- package/dist/channel/components/AdapterCredentialsForm.js.map +1 -1
- package/dist/channel/components/FeatureNotEnabled.d.ts +1 -2
- package/dist/channel/components/FeatureNotEnabled.js +1 -2
- package/dist/channel/components/FeatureNotEnabled.js.map +1 -1
- package/dist/channel/components/MarkdownEditor.d.ts +1 -2
- package/dist/channel/components/MarkdownEditor.js +2 -5
- package/dist/channel/components/MarkdownEditor.js.map +1 -1
- package/dist/channel/components/PermissionGuard.d.ts +0 -2
- package/dist/channel/components/PermissionGuard.js +1 -2
- package/dist/channel/components/PermissionGuard.js.map +1 -1
- package/dist/channel/config/adapterCredentials.d.ts +0 -2
- package/dist/channel/config/adapterCredentials.js +3 -7
- package/dist/channel/config/adapterCredentials.js.map +1 -1
- package/dist/channel/constants/permissions.d.ts +0 -1
- package/dist/channel/constants/permissions.js +1 -2
- package/dist/channel/constants/permissions.js.map +1 -1
- package/dist/channel/graphql/global-client.d.ts +0 -2
- package/dist/channel/graphql/global-client.js +5 -6
- package/dist/channel/graphql/global-client.js.map +1 -1
- package/dist/channel/hooks/useChannelOrgSettings.d.ts +0 -2
- package/dist/channel/hooks/useChannelOrgSettings.js +20 -21
- package/dist/channel/hooks/useChannelOrgSettings.js.map +1 -1
- package/dist/channel/hooks/useChannelSubscription.d.ts +0 -1
- package/dist/channel/hooks/useChannelSubscription.js +7 -12
- package/dist/channel/hooks/useChannelSubscription.js.map +1 -1
- package/dist/channel/hooks/useChannels.d.ts +20 -30
- package/dist/channel/hooks/useChannels.js +100 -101
- package/dist/channel/hooks/useChannels.js.map +1 -1
- package/dist/channel/hooks/useTr.d.ts +0 -1
- package/dist/channel/hooks/useTr.js +1 -2
- package/dist/channel/hooks/useTr.js.map +1 -1
- package/dist/channel/index.d.ts +0 -1
- package/dist/channel/index.js +3 -2
- package/dist/channel/modules/channels/hooks/useExport.d.ts +0 -2
- package/dist/channel/modules/channels/hooks/useExport.js +77 -80
- package/dist/channel/modules/channels/hooks/useExport.js.map +1 -1
- package/dist/channel/modules/channels/i18n.d.ts +0 -2
- package/dist/channel/modules/channels/i18n.js +1 -2
- package/dist/channel/modules/channels/i18n.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.js +10 -11
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.js +400 -401
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.js +8 -7
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelUsersPage.js +5 -10
- package/dist/channel/modules/channels/pages/ChannelUsersPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ChannelsListPage.js +287 -288
- package/dist/channel/modules/channels/pages/ChannelsListPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js +11 -12
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/ConnectionsListPage.js +1 -2
- package/dist/channel/modules/channels/pages/ConnectionsListPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/CreateChannelPage.js +4 -5
- package/dist/channel/modules/channels/pages/CreateChannelPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/CreateConnectionPage.js +37 -38
- package/dist/channel/modules/channels/pages/CreateConnectionPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js +7 -12
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/EditChannelPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/EditChannelPage.js +105 -103
- package/dist/channel/modules/channels/pages/EditChannelPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/EditConnectionPage.js +22 -23
- package/dist/channel/modules/channels/pages/EditConnectionPage.js.map +1 -1
- package/dist/channel/modules/channels/pages/SendMessagePage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/SendMessagePage.js +180 -187
- package/dist/channel/modules/channels/pages/SendMessagePage.js.map +1 -1
- package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts +1 -2
- package/dist/channel/modules/channels/pages/WebhookEventsPage.js +144 -149
- package/dist/channel/modules/channels/pages/WebhookEventsPage.js.map +1 -1
- package/dist/channel/pages/ChannelLandingPage.d.ts +1 -2
- package/dist/channel/pages/ChannelLandingPage.js +20 -21
- package/dist/channel/pages/ChannelLandingPage.js.map +1 -1
- package/dist/channel/providers/ChannelProvider.d.ts +0 -2
- package/dist/channel/providers/ChannelProvider.js +1 -2
- package/dist/channel/providers/ChannelProvider.js.map +1 -1
- package/dist/channel/types/index.d.ts +0 -2
- package/dist/channel/utils/shellBridge.d.ts +0 -1
- package/dist/channel/utils/shellBridge.js +1 -2
- package/dist/channel/utils/shellBridge.js.map +1 -1
- package/dist/dev/App.d.ts +1 -2
- package/dist/dev/main.d.ts +0 -2
- package/dist/generated/global-operations.d.ts +885 -336
- package/dist/generated/global-operations.js +2 -3
- package/dist/generated/global-operations.js.map +1 -1
- package/dist/generated/global-types.d.ts +2 -22
- package/dist/generated/global-types.js +1 -2
- package/dist/generated/global-types.js.map +1 -1
- package/dist/generated/wspace-operations.d.ts +4 -2
- package/dist/generated/wspace-types.d.ts +4 -24
- package/dist/index.d.ts +0 -1
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js +1 -2
- package/dist/node_modules/@apollo/client/errors/CombinedGraphQLErrors.js.map +1 -1
- package/dist/node_modules/@apollo/client/errors/utils.js +1 -2
- package/dist/node_modules/@apollo/client/errors/utils.js.map +1 -1
- package/dist/translations/en.d.ts +0 -1
- package/dist/utils/nativeBridge.d.ts +0 -1
- package/dist/utils/nativeBridge.js +1 -2
- package/package.json +65 -43
- package/dist/channel/ChannelRoot.d.ts.map +0 -1
- package/dist/channel/ChannelRoutes.d.ts.map +0 -1
- package/dist/channel/components/AdapterCredentialsForm.d.ts.map +0 -1
- package/dist/channel/components/FeatureNotEnabled.d.ts.map +0 -1
- package/dist/channel/components/MarkdownEditor.d.ts.map +0 -1
- package/dist/channel/components/PermissionGuard.d.ts.map +0 -1
- package/dist/channel/config/adapterCredentials.d.ts.map +0 -1
- package/dist/channel/constants/permissions.d.ts.map +0 -1
- package/dist/channel/graphql/global-client.d.ts.map +0 -1
- package/dist/channel/hooks/useChannelOrgSettings.d.ts.map +0 -1
- package/dist/channel/hooks/useChannelSubscription.d.ts.map +0 -1
- package/dist/channel/hooks/useChannels.d.ts.map +0 -1
- package/dist/channel/hooks/useTr.d.ts.map +0 -1
- package/dist/channel/index.d.ts.map +0 -1
- package/dist/channel/modules/channels/hooks/useExport.d.ts.map +0 -1
- package/dist/channel/modules/channels/i18n.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelDashboardPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelDetailsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelSettingsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelUsersPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ChannelsListPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ConnectionDetailsPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/ConnectionsListPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/CreateChannelPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/CreateConnectionPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/DeliveryHistoryPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/EditChannelPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/EditConnectionPage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/SendMessagePage.d.ts.map +0 -1
- package/dist/channel/modules/channels/pages/WebhookEventsPage.d.ts.map +0 -1
- package/dist/channel/pages/ChannelLandingPage.d.ts.map +0 -1
- package/dist/channel/providers/ChannelProvider.d.ts.map +0 -1
- package/dist/channel/types/index.d.ts.map +0 -1
- package/dist/channel/utils/shellBridge.d.ts.map +0 -1
- package/dist/dev/App.d.ts.map +0 -1
- package/dist/dev/main.d.ts.map +0 -1
- package/dist/generated/global-operations.d.ts.map +0 -1
- package/dist/generated/global-types.d.ts.map +0 -1
- package/dist/generated/wspace-operations.d.ts.map +0 -1
- package/dist/generated/wspace-types.d.ts.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/translations/en.d.ts.map +0 -1
- package/dist/utils/nativeBridge.d.ts.map +0 -1
|
@@ -1,269 +1,875 @@
|
|
|
1
|
+
/** Internal type. DO NOT USE DIRECTLY. */
|
|
2
|
+
type Exact<T extends {
|
|
3
|
+
[key: string]: unknown;
|
|
4
|
+
}> = {
|
|
5
|
+
[K in keyof T]: T[K];
|
|
6
|
+
};
|
|
7
|
+
/** Internal type. DO NOT USE DIRECTLY. */
|
|
8
|
+
export type Incremental<T> = T | {
|
|
9
|
+
[P in keyof T]?: P extends ' $fragmentName' | '__typename' ? T[P] : never;
|
|
10
|
+
};
|
|
1
11
|
import * as Types from './global-types';
|
|
2
12
|
import * as Apollo from '@apollo/client';
|
|
3
13
|
import * as ApolloReactHooks from '@apollo/client/react';
|
|
14
|
+
/**
|
|
15
|
+
* Specific adapter/provider type for each ChannelPlatform.
|
|
16
|
+
* ChannelPlatform = High-level category (EMAIL, SMS, PUSH, etc.)
|
|
17
|
+
* AdapterType = Specific provider implementation
|
|
18
|
+
*
|
|
19
|
+
* Currently supported adapters (must match Prisma schema):
|
|
20
|
+
* EMAIL: AWS_SES, AZURE_ACS
|
|
21
|
+
* SMS: AWS_SNS, TWILIO_SMS
|
|
22
|
+
* WHATSAPP: WHATSAPP_CLOUD, WHATSAPP_TWILIO
|
|
23
|
+
* SLACK: SLACK_BOT
|
|
24
|
+
* TEAMS: TEAMS_BOT
|
|
25
|
+
* DISCORD: DISCORD_BOT
|
|
26
|
+
* PUSH: FCM
|
|
27
|
+
* INAPP: INAPP_NATIVE
|
|
28
|
+
* WEBHOOK: WEBHOOK_HTTP
|
|
29
|
+
*/
|
|
30
|
+
export type AdapterType =
|
|
31
|
+
/** Amazon Simple Email Service */
|
|
32
|
+
'AWS_SES'
|
|
33
|
+
/** Amazon SNS */
|
|
34
|
+
| 'AWS_SNS'
|
|
35
|
+
/** Azure Communication Services Email */
|
|
36
|
+
| 'AZURE_ACS'
|
|
37
|
+
/** Discord Bot API */
|
|
38
|
+
| 'DISCORD_BOT'
|
|
39
|
+
/** Firebase Cloud Messaging (Android + iOS + Web) */
|
|
40
|
+
| 'FCM'
|
|
41
|
+
/** Native Burdenoff In-App Notifications */
|
|
42
|
+
| 'INAPP_NATIVE'
|
|
43
|
+
/** Slack Bot API */
|
|
44
|
+
| 'SLACK_BOT'
|
|
45
|
+
/** Microsoft Teams Bot */
|
|
46
|
+
| 'TEAMS_BOT'
|
|
47
|
+
/** Twilio SMS */
|
|
48
|
+
| 'TWILIO_SMS'
|
|
49
|
+
/** Generic HTTP Webhook */
|
|
50
|
+
| 'WEBHOOK_HTTP'
|
|
51
|
+
/** WhatsApp Cloud API (Meta) */
|
|
52
|
+
| 'WHATSAPP_CLOUD'
|
|
53
|
+
/** WhatsApp via Twilio */
|
|
54
|
+
| 'WHATSAPP_TWILIO';
|
|
55
|
+
/** Input for delivering the same notification to multiple recipients */
|
|
56
|
+
export type BulkChannelDeliveryInput = {
|
|
57
|
+
/** Channel connection ID to use (optional - uses default if not provided) */
|
|
58
|
+
connectionId?: string | number | null | undefined;
|
|
59
|
+
/** Notification content (same for all recipients) */
|
|
60
|
+
content: ChannelDeliveryContentInput;
|
|
61
|
+
/** Optional reference to originating notification in notification-svc */
|
|
62
|
+
notificationId?: string | number | null | undefined;
|
|
63
|
+
/** Delivery options (priority, scheduling, retry policy) */
|
|
64
|
+
options?: ChannelDeliveryOptionsInput | null | undefined;
|
|
65
|
+
/** Organization ID for multi-tenancy */
|
|
66
|
+
organizationId: string | number;
|
|
67
|
+
/** Target delivery platform (EMAIL, SMS, PUSH, SLACK, TEAMS, etc.) */
|
|
68
|
+
platform: ChannelPlatform;
|
|
69
|
+
/** List of recipient identifiers (same format as single delivery) */
|
|
70
|
+
recipients: Array<string>;
|
|
71
|
+
};
|
|
72
|
+
/** Authentication method for channel connection */
|
|
73
|
+
export type ChannelAuthType =
|
|
74
|
+
/** API Key authentication */
|
|
75
|
+
'API_KEY'
|
|
76
|
+
/** Bot token (Discord, Slack) */
|
|
77
|
+
| 'BOT_TOKEN'
|
|
78
|
+
/** OAuth 2.0 flow (Slack, Teams, Discord) */
|
|
79
|
+
| 'OAUTH2'
|
|
80
|
+
/** SMTP/IMAP credentials (Email) */
|
|
81
|
+
| 'SMTP_IMAP'
|
|
82
|
+
/** Webhook-only (no authentication) */
|
|
83
|
+
| 'WEBHOOK';
|
|
84
|
+
/** Attachment input for channel delivery */
|
|
85
|
+
export type ChannelDeliveryAttachmentInput = {
|
|
86
|
+
/** Content (Base64 encoded) or URL */
|
|
87
|
+
content: string;
|
|
88
|
+
/** Content type (MIME type) */
|
|
89
|
+
contentType: string;
|
|
90
|
+
/** Filename */
|
|
91
|
+
filename: string;
|
|
92
|
+
/** Whether content is a URL (true) or Base64 encoded data (false) */
|
|
93
|
+
isUrl?: boolean | null | undefined;
|
|
94
|
+
};
|
|
95
|
+
/** Notification content for channel delivery */
|
|
96
|
+
export type ChannelDeliveryContentInput = {
|
|
97
|
+
/** Attachments (used for email, MMS, etc.) */
|
|
98
|
+
attachments?: Array<ChannelDeliveryAttachmentInput> | null | undefined;
|
|
99
|
+
/** Structured data payload (passed to platform adapters) */
|
|
100
|
+
data?: Record<string, unknown> | null | undefined;
|
|
101
|
+
/** HTML content (used for email body) */
|
|
102
|
+
html?: string | null | undefined;
|
|
103
|
+
/** Subject line (used for email subject) */
|
|
104
|
+
subject?: string | null | undefined;
|
|
105
|
+
/** Template name (for platforms that support templates) */
|
|
106
|
+
templateName?: string | null | undefined;
|
|
107
|
+
/** Template variables (for template-based messages) */
|
|
108
|
+
templateVariables?: Record<string, unknown> | null | undefined;
|
|
109
|
+
/** Plain text content (used for SMS, push notification body, etc.) */
|
|
110
|
+
text?: string | null | undefined;
|
|
111
|
+
/** Title (used for push notification title, in-app notification title) */
|
|
112
|
+
title?: string | null | undefined;
|
|
113
|
+
};
|
|
114
|
+
/** Input for delivering a notification to a single recipient */
|
|
115
|
+
export type ChannelDeliveryInput = {
|
|
116
|
+
/** Channel connection ID to use (optional - uses default if not provided) */
|
|
117
|
+
connectionId?: string | number | null | undefined;
|
|
118
|
+
/** Notification content */
|
|
119
|
+
content: ChannelDeliveryContentInput;
|
|
120
|
+
/**
|
|
121
|
+
* Internal Botlit user ID. When provided, the service automatically resolves
|
|
122
|
+
* the user's DM conversation ID from their UserPlatformConnection record and
|
|
123
|
+
* uses it as the delivery recipient. Requires the user to have connected via
|
|
124
|
+
* OAuth (dmAllowed=true) with notificationsEnabled=true.
|
|
125
|
+
*
|
|
126
|
+
* Either `recipient` or `internalUserId` must be provided.
|
|
127
|
+
*/
|
|
128
|
+
internalUserId?: string | number | null | undefined;
|
|
129
|
+
/** Optional reference to originating notification in notification-svc */
|
|
130
|
+
notificationId?: string | number | null | undefined;
|
|
131
|
+
/** Delivery options (priority, scheduling, retry policy) */
|
|
132
|
+
options?: ChannelDeliveryOptionsInput | null | undefined;
|
|
133
|
+
/** Organization ID for multi-tenancy */
|
|
134
|
+
organizationId: string | number;
|
|
135
|
+
/** Target delivery platform (EMAIL, SMS, PUSH, SLACK, TEAMS, etc.) */
|
|
136
|
+
platform: ChannelPlatform;
|
|
137
|
+
/**
|
|
138
|
+
* Recipient identifier based on platform:
|
|
139
|
+
* - EMAIL: email address
|
|
140
|
+
* - SMS: phone number (E.164 format)
|
|
141
|
+
* - PUSH: device token
|
|
142
|
+
* - SLACK/TEAMS/DISCORD: user ID or channel ID
|
|
143
|
+
* - WHATSAPP: phone number
|
|
144
|
+
* - WEBHOOK: webhook URL
|
|
145
|
+
* - INAPP: user ID
|
|
146
|
+
*
|
|
147
|
+
* Either `recipient` or `internalUserId` must be provided.
|
|
148
|
+
*/
|
|
149
|
+
recipient?: string | null | undefined;
|
|
150
|
+
};
|
|
151
|
+
/** Delivery options for channel delivery */
|
|
152
|
+
export type ChannelDeliveryOptionsInput = {
|
|
153
|
+
/** Idempotency key (for deduplication) */
|
|
154
|
+
idempotencyKey?: string | null | undefined;
|
|
155
|
+
/** Custom metadata to include in delivery tracking */
|
|
156
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
157
|
+
/** Delivery priority level */
|
|
158
|
+
priority?: DeliveryPriority | null | undefined;
|
|
159
|
+
/** Custom retry policy override */
|
|
160
|
+
retryPolicy?: ChannelRetryPolicyInput | null | undefined;
|
|
161
|
+
/** Schedule for later delivery (ISO 8601 timestamp) */
|
|
162
|
+
scheduledAt?: string | null | undefined;
|
|
163
|
+
/** Time-to-live in seconds (after which delivery should not be attempted) */
|
|
164
|
+
ttlSeconds?: number | null | undefined;
|
|
165
|
+
};
|
|
166
|
+
export type ChannelExportFormat =
|
|
167
|
+
/** Comma-separated values; first row is the header. */
|
|
168
|
+
'CSV'
|
|
169
|
+
/** JSON array; one row per element. */
|
|
170
|
+
| 'JSON'
|
|
171
|
+
/** JSON-Lines; one row per line (streaming-friendly). */
|
|
172
|
+
| 'JSONL';
|
|
173
|
+
export type ChannelExportStatus =
|
|
174
|
+
/** Job finished successfully; downloadUrl is populated. */
|
|
175
|
+
'COMPLETED'
|
|
176
|
+
/** Job accepted and queued. */
|
|
177
|
+
| 'CREATED'
|
|
178
|
+
/** Job failed; error contains the reason. */
|
|
179
|
+
| 'FAILED'
|
|
180
|
+
/** Job is materialising the export payload. */
|
|
181
|
+
| 'RUNNING';
|
|
182
|
+
/** Filter input for querying channels */
|
|
183
|
+
export type ChannelFilterInput = {
|
|
184
|
+
/** Filter by adapter type */
|
|
185
|
+
adapterType?: AdapterType | null | undefined;
|
|
186
|
+
/** Filter by channel type (NOTIFICATION or COMMUNICATION) */
|
|
187
|
+
channelType?: ChannelType | null | undefined;
|
|
188
|
+
/** Filter by operation context */
|
|
189
|
+
context?: ContextFilterInput | null | undefined;
|
|
190
|
+
/** Filter by creator */
|
|
191
|
+
createdBy?: string | number | null | undefined;
|
|
192
|
+
/** Filter by organization ID */
|
|
193
|
+
organizationId?: string | number | null | undefined;
|
|
194
|
+
/** Filter by platform */
|
|
195
|
+
platform?: ChannelPlatform | null | undefined;
|
|
196
|
+
/** Search by name */
|
|
197
|
+
search?: string | null | undefined;
|
|
198
|
+
/** Filter by status */
|
|
199
|
+
status?: ChannelStatus | null | undefined;
|
|
200
|
+
};
|
|
201
|
+
/** Input for updating organization-level channel settings */
|
|
202
|
+
export type ChannelOrgSettingsInput = {
|
|
203
|
+
/** Default priority for new channels (0–4) */
|
|
204
|
+
defaultPriority?: number | null | undefined;
|
|
205
|
+
/** Enable audit logging */
|
|
206
|
+
enableAuditLogging?: boolean | null | undefined;
|
|
207
|
+
/** Enable webhook signature verification */
|
|
208
|
+
enableWebhookVerification?: boolean | null | undefined;
|
|
209
|
+
/** Health check interval in minutes */
|
|
210
|
+
healthCheckIntervalMinutes?: number | null | undefined;
|
|
211
|
+
/** Rate limit per hour */
|
|
212
|
+
rateLimitPerHour?: number | null | undefined;
|
|
213
|
+
/** Rate limit per minute */
|
|
214
|
+
rateLimitPerMinute?: number | null | undefined;
|
|
215
|
+
/** Session timeout in minutes */
|
|
216
|
+
sessionTimeoutMinutes?: number | null | undefined;
|
|
217
|
+
};
|
|
218
|
+
export type ChannelPaginationInput = {
|
|
219
|
+
cursor?: string | null | undefined;
|
|
220
|
+
limit?: number | null | undefined;
|
|
221
|
+
offset?: number | null | undefined;
|
|
222
|
+
};
|
|
223
|
+
/** Supported channel platforms for bi-directional communication */
|
|
224
|
+
export type ChannelPlatform =
|
|
225
|
+
/** Discord server integration */
|
|
226
|
+
'DISCORD'
|
|
227
|
+
/** Email via SMTP/IMAP/SendGrid/SES/ACS */
|
|
228
|
+
| 'EMAIL'
|
|
229
|
+
/** Push notifications via FCM/APNs */
|
|
230
|
+
| 'PUSH'
|
|
231
|
+
/** Slack workspace integration */
|
|
232
|
+
| 'SLACK'
|
|
233
|
+
/** SMS via Twilio/AWS SNS */
|
|
234
|
+
| 'SMS'
|
|
235
|
+
/** Microsoft Teams integration */
|
|
236
|
+
| 'TEAMS'
|
|
237
|
+
/** Custom webchat widget */
|
|
238
|
+
| 'WEBCHAT'
|
|
239
|
+
/** Generic HTTP webhooks */
|
|
240
|
+
| 'WEBHOOK'
|
|
241
|
+
/** WhatsApp Business API */
|
|
242
|
+
| 'WHATSAPP';
|
|
243
|
+
/** Retry policy for channel delivery */
|
|
244
|
+
export type ChannelRetryPolicyInput = {
|
|
245
|
+
/** Backoff multiplier for exponential backoff */
|
|
246
|
+
backoffMultiplier?: number | null | undefined;
|
|
247
|
+
/** Initial delay in milliseconds before first retry */
|
|
248
|
+
initialDelayMs?: number | null | undefined;
|
|
249
|
+
/** Maximum delay in milliseconds between retries */
|
|
250
|
+
maxDelayMs?: number | null | undefined;
|
|
251
|
+
/** Maximum number of retry attempts */
|
|
252
|
+
maxRetries?: number | null | undefined;
|
|
253
|
+
};
|
|
254
|
+
/** Channel connection status */
|
|
255
|
+
export type ChannelStatus =
|
|
256
|
+
/** Channel is active and operational */
|
|
257
|
+
'ACTIVE'
|
|
258
|
+
/** Channel is archived (soft deleted) */
|
|
259
|
+
| 'ARCHIVED'
|
|
260
|
+
/** Channel has errors and needs attention */
|
|
261
|
+
| 'ERROR'
|
|
262
|
+
/** Channel is inactive (manual disable) */
|
|
263
|
+
| 'INACTIVE'
|
|
264
|
+
/** Channel is suspended (rate limit, violation) */
|
|
265
|
+
| 'SUSPENDED';
|
|
266
|
+
/**
|
|
267
|
+
* Channel type discriminator — determines delivery behaviour and webhook handling.
|
|
268
|
+
*
|
|
269
|
+
* NOTIFICATION channels (EMAIL, SMS) are outbound-only:
|
|
270
|
+
* - Support priority-based failover across adapters.
|
|
271
|
+
* - No inbound webhook processing.
|
|
272
|
+
* - No DM conversations.
|
|
273
|
+
* - Recipient resolved via externalEmail (email) or externalUserId (phone).
|
|
274
|
+
*
|
|
275
|
+
* COMMUNICATION channels (SLACK, TEAMS, DISCORD, WHATSAPP, WEBCHAT, INAPP, WEBHOOK)
|
|
276
|
+
* are bi-directional:
|
|
277
|
+
* - Inbound webhooks processed and forwarded to conversations-svc.
|
|
278
|
+
* - DM conversations tracked via dmConversationId.
|
|
279
|
+
* - Recipient resolved via dmConversationId set during OAuth / pairing.
|
|
280
|
+
*/
|
|
281
|
+
export type ChannelType =
|
|
282
|
+
/**
|
|
283
|
+
* Bi-directional platform channels: SLACK, TEAMS, DISCORD,
|
|
284
|
+
* WHATSAPP, WEBCHAT, INAPP, WEBHOOK.
|
|
285
|
+
* Processes inbound webhooks and supports DM conversations.
|
|
286
|
+
*/
|
|
287
|
+
'COMMUNICATION'
|
|
288
|
+
/**
|
|
289
|
+
* Outbound-only delivery channels: EMAIL, SMS.
|
|
290
|
+
* Supports adapter-level failover (e.g. AWS SES → Azure ACS).
|
|
291
|
+
*/
|
|
292
|
+
| 'NOTIFICATION';
|
|
293
|
+
/**
|
|
294
|
+
* Real-time health status of a channel's connection.
|
|
295
|
+
* Monitored by the system based on API calls and health checks.
|
|
296
|
+
*
|
|
297
|
+
* - `status` = Admin-controlled (ACTIVE, INACTIVE, ARCHIVED)
|
|
298
|
+
* - `connectionHealth` = System-monitored (HEALTHY, DEGRADED, UNHEALTHY)
|
|
299
|
+
*
|
|
300
|
+
* Example: Channel status = ACTIVE but connectionHealth = UNHEALTHY
|
|
301
|
+
* means admin enabled the channel but the API is down.
|
|
302
|
+
*/
|
|
303
|
+
export type ConnectionHealth =
|
|
304
|
+
/** Partial failures, high latency, or rate limiting */
|
|
305
|
+
'DEGRADED'
|
|
306
|
+
/** Connection working, all requests succeeding */
|
|
307
|
+
| 'HEALTHY'
|
|
308
|
+
/** Connection failing, most requests rejected */
|
|
309
|
+
| 'UNHEALTHY'
|
|
310
|
+
/** Never tested or no recent health check */
|
|
311
|
+
| 'UNKNOWN';
|
|
312
|
+
/**
|
|
313
|
+
* Context filter input for querying records by context.
|
|
314
|
+
* Supports exact match filtering on context fields.
|
|
315
|
+
*/
|
|
316
|
+
export type ContextFilterInput = {
|
|
317
|
+
/** Filter by organization ID */
|
|
318
|
+
organizationId?: string | number | null | undefined;
|
|
319
|
+
/** Filter by project ID */
|
|
320
|
+
projectId?: string | number | null | undefined;
|
|
321
|
+
/** Filter by user ID */
|
|
322
|
+
userId?: string | number | null | undefined;
|
|
323
|
+
/** Filter by workspace ID */
|
|
324
|
+
workspaceId?: string | number | null | undefined;
|
|
325
|
+
};
|
|
326
|
+
/**
|
|
327
|
+
* Operation context for filtering and scoping data.
|
|
328
|
+
* All fields are optional and can be extended as needed.
|
|
329
|
+
*/
|
|
330
|
+
export type ContextInput = {
|
|
331
|
+
/** Additional custom context as JSON */
|
|
332
|
+
custom?: Record<string, unknown> | null | undefined;
|
|
333
|
+
/** Organization ID for organization-level scoping */
|
|
334
|
+
organizationId?: string | number | null | undefined;
|
|
335
|
+
/** Project ID for project-level scoping */
|
|
336
|
+
projectId?: string | number | null | undefined;
|
|
337
|
+
/** User ID for user-level scoping */
|
|
338
|
+
userId?: string | number | null | undefined;
|
|
339
|
+
/** Workspace ID for workspace-level scoping */
|
|
340
|
+
workspaceId?: string | number | null | undefined;
|
|
341
|
+
};
|
|
342
|
+
/** Input for creating a new channel */
|
|
343
|
+
export type CreateChannelInput = {
|
|
344
|
+
/** Specific adapter type (SENDGRID, AWS_SES, TWILIO, etc.) */
|
|
345
|
+
adapterType?: AdapterType | null | undefined;
|
|
346
|
+
/**
|
|
347
|
+
* Channel type: NOTIFICATION (EMAIL/SMS) or COMMUNICATION (SLACK/TEAMS/etc).
|
|
348
|
+
* If omitted, defaults based on platform:
|
|
349
|
+
* EMAIL, SMS → NOTIFICATION
|
|
350
|
+
* All others → COMMUNICATION
|
|
351
|
+
*/
|
|
352
|
+
channelType?: ChannelType | null | undefined;
|
|
353
|
+
/** Operation context for scoping */
|
|
354
|
+
context?: ContextInput | null | undefined;
|
|
355
|
+
/** Optional description */
|
|
356
|
+
description?: string | null | undefined;
|
|
357
|
+
/** Channel name */
|
|
358
|
+
name: string;
|
|
359
|
+
/** Organization ID (opaque reference) */
|
|
360
|
+
organizationId: string | number;
|
|
361
|
+
/** Channel platform (Slack, Teams, Discord, etc.) */
|
|
362
|
+
platform: ChannelPlatform;
|
|
363
|
+
/** Platform-specific configuration (webhook URLs, etc.) */
|
|
364
|
+
platformConfig?: Record<string, unknown> | null | undefined;
|
|
365
|
+
/**
|
|
366
|
+
* Priority for fallback ordering (lower = higher priority).
|
|
367
|
+
* Default is 100. Use 1 for highest priority.
|
|
368
|
+
* All ACTIVE channels are included in the failover chain.
|
|
369
|
+
*/
|
|
370
|
+
priority?: number | null | undefined;
|
|
371
|
+
/** Channel status (default: ACTIVE) */
|
|
372
|
+
status?: ChannelStatus | null | undefined;
|
|
373
|
+
};
|
|
374
|
+
/** Input for creating a channel connection (OAuth flow) */
|
|
375
|
+
export type CreateConnectionInput = {
|
|
376
|
+
/** API key or bot token (for direct auth) */
|
|
377
|
+
apiKey?: string | null | undefined;
|
|
378
|
+
/** OAuth authorization code (for OAuth flows) */
|
|
379
|
+
authCode?: string | null | undefined;
|
|
380
|
+
/** Authentication type */
|
|
381
|
+
authType: ChannelAuthType;
|
|
382
|
+
/** Channel ID to connect */
|
|
383
|
+
channelId: string | number;
|
|
384
|
+
/** Operation context for scoping */
|
|
385
|
+
context?: ContextInput | null | undefined;
|
|
386
|
+
/** Platform-specific credentials (email: SMTP/IMAP config) */
|
|
387
|
+
credentials?: Record<string, unknown> | null | undefined;
|
|
388
|
+
/** Redirect URI (for OAuth) */
|
|
389
|
+
redirectUri?: string | null | undefined;
|
|
390
|
+
};
|
|
391
|
+
export type CreateNotificationInput = {
|
|
392
|
+
actions?: Array<NotificationActionInput> | null | undefined;
|
|
393
|
+
appName?: string | null | undefined;
|
|
394
|
+
body: string;
|
|
395
|
+
channel: NotificationChannel;
|
|
396
|
+
data?: Record<string, unknown> | null | undefined;
|
|
397
|
+
expiresAt?: string | null | undefined;
|
|
398
|
+
htmlBody?: string | null | undefined;
|
|
399
|
+
media?: Array<NotificationMediaInput> | null | undefined;
|
|
400
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
401
|
+
priority?: NotificationPriority | null | undefined;
|
|
402
|
+
recipient: RecipientInput;
|
|
403
|
+
redirectUrl?: string | null | undefined;
|
|
404
|
+
subject?: string | null | undefined;
|
|
405
|
+
topicId?: string | number | null | undefined;
|
|
406
|
+
trackClicks?: boolean | null | undefined;
|
|
407
|
+
trackOpens?: boolean | null | undefined;
|
|
408
|
+
type?: NotificationType | null | undefined;
|
|
409
|
+
};
|
|
410
|
+
/** Delivery priority levels */
|
|
411
|
+
export type DeliveryPriority =
|
|
412
|
+
/** High priority - expedited delivery */
|
|
413
|
+
'HIGH'
|
|
414
|
+
/** Low priority - can be delayed */
|
|
415
|
+
| 'LOW'
|
|
416
|
+
/** Normal priority - standard delivery */
|
|
417
|
+
| 'NORMAL'
|
|
418
|
+
/** Urgent priority - immediate delivery */
|
|
419
|
+
| 'URGENT';
|
|
420
|
+
/** Message delivery attempt status */
|
|
421
|
+
export type DeliveryStatus =
|
|
422
|
+
/** Message bounced */
|
|
423
|
+
'BOUNCED'
|
|
424
|
+
/** Link clicked by recipient */
|
|
425
|
+
| 'CLICKED'
|
|
426
|
+
/** Delivered to recipient */
|
|
427
|
+
| 'DELIVERED'
|
|
428
|
+
/** Delivery failed */
|
|
429
|
+
| 'FAILED'
|
|
430
|
+
/** Message opened by recipient */
|
|
431
|
+
| 'OPENED'
|
|
432
|
+
/** Delivery pending */
|
|
433
|
+
| 'PENDING'
|
|
434
|
+
/** Queued for delivery */
|
|
435
|
+
| 'QUEUED'
|
|
436
|
+
/** Rate limited by platform */
|
|
437
|
+
| 'RATE_LIMITED'
|
|
438
|
+
/** Message rejected by recipient */
|
|
439
|
+
| 'REJECTED'
|
|
440
|
+
/** Retrying after failure */
|
|
441
|
+
| 'RETRYING'
|
|
442
|
+
/** Currently sending */
|
|
443
|
+
| 'SENDING'
|
|
444
|
+
/** Successfully sent */
|
|
445
|
+
| 'SENT';
|
|
446
|
+
/** Filter for channel user (UserPlatformConnection) exports */
|
|
447
|
+
export type ExportChannelUsersFilter = {
|
|
448
|
+
channelId?: string | number | null | undefined;
|
|
449
|
+
createdAfter?: string | null | undefined;
|
|
450
|
+
createdBefore?: string | null | undefined;
|
|
451
|
+
notificationsEnabled?: boolean | null | undefined;
|
|
452
|
+
organizationId: string | number;
|
|
453
|
+
platform?: ChannelPlatform | null | undefined;
|
|
454
|
+
};
|
|
455
|
+
/** Filter for channel list exports */
|
|
456
|
+
export type ExportChannelsFilter = {
|
|
457
|
+
createdAfter?: string | null | undefined;
|
|
458
|
+
createdBefore?: string | null | undefined;
|
|
459
|
+
organizationId: string | number;
|
|
460
|
+
platform?: ChannelPlatform | null | undefined;
|
|
461
|
+
status?: ChannelStatus | null | undefined;
|
|
462
|
+
};
|
|
463
|
+
/** Filter for delivery attempt exports */
|
|
464
|
+
export type ExportDeliveryAttemptsFilter = {
|
|
465
|
+
channelId?: string | number | null | undefined;
|
|
466
|
+
createdAfter?: string | null | undefined;
|
|
467
|
+
createdBefore?: string | null | undefined;
|
|
468
|
+
organizationId?: string | number | null | undefined;
|
|
469
|
+
status?: DeliveryStatus | null | undefined;
|
|
470
|
+
};
|
|
471
|
+
/** Filter for webhook event exports */
|
|
472
|
+
export type ExportWebhookEventsFilter = {
|
|
473
|
+
channelId?: string | number | null | undefined;
|
|
474
|
+
createdAfter?: string | null | undefined;
|
|
475
|
+
createdBefore?: string | null | undefined;
|
|
476
|
+
organizationId?: string | number | null | undefined;
|
|
477
|
+
processingStatus?: WebhookProcessingStatus | null | undefined;
|
|
478
|
+
};
|
|
479
|
+
export type NotificationActionInput = {
|
|
480
|
+
actionType?: string | null | undefined;
|
|
481
|
+
id?: string | null | undefined;
|
|
482
|
+
label: string;
|
|
483
|
+
metadata?: Record<string, unknown> | null | undefined;
|
|
484
|
+
style?: string | null | undefined;
|
|
485
|
+
url: string;
|
|
486
|
+
};
|
|
487
|
+
export type NotificationChannel = 'DISCORD' | 'EMAIL' | 'IN_APP' | 'PUSH' | 'SLACK' | 'SMS' | 'TEAMS' | 'TELEGRAM' | 'WEBHOOK' | 'WHATSAPP';
|
|
488
|
+
export type NotificationDeliveryStatus = 'BOUNCED' | 'CLICKED' | 'COMPLAINED' | 'DELIVERED' | 'DELIVERING' | 'FAILED' | 'OPENED' | 'PENDING' | 'PROCESSING' | 'QUEUED' | 'RETRYING' | 'SENT' | 'UNSUBSCRIBED';
|
|
489
|
+
export type NotificationMediaInput = {
|
|
490
|
+
contentType?: string | null | undefined;
|
|
491
|
+
kind?: string | null | undefined;
|
|
492
|
+
label?: string | null | undefined;
|
|
493
|
+
thumbnailUrl?: string | null | undefined;
|
|
494
|
+
url: string;
|
|
495
|
+
};
|
|
496
|
+
export type NotificationPriority = 'HIGH' | 'LOW' | 'MEDIUM' | 'URGENT';
|
|
497
|
+
export type NotificationStatus = 'CANCELLED' | 'DELIVERED' | 'DRAFT' | 'EXPIRED' | 'FAILED' | 'PENDING' | 'READ' | 'SCHEDULED' | 'SENT' | 'TRIGGERED';
|
|
498
|
+
export type NotificationType = 'ALERT' | 'MARKETING' | 'SYSTEM' | 'TRANSACTIONAL';
|
|
499
|
+
/** Status of a Bundle-2 pairing code flow (WhatsApp / Discord). */
|
|
500
|
+
export type PairingStatus =
|
|
501
|
+
/** User approved the pairing code in the dashboard — dmAllowed set to true. */
|
|
502
|
+
'APPROVED'
|
|
503
|
+
/** Pairing code expired before the user approved it — a new code must be requested. */
|
|
504
|
+
| 'EXPIRED'
|
|
505
|
+
/** Pairing code generated and sent to user; waiting for dashboard approval. */
|
|
506
|
+
| 'PENDING';
|
|
507
|
+
export type RecipientInput = {
|
|
508
|
+
email?: string | null | undefined;
|
|
509
|
+
locale?: string | null | undefined;
|
|
510
|
+
name?: string | null | undefined;
|
|
511
|
+
phoneNumber?: string | null | undefined;
|
|
512
|
+
pushToken?: string | null | undefined;
|
|
513
|
+
slackUserId?: string | null | undefined;
|
|
514
|
+
teamsUserId?: string | null | undefined;
|
|
515
|
+
timezone?: string | null | undefined;
|
|
516
|
+
userId?: string | number | null | undefined;
|
|
517
|
+
webhookUrl?: string | null | undefined;
|
|
518
|
+
whatsappNumber?: string | null | undefined;
|
|
519
|
+
};
|
|
520
|
+
export type TriggerNotificationInput = {
|
|
521
|
+
/** Specific channel instance ID from channel service (takes precedence) */
|
|
522
|
+
channelId?: string | number | null | undefined;
|
|
523
|
+
/** Channels to deliver to (deprecated - use channelId or platform instead) */
|
|
524
|
+
channels?: Array<NotificationChannel> | null | undefined;
|
|
525
|
+
/** Also deliver as in-app notification alongside the primary platform */
|
|
526
|
+
includeInApp?: boolean | null | undefined;
|
|
527
|
+
/** Or create and trigger a new notification */
|
|
528
|
+
notification?: CreateNotificationInput | null | undefined;
|
|
529
|
+
/** ID of an existing notification to trigger */
|
|
530
|
+
notificationId?: string | number | null | undefined;
|
|
531
|
+
/** Platform type for auto-failover (EMAIL, SMS, etc.) */
|
|
532
|
+
platform?: NotificationChannel | null | undefined;
|
|
533
|
+
/** User IDs for in-app notifications (required when includeInApp is true) */
|
|
534
|
+
userIds?: Array<string | number> | null | undefined;
|
|
535
|
+
};
|
|
536
|
+
export type TriggerStatus = 'CANCELLED' | 'FAILED' | 'PENDING' | 'TRIGGERED';
|
|
537
|
+
/** Input for updating an existing channel */
|
|
538
|
+
export type UpdateChannelInput = {
|
|
539
|
+
/** Specific adapter type */
|
|
540
|
+
adapterType?: AdapterType | null | undefined;
|
|
541
|
+
/** Operation context for scoping */
|
|
542
|
+
context?: ContextInput | null | undefined;
|
|
543
|
+
/** Description */
|
|
544
|
+
description?: string | null | undefined;
|
|
545
|
+
/** Channel name */
|
|
546
|
+
name?: string | null | undefined;
|
|
547
|
+
/** Platform configuration */
|
|
548
|
+
platformConfig?: Record<string, unknown> | null | undefined;
|
|
549
|
+
/** Priority for fallback ordering (lower = higher priority) */
|
|
550
|
+
priority?: number | null | undefined;
|
|
551
|
+
/** Channel status */
|
|
552
|
+
status?: ChannelStatus | null | undefined;
|
|
553
|
+
};
|
|
554
|
+
/** Input for updating a connection (credentials, metadata, etc.) */
|
|
555
|
+
export type UpdateConnectionInput = {
|
|
556
|
+
/** Operation context for scoping */
|
|
557
|
+
context?: ContextInput | null | undefined;
|
|
558
|
+
/**
|
|
559
|
+
* Platform-specific credentials (API keys, tokens, etc.)
|
|
560
|
+
* Will be encrypted before storage.
|
|
561
|
+
*/
|
|
562
|
+
credentials?: Record<string, unknown> | null | undefined;
|
|
563
|
+
/** Connection status */
|
|
564
|
+
isActive?: boolean | null | undefined;
|
|
565
|
+
/** Platform-specific metadata (non-sensitive) */
|
|
566
|
+
platformMetadata?: Record<string, unknown> | null | undefined;
|
|
567
|
+
};
|
|
568
|
+
/** Filter input for querying user platform connections */
|
|
569
|
+
export type UserPlatformConnectionFilterInput = {
|
|
570
|
+
/** Filter by operation context */
|
|
571
|
+
context?: ContextFilterInput | null | undefined;
|
|
572
|
+
/** Only return connections where dmAllowed = true */
|
|
573
|
+
dmAllowed?: boolean | null | undefined;
|
|
574
|
+
/** Filter by active status */
|
|
575
|
+
isActive?: boolean | null | undefined;
|
|
576
|
+
/** Only return connections where notificationsEnabled = true */
|
|
577
|
+
notificationsEnabled?: boolean | null | undefined;
|
|
578
|
+
/** Filter by platform */
|
|
579
|
+
platform?: ChannelPlatform | null | undefined;
|
|
580
|
+
/** Filter by presence status */
|
|
581
|
+
presenceStatus?: UserPresenceStatus | null | undefined;
|
|
582
|
+
/** Search by display name, username, or email */
|
|
583
|
+
search?: string | null | undefined;
|
|
584
|
+
/** Filter by connection source */
|
|
585
|
+
source?: UserPlatformSource | null | undefined;
|
|
586
|
+
};
|
|
587
|
+
/**
|
|
588
|
+
* How a UserPlatformConnection was established.
|
|
589
|
+
* Controls whether dmAllowed can be set to true.
|
|
590
|
+
*/
|
|
591
|
+
export type UserPlatformSource =
|
|
592
|
+
/** Bulk-imported user record (e.g. from CSV or directory sync). */
|
|
593
|
+
'IMPORT'
|
|
594
|
+
/** Admin manually added the user (back-office operation). */
|
|
595
|
+
| 'MANUAL'
|
|
596
|
+
/**
|
|
597
|
+
* Connected via dashboard OAuth flow (Slack, Teams, Google Chat).
|
|
598
|
+
* Grants dmAllowed = true immediately after token exchange.
|
|
599
|
+
*/
|
|
600
|
+
| 'OAUTH'
|
|
601
|
+
/**
|
|
602
|
+
* Connected via pairing code (WhatsApp, Discord).
|
|
603
|
+
* Grants dmAllowed = true once the user approves the pairing code in the dashboard.
|
|
604
|
+
*/
|
|
605
|
+
| 'PAIRED'
|
|
606
|
+
/**
|
|
607
|
+
* Passively observed from an inbound webhook event.
|
|
608
|
+
* Never grants dmAllowed = true automatically.
|
|
609
|
+
*/
|
|
610
|
+
| 'SEEN';
|
|
611
|
+
/**
|
|
612
|
+
* User presence status on the communication platform.
|
|
613
|
+
* Synced from platform webhooks or periodic polling.
|
|
614
|
+
*/
|
|
615
|
+
export type UserPresenceStatus =
|
|
616
|
+
/** User is away or idle */
|
|
617
|
+
'AWAY'
|
|
618
|
+
/** User is in Do Not Disturb mode */
|
|
619
|
+
| 'DND'
|
|
620
|
+
/** User is offline */
|
|
621
|
+
| 'OFFLINE'
|
|
622
|
+
/** User is currently online and active */
|
|
623
|
+
| 'ONLINE';
|
|
624
|
+
/** Webhook event processing status */
|
|
625
|
+
export type WebhookProcessingStatus =
|
|
626
|
+
/** Successfully processed */
|
|
627
|
+
'COMPLETED'
|
|
628
|
+
/** Processing failed */
|
|
629
|
+
| 'FAILED'
|
|
630
|
+
/** Webhook ignored (duplicate, invalid signature) */
|
|
631
|
+
| 'IGNORED'
|
|
632
|
+
/** Webhook received, pending processing */
|
|
633
|
+
| 'PENDING'
|
|
634
|
+
/** Currently processing */
|
|
635
|
+
| 'PROCESSING';
|
|
4
636
|
export type ChannelFieldsFragment = {
|
|
5
|
-
__typename?: 'Channel';
|
|
6
637
|
id: string;
|
|
7
638
|
name: string;
|
|
8
|
-
description
|
|
639
|
+
description: string | null;
|
|
9
640
|
platform: Types.ChannelPlatform;
|
|
10
|
-
adapterType
|
|
641
|
+
adapterType: Types.AdapterType | null;
|
|
11
642
|
status: Types.ChannelStatus;
|
|
12
643
|
priority: number;
|
|
13
644
|
connectionHealth: Types.ConnectionHealth;
|
|
14
|
-
lastHealthCheckAt
|
|
15
|
-
healthCheckError
|
|
645
|
+
lastHealthCheckAt: string | null;
|
|
646
|
+
healthCheckError: string | null;
|
|
16
647
|
consecutiveFailures: number;
|
|
17
648
|
organizationId: string;
|
|
18
649
|
createdBy: string;
|
|
19
650
|
onBehalfOf: string;
|
|
20
|
-
platformConfig
|
|
651
|
+
platformConfig: Record<string, unknown> | null;
|
|
21
652
|
isConnected: boolean;
|
|
22
653
|
messageCount24h: number;
|
|
23
654
|
createdAt: string;
|
|
24
655
|
updatedAt: string;
|
|
25
656
|
tagAssignments: Array<{
|
|
26
|
-
__typename?: 'ChannelTagAssignment';
|
|
27
657
|
id: string;
|
|
28
658
|
tagId: string;
|
|
29
659
|
}>;
|
|
30
660
|
};
|
|
31
661
|
export type ConnectionSummaryFieldsFragment = {
|
|
32
|
-
__typename?: 'ChannelConnection';
|
|
33
662
|
id: string;
|
|
34
663
|
authType: Types.ChannelAuthType;
|
|
35
664
|
isActive: boolean;
|
|
36
665
|
isHealthy: boolean;
|
|
37
666
|
needsTokenRefresh: boolean;
|
|
38
|
-
lastTestedAt
|
|
39
|
-
testStatus
|
|
667
|
+
lastTestedAt: string | null;
|
|
668
|
+
testStatus: string | null;
|
|
40
669
|
tagAssignments: Array<{
|
|
41
|
-
__typename?: 'ChannelConnectionTagAssignment';
|
|
42
670
|
id: string;
|
|
43
671
|
tagId: string;
|
|
44
672
|
}>;
|
|
45
673
|
};
|
|
46
674
|
export type ConnectionFieldsFragment = {
|
|
47
|
-
__typename?: 'ChannelConnection';
|
|
48
675
|
id: string;
|
|
49
676
|
channelId: string;
|
|
50
677
|
authType: Types.ChannelAuthType;
|
|
51
678
|
isActive: boolean;
|
|
52
|
-
platformMetadata
|
|
53
|
-
tokenExpiresAt
|
|
54
|
-
lastRefreshedAt
|
|
55
|
-
lastTestedAt
|
|
56
|
-
testStatus
|
|
679
|
+
platformMetadata: Record<string, unknown> | null;
|
|
680
|
+
tokenExpiresAt: string | null;
|
|
681
|
+
lastRefreshedAt: string | null;
|
|
682
|
+
lastTestedAt: string | null;
|
|
683
|
+
testStatus: string | null;
|
|
57
684
|
needsTokenRefresh: boolean;
|
|
58
685
|
isHealthy: boolean;
|
|
59
|
-
daysUntilExpiry
|
|
686
|
+
daysUntilExpiry: number | null;
|
|
60
687
|
createdAt: string;
|
|
61
688
|
updatedAt: string;
|
|
62
689
|
tagAssignments: Array<{
|
|
63
|
-
__typename?: 'ChannelConnectionTagAssignment';
|
|
64
690
|
id: string;
|
|
65
691
|
tagId: string;
|
|
66
692
|
}>;
|
|
67
693
|
};
|
|
68
694
|
export type DeliveryAttemptFieldsFragment = {
|
|
69
|
-
__typename?: 'MessageDeliveryAttempt';
|
|
70
695
|
id: string;
|
|
71
696
|
channelId: string;
|
|
72
697
|
content: string;
|
|
73
|
-
format
|
|
74
|
-
platformOptions
|
|
75
|
-
platformResponse
|
|
698
|
+
format: string | null;
|
|
699
|
+
platformOptions: Record<string, unknown> | null;
|
|
700
|
+
platformResponse: Record<string, unknown> | null;
|
|
76
701
|
status: Types.DeliveryStatus;
|
|
77
702
|
retryCount: number;
|
|
78
|
-
nextRetryAt
|
|
79
|
-
sentAt
|
|
80
|
-
errorMessage
|
|
703
|
+
nextRetryAt: string | null;
|
|
704
|
+
sentAt: string | null;
|
|
705
|
+
errorMessage: string | null;
|
|
81
706
|
expiresAt: string;
|
|
82
707
|
createdAt: string;
|
|
83
708
|
updatedAt: string;
|
|
84
709
|
};
|
|
85
710
|
export type UserPlatformConnectionFieldsFragment = {
|
|
86
|
-
__typename?: 'UserPlatformConnection';
|
|
87
711
|
id: string;
|
|
88
712
|
channelId: string;
|
|
89
713
|
platform: Types.ChannelPlatform;
|
|
90
714
|
externalUserId: string;
|
|
91
|
-
externalUsername
|
|
92
|
-
externalDisplayName
|
|
93
|
-
externalEmail
|
|
94
|
-
externalAvatarUrl
|
|
95
|
-
externalMetadata
|
|
96
|
-
internalUserId
|
|
715
|
+
externalUsername: string | null;
|
|
716
|
+
externalDisplayName: string | null;
|
|
717
|
+
externalEmail: string | null;
|
|
718
|
+
externalAvatarUrl: string | null;
|
|
719
|
+
externalMetadata: Record<string, unknown> | null;
|
|
720
|
+
internalUserId: string | null;
|
|
97
721
|
organizationId: string;
|
|
98
722
|
source: Types.UserPlatformSource;
|
|
99
|
-
connectedAt
|
|
723
|
+
connectedAt: string | null;
|
|
100
724
|
dmAllowed: boolean;
|
|
101
|
-
dmConversationId
|
|
725
|
+
dmConversationId: string | null;
|
|
102
726
|
notificationsEnabled: boolean;
|
|
103
|
-
userTokenExpiresAt
|
|
104
|
-
userTokenScope
|
|
105
|
-
pairingCode
|
|
106
|
-
pairingCodeExpiresAt
|
|
107
|
-
pairingStatus
|
|
108
|
-
pairingApprovedAt
|
|
727
|
+
userTokenExpiresAt: string | null;
|
|
728
|
+
userTokenScope: string | null;
|
|
729
|
+
pairingCode: string | null;
|
|
730
|
+
pairingCodeExpiresAt: string | null;
|
|
731
|
+
pairingStatus: Types.PairingStatus | null;
|
|
732
|
+
pairingApprovedAt: string | null;
|
|
109
733
|
presenceStatus: Types.UserPresenceStatus;
|
|
110
|
-
customStatus
|
|
111
|
-
lastActiveAt
|
|
734
|
+
customStatus: string | null;
|
|
735
|
+
lastActiveAt: string | null;
|
|
112
736
|
isActive: boolean;
|
|
113
737
|
roles: Array<string>;
|
|
114
738
|
permissions: Array<string>;
|
|
115
739
|
lastSyncedAt: string;
|
|
116
|
-
deletedAt
|
|
740
|
+
deletedAt: string | null;
|
|
117
741
|
createdAt: string;
|
|
118
742
|
updatedAt: string;
|
|
119
743
|
isTokenExpired: boolean;
|
|
120
744
|
canReceiveDm: boolean;
|
|
121
745
|
};
|
|
122
746
|
export type WebhookEventFieldsFragment = {
|
|
123
|
-
__typename?: 'WebhookEvent';
|
|
124
747
|
id: string;
|
|
125
748
|
channelId: string;
|
|
126
749
|
eventType: string;
|
|
127
750
|
status: Types.WebhookProcessingStatus;
|
|
128
751
|
payload: Record<string, unknown>;
|
|
129
|
-
signature
|
|
752
|
+
signature: string | null;
|
|
130
753
|
isDuplicate: boolean;
|
|
131
|
-
originalEventId
|
|
132
|
-
errorMessage
|
|
133
|
-
processingResult
|
|
134
|
-
processedAt
|
|
754
|
+
originalEventId: string | null;
|
|
755
|
+
errorMessage: string | null;
|
|
756
|
+
processingResult: Record<string, unknown> | null;
|
|
757
|
+
processedAt: string | null;
|
|
135
758
|
expiresAt: string;
|
|
136
759
|
createdAt: string;
|
|
137
760
|
updatedAt: string;
|
|
138
|
-
context
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
custom?: Record<string, unknown> | null;
|
|
761
|
+
context: {
|
|
762
|
+
tenantId: string | null;
|
|
763
|
+
userId: string | null;
|
|
764
|
+
appId: string | null;
|
|
765
|
+
workspaceId: string | null;
|
|
766
|
+
projectId: string | null;
|
|
767
|
+
organizationId: string | null;
|
|
768
|
+
custom: Record<string, unknown> | null;
|
|
147
769
|
} | null;
|
|
148
770
|
};
|
|
149
|
-
export type ActivateChannelMutationVariables =
|
|
150
|
-
id:
|
|
771
|
+
export type ActivateChannelMutationVariables = Exact<{
|
|
772
|
+
id: string | number;
|
|
151
773
|
}>;
|
|
152
774
|
export type ActivateChannelMutation = {
|
|
153
|
-
__typename?: 'Mutation';
|
|
154
775
|
activateChannel: {
|
|
155
|
-
__typename?: 'Channel';
|
|
156
776
|
id: string;
|
|
157
777
|
status: Types.ChannelStatus;
|
|
158
778
|
};
|
|
159
779
|
};
|
|
160
|
-
export type CreateChannelMutationVariables =
|
|
780
|
+
export type CreateChannelMutationVariables = Exact<{
|
|
161
781
|
input: Types.CreateChannelInput;
|
|
162
782
|
}>;
|
|
163
783
|
export type CreateChannelMutation = {
|
|
164
|
-
__typename?: 'Mutation';
|
|
165
784
|
createChannel: {
|
|
166
|
-
__typename?: 'Channel';
|
|
167
785
|
id: string;
|
|
168
786
|
name: string;
|
|
169
|
-
description
|
|
787
|
+
description: string | null;
|
|
170
788
|
platform: Types.ChannelPlatform;
|
|
171
|
-
adapterType
|
|
789
|
+
adapterType: Types.AdapterType | null;
|
|
172
790
|
status: Types.ChannelStatus;
|
|
173
791
|
priority: number;
|
|
174
792
|
connectionHealth: Types.ConnectionHealth;
|
|
175
|
-
lastHealthCheckAt
|
|
176
|
-
healthCheckError
|
|
793
|
+
lastHealthCheckAt: string | null;
|
|
794
|
+
healthCheckError: string | null;
|
|
177
795
|
consecutiveFailures: number;
|
|
178
796
|
organizationId: string;
|
|
179
797
|
createdBy: string;
|
|
180
798
|
onBehalfOf: string;
|
|
181
|
-
platformConfig
|
|
799
|
+
platformConfig: Record<string, unknown> | null;
|
|
182
800
|
isConnected: boolean;
|
|
183
801
|
messageCount24h: number;
|
|
184
802
|
createdAt: string;
|
|
185
803
|
updatedAt: string;
|
|
186
804
|
tagAssignments: Array<{
|
|
187
|
-
__typename?: 'ChannelTagAssignment';
|
|
188
805
|
id: string;
|
|
189
806
|
tagId: string;
|
|
190
807
|
}>;
|
|
191
808
|
};
|
|
192
809
|
};
|
|
193
|
-
export type CreateConnectionMutationVariables =
|
|
810
|
+
export type CreateConnectionMutationVariables = Exact<{
|
|
194
811
|
input: Types.CreateConnectionInput;
|
|
195
812
|
}>;
|
|
196
813
|
export type CreateConnectionMutation = {
|
|
197
|
-
__typename?: 'Mutation';
|
|
198
814
|
createConnection: {
|
|
199
|
-
__typename?: 'ChannelConnection';
|
|
200
815
|
id: string;
|
|
201
816
|
channelId: string;
|
|
202
817
|
authType: Types.ChannelAuthType;
|
|
203
818
|
isActive: boolean;
|
|
204
|
-
platformMetadata
|
|
205
|
-
tokenExpiresAt
|
|
206
|
-
lastRefreshedAt
|
|
207
|
-
lastTestedAt
|
|
208
|
-
testStatus
|
|
819
|
+
platformMetadata: Record<string, unknown> | null;
|
|
820
|
+
tokenExpiresAt: string | null;
|
|
821
|
+
lastRefreshedAt: string | null;
|
|
822
|
+
lastTestedAt: string | null;
|
|
823
|
+
testStatus: string | null;
|
|
209
824
|
needsTokenRefresh: boolean;
|
|
210
825
|
isHealthy: boolean;
|
|
211
|
-
daysUntilExpiry
|
|
826
|
+
daysUntilExpiry: number | null;
|
|
212
827
|
createdAt: string;
|
|
213
828
|
updatedAt: string;
|
|
214
829
|
tagAssignments: Array<{
|
|
215
|
-
__typename?: 'ChannelConnectionTagAssignment';
|
|
216
830
|
id: string;
|
|
217
831
|
tagId: string;
|
|
218
832
|
}>;
|
|
219
833
|
};
|
|
220
834
|
};
|
|
221
|
-
export type DeactivateChannelMutationVariables =
|
|
222
|
-
id:
|
|
835
|
+
export type DeactivateChannelMutationVariables = Exact<{
|
|
836
|
+
id: string | number;
|
|
223
837
|
}>;
|
|
224
838
|
export type DeactivateChannelMutation = {
|
|
225
|
-
__typename?: 'Mutation';
|
|
226
839
|
deactivateChannel: {
|
|
227
|
-
__typename?: 'Channel';
|
|
228
840
|
id: string;
|
|
229
841
|
status: Types.ChannelStatus;
|
|
230
842
|
};
|
|
231
843
|
};
|
|
232
|
-
export type DeleteChannelMutationVariables =
|
|
233
|
-
id:
|
|
844
|
+
export type DeleteChannelMutationVariables = Exact<{
|
|
845
|
+
id: string | number;
|
|
234
846
|
}>;
|
|
235
847
|
export type DeleteChannelMutation = {
|
|
236
|
-
__typename?: 'Mutation';
|
|
237
848
|
deleteChannel: boolean;
|
|
238
849
|
};
|
|
239
|
-
export type DeleteConnectionMutationVariables =
|
|
240
|
-
id:
|
|
850
|
+
export type DeleteConnectionMutationVariables = Exact<{
|
|
851
|
+
id: string | number;
|
|
241
852
|
}>;
|
|
242
853
|
export type DeleteConnectionMutation = {
|
|
243
|
-
__typename?: 'Mutation';
|
|
244
854
|
deleteConnection: boolean;
|
|
245
855
|
};
|
|
246
|
-
export type DeliverBulkNotificationMutationVariables =
|
|
856
|
+
export type DeliverBulkNotificationMutationVariables = Exact<{
|
|
247
857
|
input: Types.BulkChannelDeliveryInput;
|
|
248
858
|
}>;
|
|
249
859
|
export type DeliverBulkNotificationMutation = {
|
|
250
|
-
__typename?: 'Mutation';
|
|
251
860
|
deliverBulkNotification: {
|
|
252
|
-
__typename?: 'BulkChannelDeliveryResult';
|
|
253
861
|
totalCount: number;
|
|
254
862
|
successCount: number;
|
|
255
863
|
failedCount: number;
|
|
256
864
|
results: Array<{
|
|
257
|
-
__typename?: 'ChannelDeliveryResult';
|
|
258
865
|
success: boolean;
|
|
259
|
-
messageId
|
|
260
|
-
externalId
|
|
866
|
+
messageId: string | null;
|
|
867
|
+
externalId: string | null;
|
|
261
868
|
status: Types.DeliveryStatus;
|
|
262
869
|
platform: Types.ChannelPlatform;
|
|
263
|
-
sentAt
|
|
264
|
-
metadata
|
|
265
|
-
error
|
|
266
|
-
__typename?: 'ChannelDeliveryError';
|
|
870
|
+
sentAt: string | null;
|
|
871
|
+
metadata: Record<string, unknown> | null;
|
|
872
|
+
error: {
|
|
267
873
|
code: string;
|
|
268
874
|
message: string;
|
|
269
875
|
retryable: boolean;
|
|
@@ -271,183 +877,161 @@ export type DeliverBulkNotificationMutation = {
|
|
|
271
877
|
}>;
|
|
272
878
|
};
|
|
273
879
|
};
|
|
274
|
-
export type DeliverNotificationMutationVariables =
|
|
880
|
+
export type DeliverNotificationMutationVariables = Exact<{
|
|
275
881
|
input: Types.ChannelDeliveryInput;
|
|
276
882
|
}>;
|
|
277
883
|
export type DeliverNotificationMutation = {
|
|
278
|
-
__typename?: 'Mutation';
|
|
279
884
|
deliverNotification: {
|
|
280
|
-
__typename?: 'ChannelDeliveryResult';
|
|
281
885
|
success: boolean;
|
|
282
|
-
messageId
|
|
283
|
-
externalId
|
|
886
|
+
messageId: string | null;
|
|
887
|
+
externalId: string | null;
|
|
284
888
|
status: Types.DeliveryStatus;
|
|
285
889
|
platform: Types.ChannelPlatform;
|
|
286
|
-
sentAt
|
|
287
|
-
metadata
|
|
288
|
-
error
|
|
289
|
-
__typename?: 'ChannelDeliveryError';
|
|
890
|
+
sentAt: string | null;
|
|
891
|
+
metadata: Record<string, unknown> | null;
|
|
892
|
+
error: {
|
|
290
893
|
code: string;
|
|
291
894
|
message: string;
|
|
292
895
|
retryable: boolean;
|
|
293
|
-
details
|
|
896
|
+
details: Record<string, unknown> | null;
|
|
294
897
|
} | null;
|
|
295
898
|
};
|
|
296
899
|
};
|
|
297
|
-
export type ExportChannelUsersMutationVariables =
|
|
900
|
+
export type ExportChannelUsersMutationVariables = Exact<{
|
|
298
901
|
filter: Types.ExportChannelUsersFilter;
|
|
299
902
|
format: Types.ChannelExportFormat;
|
|
300
903
|
}>;
|
|
301
904
|
export type ExportChannelUsersMutation = {
|
|
302
|
-
__typename?: 'Mutation';
|
|
303
905
|
exportChannelUsers: {
|
|
304
|
-
__typename?: 'ChannelExportJob';
|
|
305
906
|
id: string;
|
|
306
907
|
status: Types.ChannelExportStatus;
|
|
307
908
|
entityType: string;
|
|
308
909
|
format: Types.ChannelExportFormat;
|
|
309
|
-
rowCount
|
|
310
|
-
downloadUrl
|
|
311
|
-
error
|
|
910
|
+
rowCount: number | null;
|
|
911
|
+
downloadUrl: string | null;
|
|
912
|
+
error: string | null;
|
|
312
913
|
};
|
|
313
914
|
};
|
|
314
|
-
export type ExportChannelsMutationVariables =
|
|
915
|
+
export type ExportChannelsMutationVariables = Exact<{
|
|
315
916
|
filter: Types.ExportChannelsFilter;
|
|
316
917
|
format: Types.ChannelExportFormat;
|
|
317
918
|
}>;
|
|
318
919
|
export type ExportChannelsMutation = {
|
|
319
|
-
__typename?: 'Mutation';
|
|
320
920
|
exportChannels: {
|
|
321
|
-
__typename?: 'ChannelExportJob';
|
|
322
921
|
id: string;
|
|
323
922
|
status: Types.ChannelExportStatus;
|
|
324
923
|
entityType: string;
|
|
325
924
|
format: Types.ChannelExportFormat;
|
|
326
|
-
rowCount
|
|
327
|
-
downloadUrl
|
|
328
|
-
error
|
|
925
|
+
rowCount: number | null;
|
|
926
|
+
downloadUrl: string | null;
|
|
927
|
+
error: string | null;
|
|
329
928
|
};
|
|
330
929
|
};
|
|
331
|
-
export type ExportDeliveryAttemptsMutationVariables =
|
|
930
|
+
export type ExportDeliveryAttemptsMutationVariables = Exact<{
|
|
332
931
|
filter: Types.ExportDeliveryAttemptsFilter;
|
|
333
932
|
format: Types.ChannelExportFormat;
|
|
334
933
|
}>;
|
|
335
934
|
export type ExportDeliveryAttemptsMutation = {
|
|
336
|
-
__typename?: 'Mutation';
|
|
337
935
|
exportDeliveryAttempts: {
|
|
338
|
-
__typename?: 'ChannelExportJob';
|
|
339
936
|
id: string;
|
|
340
937
|
status: Types.ChannelExportStatus;
|
|
341
938
|
entityType: string;
|
|
342
939
|
format: Types.ChannelExportFormat;
|
|
343
|
-
rowCount
|
|
344
|
-
downloadUrl
|
|
345
|
-
error
|
|
940
|
+
rowCount: number | null;
|
|
941
|
+
downloadUrl: string | null;
|
|
942
|
+
error: string | null;
|
|
346
943
|
};
|
|
347
944
|
};
|
|
348
|
-
export type ExportWebhookEventsMutationVariables =
|
|
945
|
+
export type ExportWebhookEventsMutationVariables = Exact<{
|
|
349
946
|
filter: Types.ExportWebhookEventsFilter;
|
|
350
947
|
format: Types.ChannelExportFormat;
|
|
351
948
|
}>;
|
|
352
949
|
export type ExportWebhookEventsMutation = {
|
|
353
|
-
__typename?: 'Mutation';
|
|
354
950
|
exportWebhookEvents: {
|
|
355
|
-
__typename?: 'ChannelExportJob';
|
|
356
951
|
id: string;
|
|
357
952
|
status: Types.ChannelExportStatus;
|
|
358
953
|
entityType: string;
|
|
359
954
|
format: Types.ChannelExportFormat;
|
|
360
|
-
rowCount
|
|
361
|
-
downloadUrl
|
|
362
|
-
error
|
|
955
|
+
rowCount: number | null;
|
|
956
|
+
downloadUrl: string | null;
|
|
957
|
+
error: string | null;
|
|
363
958
|
};
|
|
364
959
|
};
|
|
365
|
-
export type RetryDeliveryMutationVariables =
|
|
366
|
-
attemptId:
|
|
960
|
+
export type RetryDeliveryMutationVariables = Exact<{
|
|
961
|
+
attemptId: string | number;
|
|
367
962
|
}>;
|
|
368
963
|
export type RetryDeliveryMutation = {
|
|
369
|
-
__typename?: 'Mutation';
|
|
370
964
|
retryDelivery: {
|
|
371
|
-
__typename?: 'MessageDeliveryResult';
|
|
372
965
|
success: boolean;
|
|
373
|
-
messageId
|
|
966
|
+
messageId: string | null;
|
|
374
967
|
attemptId: string;
|
|
375
|
-
error
|
|
968
|
+
error: string | null;
|
|
376
969
|
willRetry: boolean;
|
|
377
|
-
nextRetryAt
|
|
970
|
+
nextRetryAt: string | null;
|
|
378
971
|
};
|
|
379
972
|
};
|
|
380
|
-
export type RunChannelHealthCheckMutationVariables =
|
|
381
|
-
id:
|
|
973
|
+
export type RunChannelHealthCheckMutationVariables = Exact<{
|
|
974
|
+
id: string | number;
|
|
382
975
|
}>;
|
|
383
976
|
export type RunChannelHealthCheckMutation = {
|
|
384
|
-
__typename?: 'Mutation';
|
|
385
977
|
runChannelHealthCheck: {
|
|
386
|
-
__typename?: 'ChannelHealthCheck';
|
|
387
978
|
channelId: string;
|
|
388
979
|
isHealthy: boolean;
|
|
389
980
|
status: string;
|
|
390
|
-
responseTimeMs
|
|
981
|
+
responseTimeMs: number | null;
|
|
391
982
|
lastCheckAt: string;
|
|
392
|
-
error
|
|
983
|
+
error: string | null;
|
|
393
984
|
};
|
|
394
985
|
};
|
|
395
|
-
export type TestConnectionHealthMutationVariables =
|
|
396
|
-
id:
|
|
986
|
+
export type TestConnectionHealthMutationVariables = Exact<{
|
|
987
|
+
id: string | number;
|
|
397
988
|
}>;
|
|
398
989
|
export type TestConnectionHealthMutation = {
|
|
399
|
-
__typename?: 'Mutation';
|
|
400
990
|
testConnectionHealth: {
|
|
401
|
-
__typename?: 'ConnectionTestResult';
|
|
402
991
|
success: boolean;
|
|
403
992
|
message: string;
|
|
404
|
-
responseTimeMs
|
|
405
|
-
platformInfo
|
|
406
|
-
error
|
|
993
|
+
responseTimeMs: number | null;
|
|
994
|
+
platformInfo: Record<string, unknown> | null;
|
|
995
|
+
error: string | null;
|
|
407
996
|
};
|
|
408
997
|
};
|
|
409
|
-
export type UpdateChannelMutationVariables =
|
|
410
|
-
id:
|
|
998
|
+
export type UpdateChannelMutationVariables = Exact<{
|
|
999
|
+
id: string | number;
|
|
411
1000
|
input: Types.UpdateChannelInput;
|
|
412
1001
|
}>;
|
|
413
1002
|
export type UpdateChannelMutation = {
|
|
414
|
-
__typename?: 'Mutation';
|
|
415
1003
|
updateChannel: {
|
|
416
|
-
__typename?: 'Channel';
|
|
417
1004
|
id: string;
|
|
418
1005
|
name: string;
|
|
419
|
-
description
|
|
1006
|
+
description: string | null;
|
|
420
1007
|
platform: Types.ChannelPlatform;
|
|
421
|
-
adapterType
|
|
1008
|
+
adapterType: Types.AdapterType | null;
|
|
422
1009
|
status: Types.ChannelStatus;
|
|
423
1010
|
priority: number;
|
|
424
1011
|
connectionHealth: Types.ConnectionHealth;
|
|
425
|
-
lastHealthCheckAt
|
|
426
|
-
healthCheckError
|
|
1012
|
+
lastHealthCheckAt: string | null;
|
|
1013
|
+
healthCheckError: string | null;
|
|
427
1014
|
consecutiveFailures: number;
|
|
428
1015
|
organizationId: string;
|
|
429
1016
|
createdBy: string;
|
|
430
1017
|
onBehalfOf: string;
|
|
431
|
-
platformConfig
|
|
1018
|
+
platformConfig: Record<string, unknown> | null;
|
|
432
1019
|
isConnected: boolean;
|
|
433
1020
|
messageCount24h: number;
|
|
434
1021
|
createdAt: string;
|
|
435
1022
|
updatedAt: string;
|
|
436
1023
|
tagAssignments: Array<{
|
|
437
|
-
__typename?: 'ChannelTagAssignment';
|
|
438
1024
|
id: string;
|
|
439
1025
|
tagId: string;
|
|
440
1026
|
}>;
|
|
441
1027
|
};
|
|
442
1028
|
};
|
|
443
|
-
export type UpdateChannelOrgSettingsMutationVariables =
|
|
444
|
-
organizationId:
|
|
1029
|
+
export type UpdateChannelOrgSettingsMutationVariables = Exact<{
|
|
1030
|
+
organizationId: string | number;
|
|
445
1031
|
input: Types.ChannelOrgSettingsInput;
|
|
446
1032
|
}>;
|
|
447
1033
|
export type UpdateChannelOrgSettingsMutation = {
|
|
448
|
-
__typename?: 'Mutation';
|
|
449
1034
|
updateChannelOrgSettings: {
|
|
450
|
-
__typename?: 'ChannelOrgSettings';
|
|
451
1035
|
organizationId: string;
|
|
452
1036
|
defaultPriority: number;
|
|
453
1037
|
rateLimitPerMinute: number;
|
|
@@ -459,113 +1043,101 @@ export type UpdateChannelOrgSettingsMutation = {
|
|
|
459
1043
|
updatedAt: string;
|
|
460
1044
|
};
|
|
461
1045
|
};
|
|
462
|
-
export type UpdateConnectionMutationVariables =
|
|
463
|
-
id:
|
|
1046
|
+
export type UpdateConnectionMutationVariables = Exact<{
|
|
1047
|
+
id: string | number;
|
|
464
1048
|
input: Types.UpdateConnectionInput;
|
|
465
1049
|
}>;
|
|
466
1050
|
export type UpdateConnectionMutation = {
|
|
467
|
-
__typename?: 'Mutation';
|
|
468
1051
|
updateConnection: {
|
|
469
|
-
__typename?: 'ChannelConnection';
|
|
470
1052
|
id: string;
|
|
471
1053
|
channelId: string;
|
|
472
1054
|
authType: Types.ChannelAuthType;
|
|
473
1055
|
isActive: boolean;
|
|
474
|
-
platformMetadata
|
|
475
|
-
tokenExpiresAt
|
|
476
|
-
lastRefreshedAt
|
|
477
|
-
lastTestedAt
|
|
478
|
-
testStatus
|
|
1056
|
+
platformMetadata: Record<string, unknown> | null;
|
|
1057
|
+
tokenExpiresAt: string | null;
|
|
1058
|
+
lastRefreshedAt: string | null;
|
|
1059
|
+
lastTestedAt: string | null;
|
|
1060
|
+
testStatus: string | null;
|
|
479
1061
|
needsTokenRefresh: boolean;
|
|
480
1062
|
isHealthy: boolean;
|
|
481
|
-
daysUntilExpiry
|
|
1063
|
+
daysUntilExpiry: number | null;
|
|
482
1064
|
createdAt: string;
|
|
483
1065
|
updatedAt: string;
|
|
484
1066
|
tagAssignments: Array<{
|
|
485
|
-
__typename?: 'ChannelConnectionTagAssignment';
|
|
486
1067
|
id: string;
|
|
487
1068
|
tagId: string;
|
|
488
1069
|
}>;
|
|
489
1070
|
};
|
|
490
1071
|
};
|
|
491
|
-
export type GetChannelQueryVariables =
|
|
492
|
-
id:
|
|
1072
|
+
export type GetChannelQueryVariables = Exact<{
|
|
1073
|
+
id: string | number;
|
|
493
1074
|
}>;
|
|
494
1075
|
export type GetChannelQuery = {
|
|
495
|
-
|
|
496
|
-
getChannel?: {
|
|
497
|
-
__typename?: 'Channel';
|
|
1076
|
+
getChannel: {
|
|
498
1077
|
id: string;
|
|
499
1078
|
name: string;
|
|
500
|
-
description
|
|
1079
|
+
description: string | null;
|
|
501
1080
|
platform: Types.ChannelPlatform;
|
|
502
|
-
adapterType
|
|
1081
|
+
adapterType: Types.AdapterType | null;
|
|
503
1082
|
status: Types.ChannelStatus;
|
|
504
1083
|
priority: number;
|
|
505
1084
|
connectionHealth: Types.ConnectionHealth;
|
|
506
|
-
lastHealthCheckAt
|
|
507
|
-
healthCheckError
|
|
1085
|
+
lastHealthCheckAt: string | null;
|
|
1086
|
+
healthCheckError: string | null;
|
|
508
1087
|
consecutiveFailures: number;
|
|
509
1088
|
organizationId: string;
|
|
510
1089
|
createdBy: string;
|
|
511
1090
|
onBehalfOf: string;
|
|
512
|
-
platformConfig
|
|
1091
|
+
platformConfig: Record<string, unknown> | null;
|
|
513
1092
|
isConnected: boolean;
|
|
514
1093
|
messageCount24h: number;
|
|
515
1094
|
createdAt: string;
|
|
516
1095
|
updatedAt: string;
|
|
517
|
-
connection
|
|
518
|
-
__typename?: 'ChannelConnection';
|
|
1096
|
+
connection: {
|
|
519
1097
|
id: string;
|
|
520
1098
|
channelId: string;
|
|
521
1099
|
authType: Types.ChannelAuthType;
|
|
522
1100
|
isActive: boolean;
|
|
523
|
-
platformMetadata
|
|
524
|
-
tokenExpiresAt
|
|
525
|
-
lastRefreshedAt
|
|
526
|
-
lastTestedAt
|
|
527
|
-
testStatus
|
|
1101
|
+
platformMetadata: Record<string, unknown> | null;
|
|
1102
|
+
tokenExpiresAt: string | null;
|
|
1103
|
+
lastRefreshedAt: string | null;
|
|
1104
|
+
lastTestedAt: string | null;
|
|
1105
|
+
testStatus: string | null;
|
|
528
1106
|
needsTokenRefresh: boolean;
|
|
529
1107
|
isHealthy: boolean;
|
|
530
|
-
daysUntilExpiry
|
|
1108
|
+
daysUntilExpiry: number | null;
|
|
531
1109
|
createdAt: string;
|
|
532
1110
|
updatedAt: string;
|
|
533
1111
|
tagAssignments: Array<{
|
|
534
|
-
__typename?: 'ChannelConnectionTagAssignment';
|
|
535
1112
|
id: string;
|
|
536
1113
|
tagId: string;
|
|
537
1114
|
}>;
|
|
538
1115
|
} | null;
|
|
539
1116
|
tagAssignments: Array<{
|
|
540
|
-
__typename?: 'ChannelTagAssignment';
|
|
541
1117
|
id: string;
|
|
542
1118
|
tagId: string;
|
|
543
1119
|
}>;
|
|
544
1120
|
} | null;
|
|
545
1121
|
};
|
|
546
|
-
export type GetChannelExportJobQueryVariables =
|
|
547
|
-
id:
|
|
1122
|
+
export type GetChannelExportJobQueryVariables = Exact<{
|
|
1123
|
+
id: string | number;
|
|
548
1124
|
}>;
|
|
549
1125
|
export type GetChannelExportJobQuery = {
|
|
550
|
-
|
|
551
|
-
channelExportJob?: {
|
|
552
|
-
__typename?: 'ChannelExportJob';
|
|
1126
|
+
channelExportJob: {
|
|
553
1127
|
id: string;
|
|
554
1128
|
status: Types.ChannelExportStatus;
|
|
555
1129
|
entityType: string;
|
|
556
1130
|
format: Types.ChannelExportFormat;
|
|
557
|
-
rowCount
|
|
558
|
-
downloadUrl
|
|
559
|
-
error
|
|
1131
|
+
rowCount: number | null;
|
|
1132
|
+
downloadUrl: string | null;
|
|
1133
|
+
error: string | null;
|
|
560
1134
|
} | null;
|
|
561
1135
|
};
|
|
562
|
-
export type GetChannelOrgSettingsQueryVariables =
|
|
563
|
-
organizationId:
|
|
1136
|
+
export type GetChannelOrgSettingsQueryVariables = Exact<{
|
|
1137
|
+
organizationId: string | number;
|
|
564
1138
|
}>;
|
|
565
1139
|
export type GetChannelOrgSettingsQuery = {
|
|
566
|
-
__typename?: 'Query';
|
|
567
1140
|
getChannelOrgSettings: {
|
|
568
|
-
__typename?: 'ChannelOrgSettings';
|
|
569
1141
|
organizationId: string;
|
|
570
1142
|
defaultPriority: number;
|
|
571
1143
|
rateLimitPerMinute: number;
|
|
@@ -577,128 +1149,114 @@ export type GetChannelOrgSettingsQuery = {
|
|
|
577
1149
|
updatedAt: string;
|
|
578
1150
|
};
|
|
579
1151
|
};
|
|
580
|
-
export type GetChannelsQueryVariables =
|
|
581
|
-
filter?: Types.
|
|
582
|
-
pagination?: Types.
|
|
1152
|
+
export type GetChannelsQueryVariables = Exact<{
|
|
1153
|
+
filter?: Types.ChannelFilterInput | null | undefined;
|
|
1154
|
+
pagination?: Types.ChannelPaginationInput | null | undefined;
|
|
583
1155
|
}>;
|
|
584
1156
|
export type GetChannelsQuery = {
|
|
585
|
-
__typename?: 'Query';
|
|
586
1157
|
getChannels: {
|
|
587
|
-
__typename?: 'ChannelList';
|
|
588
1158
|
total: number;
|
|
589
1159
|
hasMore: boolean;
|
|
590
1160
|
items: Array<{
|
|
591
|
-
__typename?: 'Channel';
|
|
592
1161
|
id: string;
|
|
593
1162
|
name: string;
|
|
594
|
-
description
|
|
1163
|
+
description: string | null;
|
|
595
1164
|
platform: Types.ChannelPlatform;
|
|
596
|
-
adapterType
|
|
1165
|
+
adapterType: Types.AdapterType | null;
|
|
597
1166
|
status: Types.ChannelStatus;
|
|
598
1167
|
priority: number;
|
|
599
1168
|
connectionHealth: Types.ConnectionHealth;
|
|
600
|
-
lastHealthCheckAt
|
|
601
|
-
healthCheckError
|
|
1169
|
+
lastHealthCheckAt: string | null;
|
|
1170
|
+
healthCheckError: string | null;
|
|
602
1171
|
consecutiveFailures: number;
|
|
603
1172
|
organizationId: string;
|
|
604
1173
|
createdBy: string;
|
|
605
1174
|
onBehalfOf: string;
|
|
606
|
-
platformConfig
|
|
1175
|
+
platformConfig: Record<string, unknown> | null;
|
|
607
1176
|
isConnected: boolean;
|
|
608
1177
|
messageCount24h: number;
|
|
609
1178
|
createdAt: string;
|
|
610
1179
|
updatedAt: string;
|
|
611
|
-
connection
|
|
612
|
-
__typename?: 'ChannelConnection';
|
|
1180
|
+
connection: {
|
|
613
1181
|
id: string;
|
|
614
1182
|
authType: Types.ChannelAuthType;
|
|
615
1183
|
isActive: boolean;
|
|
616
1184
|
isHealthy: boolean;
|
|
617
1185
|
needsTokenRefresh: boolean;
|
|
618
|
-
lastTestedAt
|
|
619
|
-
testStatus
|
|
1186
|
+
lastTestedAt: string | null;
|
|
1187
|
+
testStatus: string | null;
|
|
620
1188
|
tagAssignments: Array<{
|
|
621
|
-
__typename?: 'ChannelConnectionTagAssignment';
|
|
622
1189
|
id: string;
|
|
623
1190
|
tagId: string;
|
|
624
1191
|
}>;
|
|
625
1192
|
} | null;
|
|
626
1193
|
tagAssignments: Array<{
|
|
627
|
-
__typename?: 'ChannelTagAssignment';
|
|
628
1194
|
id: string;
|
|
629
1195
|
tagId: string;
|
|
630
1196
|
}>;
|
|
631
1197
|
}>;
|
|
632
1198
|
};
|
|
633
1199
|
};
|
|
634
|
-
export type GetConnectionQueryVariables =
|
|
635
|
-
id:
|
|
1200
|
+
export type GetConnectionQueryVariables = Exact<{
|
|
1201
|
+
id: string | number;
|
|
636
1202
|
}>;
|
|
637
1203
|
export type GetConnectionQuery = {
|
|
638
|
-
|
|
639
|
-
getConnection?: {
|
|
640
|
-
__typename?: 'ChannelConnection';
|
|
1204
|
+
getConnection: {
|
|
641
1205
|
id: string;
|
|
642
1206
|
channelId: string;
|
|
643
1207
|
authType: Types.ChannelAuthType;
|
|
644
1208
|
isActive: boolean;
|
|
645
|
-
platformMetadata
|
|
646
|
-
tokenExpiresAt
|
|
647
|
-
lastRefreshedAt
|
|
648
|
-
lastTestedAt
|
|
649
|
-
testStatus
|
|
1209
|
+
platformMetadata: Record<string, unknown> | null;
|
|
1210
|
+
tokenExpiresAt: string | null;
|
|
1211
|
+
lastRefreshedAt: string | null;
|
|
1212
|
+
lastTestedAt: string | null;
|
|
1213
|
+
testStatus: string | null;
|
|
650
1214
|
needsTokenRefresh: boolean;
|
|
651
1215
|
isHealthy: boolean;
|
|
652
|
-
daysUntilExpiry
|
|
1216
|
+
daysUntilExpiry: number | null;
|
|
653
1217
|
createdAt: string;
|
|
654
1218
|
updatedAt: string;
|
|
655
1219
|
tagAssignments: Array<{
|
|
656
|
-
__typename?: 'ChannelConnectionTagAssignment';
|
|
657
1220
|
id: string;
|
|
658
1221
|
tagId: string;
|
|
659
1222
|
}>;
|
|
660
1223
|
} | null;
|
|
661
1224
|
};
|
|
662
|
-
export type GetDeliveryAttemptsQueryVariables =
|
|
663
|
-
channelId:
|
|
664
|
-
limit?:
|
|
665
|
-
cursor?:
|
|
1225
|
+
export type GetDeliveryAttemptsQueryVariables = Exact<{
|
|
1226
|
+
channelId: string | number;
|
|
1227
|
+
limit?: number | null | undefined;
|
|
1228
|
+
cursor?: string | null | undefined;
|
|
666
1229
|
}>;
|
|
667
1230
|
export type GetDeliveryAttemptsQuery = {
|
|
668
|
-
__typename?: 'Query';
|
|
669
1231
|
getChannelDeliveryAttempts: {
|
|
670
|
-
|
|
671
|
-
nextCursor?: string | null;
|
|
1232
|
+
nextCursor: string | null;
|
|
672
1233
|
hasMore: boolean;
|
|
673
1234
|
total: number;
|
|
674
1235
|
items: Array<{
|
|
675
|
-
__typename?: 'MessageDeliveryAttempt';
|
|
676
1236
|
id: string;
|
|
677
1237
|
channelId: string;
|
|
678
1238
|
content: string;
|
|
679
|
-
format
|
|
680
|
-
platformOptions
|
|
681
|
-
platformResponse
|
|
1239
|
+
format: string | null;
|
|
1240
|
+
platformOptions: Record<string, unknown> | null;
|
|
1241
|
+
platformResponse: Record<string, unknown> | null;
|
|
682
1242
|
status: Types.DeliveryStatus;
|
|
683
1243
|
retryCount: number;
|
|
684
|
-
nextRetryAt
|
|
685
|
-
sentAt
|
|
686
|
-
errorMessage
|
|
1244
|
+
nextRetryAt: string | null;
|
|
1245
|
+
sentAt: string | null;
|
|
1246
|
+
errorMessage: string | null;
|
|
687
1247
|
expiresAt: string;
|
|
688
1248
|
createdAt: string;
|
|
689
1249
|
updatedAt: string;
|
|
690
1250
|
}>;
|
|
691
1251
|
};
|
|
692
1252
|
};
|
|
693
|
-
export type GetDeliveryStatsQueryVariables =
|
|
694
|
-
channelId:
|
|
695
|
-
startDate?:
|
|
696
|
-
endDate?:
|
|
1253
|
+
export type GetDeliveryStatsQueryVariables = Exact<{
|
|
1254
|
+
channelId: string | number;
|
|
1255
|
+
startDate?: string | null | undefined;
|
|
1256
|
+
endDate?: string | null | undefined;
|
|
697
1257
|
}>;
|
|
698
1258
|
export type GetDeliveryStatsQuery = {
|
|
699
|
-
__typename?: 'Query';
|
|
700
1259
|
getDeliveryStats: {
|
|
701
|
-
__typename?: 'DeliveryStats';
|
|
702
1260
|
channelId: string;
|
|
703
1261
|
totalAttempts: number;
|
|
704
1262
|
successfulDeliveries: number;
|
|
@@ -710,51 +1268,48 @@ export type GetDeliveryStatsQuery = {
|
|
|
710
1268
|
endDate: string;
|
|
711
1269
|
};
|
|
712
1270
|
};
|
|
713
|
-
export type GetUserPlatformConnectionsQueryVariables =
|
|
714
|
-
channelId:
|
|
715
|
-
filter?: Types.
|
|
716
|
-
pagination?: Types.
|
|
717
|
-
cursor?:
|
|
1271
|
+
export type GetUserPlatformConnectionsQueryVariables = Exact<{
|
|
1272
|
+
channelId: string | number;
|
|
1273
|
+
filter?: Types.UserPlatformConnectionFilterInput | null | undefined;
|
|
1274
|
+
pagination?: Types.ChannelPaginationInput | null | undefined;
|
|
1275
|
+
cursor?: string | null | undefined;
|
|
718
1276
|
}>;
|
|
719
1277
|
export type GetUserPlatformConnectionsQuery = {
|
|
720
|
-
__typename?: 'Query';
|
|
721
1278
|
listUserPlatformConnectionsByChannel: {
|
|
722
|
-
|
|
723
|
-
nextCursor?: string | null;
|
|
1279
|
+
nextCursor: string | null;
|
|
724
1280
|
hasMore: boolean;
|
|
725
1281
|
total: number;
|
|
726
1282
|
items: Array<{
|
|
727
|
-
__typename?: 'UserPlatformConnection';
|
|
728
1283
|
id: string;
|
|
729
1284
|
channelId: string;
|
|
730
1285
|
platform: Types.ChannelPlatform;
|
|
731
1286
|
externalUserId: string;
|
|
732
|
-
externalUsername
|
|
733
|
-
externalDisplayName
|
|
734
|
-
externalEmail
|
|
735
|
-
externalAvatarUrl
|
|
736
|
-
externalMetadata
|
|
737
|
-
internalUserId
|
|
1287
|
+
externalUsername: string | null;
|
|
1288
|
+
externalDisplayName: string | null;
|
|
1289
|
+
externalEmail: string | null;
|
|
1290
|
+
externalAvatarUrl: string | null;
|
|
1291
|
+
externalMetadata: Record<string, unknown> | null;
|
|
1292
|
+
internalUserId: string | null;
|
|
738
1293
|
organizationId: string;
|
|
739
1294
|
source: Types.UserPlatformSource;
|
|
740
|
-
connectedAt
|
|
1295
|
+
connectedAt: string | null;
|
|
741
1296
|
dmAllowed: boolean;
|
|
742
|
-
dmConversationId
|
|
1297
|
+
dmConversationId: string | null;
|
|
743
1298
|
notificationsEnabled: boolean;
|
|
744
|
-
userTokenExpiresAt
|
|
745
|
-
userTokenScope
|
|
746
|
-
pairingCode
|
|
747
|
-
pairingCodeExpiresAt
|
|
748
|
-
pairingStatus
|
|
749
|
-
pairingApprovedAt
|
|
1299
|
+
userTokenExpiresAt: string | null;
|
|
1300
|
+
userTokenScope: string | null;
|
|
1301
|
+
pairingCode: string | null;
|
|
1302
|
+
pairingCodeExpiresAt: string | null;
|
|
1303
|
+
pairingStatus: Types.PairingStatus | null;
|
|
1304
|
+
pairingApprovedAt: string | null;
|
|
750
1305
|
presenceStatus: Types.UserPresenceStatus;
|
|
751
|
-
customStatus
|
|
752
|
-
lastActiveAt
|
|
1306
|
+
customStatus: string | null;
|
|
1307
|
+
lastActiveAt: string | null;
|
|
753
1308
|
isActive: boolean;
|
|
754
1309
|
roles: Array<string>;
|
|
755
1310
|
permissions: Array<string>;
|
|
756
1311
|
lastSyncedAt: string;
|
|
757
|
-
deletedAt
|
|
1312
|
+
deletedAt: string | null;
|
|
758
1313
|
createdAt: string;
|
|
759
1314
|
updatedAt: string;
|
|
760
1315
|
isTokenExpired: boolean;
|
|
@@ -762,63 +1317,57 @@ export type GetUserPlatformConnectionsQuery = {
|
|
|
762
1317
|
}>;
|
|
763
1318
|
};
|
|
764
1319
|
};
|
|
765
|
-
export type GetWebhookEventsQueryVariables =
|
|
766
|
-
channelId:
|
|
767
|
-
limit?:
|
|
768
|
-
cursor?:
|
|
1320
|
+
export type GetWebhookEventsQueryVariables = Exact<{
|
|
1321
|
+
channelId: string | number;
|
|
1322
|
+
limit?: number | null | undefined;
|
|
1323
|
+
cursor?: string | null | undefined;
|
|
769
1324
|
}>;
|
|
770
1325
|
export type GetWebhookEventsQuery = {
|
|
771
|
-
__typename?: 'Query';
|
|
772
1326
|
getChannelWebhookEvents: {
|
|
773
|
-
|
|
774
|
-
nextCursor?: string | null;
|
|
1327
|
+
nextCursor: string | null;
|
|
775
1328
|
hasMore: boolean;
|
|
776
1329
|
total: number;
|
|
777
1330
|
items: Array<{
|
|
778
|
-
__typename?: 'WebhookEvent';
|
|
779
1331
|
id: string;
|
|
780
1332
|
channelId: string;
|
|
781
1333
|
eventType: string;
|
|
782
1334
|
status: Types.WebhookProcessingStatus;
|
|
783
1335
|
payload: Record<string, unknown>;
|
|
784
|
-
signature
|
|
1336
|
+
signature: string | null;
|
|
785
1337
|
isDuplicate: boolean;
|
|
786
|
-
originalEventId
|
|
787
|
-
errorMessage
|
|
788
|
-
processingResult
|
|
789
|
-
processedAt
|
|
1338
|
+
originalEventId: string | null;
|
|
1339
|
+
errorMessage: string | null;
|
|
1340
|
+
processingResult: Record<string, unknown> | null;
|
|
1341
|
+
processedAt: string | null;
|
|
790
1342
|
expiresAt: string;
|
|
791
1343
|
createdAt: string;
|
|
792
1344
|
updatedAt: string;
|
|
793
|
-
context
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
custom?: Record<string, unknown> | null;
|
|
1345
|
+
context: {
|
|
1346
|
+
tenantId: string | null;
|
|
1347
|
+
userId: string | null;
|
|
1348
|
+
appId: string | null;
|
|
1349
|
+
workspaceId: string | null;
|
|
1350
|
+
projectId: string | null;
|
|
1351
|
+
organizationId: string | null;
|
|
1352
|
+
custom: Record<string, unknown> | null;
|
|
802
1353
|
} | null;
|
|
803
1354
|
}>;
|
|
804
1355
|
};
|
|
805
1356
|
};
|
|
806
|
-
export type SendNotificationMutationVariables =
|
|
1357
|
+
export type SendNotificationMutationVariables = Exact<{
|
|
807
1358
|
input: Types.TriggerNotificationInput;
|
|
808
1359
|
}>;
|
|
809
1360
|
export type SendNotificationMutation = {
|
|
810
|
-
__typename?: 'Mutation';
|
|
811
1361
|
triggerNotification: {
|
|
812
|
-
__typename?: 'Notification';
|
|
813
1362
|
id: string;
|
|
814
1363
|
status: Types.NotificationStatus;
|
|
815
|
-
deliveryStatus
|
|
1364
|
+
deliveryStatus: Types.NotificationDeliveryStatus | null;
|
|
816
1365
|
triggerStatus: Types.TriggerStatus;
|
|
817
|
-
sentAt
|
|
1366
|
+
sentAt: string | null;
|
|
818
1367
|
title: string;
|
|
819
1368
|
message: string;
|
|
820
|
-
errorMessage
|
|
821
|
-
errorCode
|
|
1369
|
+
errorMessage: string | null;
|
|
1370
|
+
errorCode: string | null;
|
|
822
1371
|
};
|
|
823
1372
|
};
|
|
824
1373
|
export declare const ChannelFieldsFragmentDoc: Apollo.DocumentNode;
|
|
@@ -1270,8 +1819,8 @@ export declare function useGetChannelQuery(baseOptions: ApolloReactHooks.QueryHo
|
|
|
1270
1819
|
skip?: boolean;
|
|
1271
1820
|
} | {
|
|
1272
1821
|
skip: boolean;
|
|
1273
|
-
})): ApolloReactHooks.useQuery.Result<Types.GetChannelQuery, Types.GetChannelQueryVariables, "empty" | "complete" | "streaming", Types.GetChannelQueryVariables>;
|
|
1274
|
-
export declare function useGetChannelLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetChannelQuery, Types.GetChannelQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetChannelQuery, Types.GetChannelQueryVariables, "empty" | "complete" | "streaming">;
|
|
1822
|
+
})): ApolloReactHooks.useQuery.Result<Types.GetChannelQuery, Types.GetChannelQueryVariables, "empty" | "complete" | "streaming", Types.GetChannelQueryVariables, undefined>;
|
|
1823
|
+
export declare function useGetChannelLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetChannelQuery, Types.GetChannelQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetChannelQuery, Types.GetChannelQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1275
1824
|
export declare function useGetChannelSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetChannelQuery, Types.GetChannelQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetChannelQuery, Types.GetChannelQueryVariables>;
|
|
1276
1825
|
export declare function useGetChannelSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetChannelQuery, Types.GetChannelQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetChannelQuery | undefined, Types.GetChannelQueryVariables>;
|
|
1277
1826
|
export type GetChannelQueryHookResult = ReturnType<typeof useGetChannelQuery>;
|
|
@@ -1300,8 +1849,8 @@ export declare function useGetChannelExportJobQuery(baseOptions: ApolloReactHook
|
|
|
1300
1849
|
skip?: boolean;
|
|
1301
1850
|
} | {
|
|
1302
1851
|
skip: boolean;
|
|
1303
|
-
})): ApolloReactHooks.useQuery.Result<Types.GetChannelExportJobQuery, Types.GetChannelExportJobQueryVariables, "empty" | "complete" | "streaming", Types.GetChannelExportJobQueryVariables>;
|
|
1304
|
-
export declare function useGetChannelExportJobLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetChannelExportJobQuery, Types.GetChannelExportJobQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetChannelExportJobQuery, Types.GetChannelExportJobQueryVariables, "empty" | "complete" | "streaming">;
|
|
1852
|
+
})): ApolloReactHooks.useQuery.Result<Types.GetChannelExportJobQuery, Types.GetChannelExportJobQueryVariables, "empty" | "complete" | "streaming", Types.GetChannelExportJobQueryVariables, undefined>;
|
|
1853
|
+
export declare function useGetChannelExportJobLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetChannelExportJobQuery, Types.GetChannelExportJobQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetChannelExportJobQuery, Types.GetChannelExportJobQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1305
1854
|
export declare function useGetChannelExportJobSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetChannelExportJobQuery, Types.GetChannelExportJobQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetChannelExportJobQuery, Types.GetChannelExportJobQueryVariables>;
|
|
1306
1855
|
export declare function useGetChannelExportJobSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetChannelExportJobQuery, Types.GetChannelExportJobQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetChannelExportJobQuery | undefined, Types.GetChannelExportJobQueryVariables>;
|
|
1307
1856
|
export type GetChannelExportJobQueryHookResult = ReturnType<typeof useGetChannelExportJobQuery>;
|
|
@@ -1330,8 +1879,8 @@ export declare function useGetChannelOrgSettingsQuery(baseOptions: ApolloReactHo
|
|
|
1330
1879
|
skip?: boolean;
|
|
1331
1880
|
} | {
|
|
1332
1881
|
skip: boolean;
|
|
1333
|
-
})): ApolloReactHooks.useQuery.Result<Types.GetChannelOrgSettingsQuery, Types.GetChannelOrgSettingsQueryVariables, "empty" | "complete" | "streaming", Types.GetChannelOrgSettingsQueryVariables>;
|
|
1334
|
-
export declare function useGetChannelOrgSettingsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetChannelOrgSettingsQuery, Types.GetChannelOrgSettingsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetChannelOrgSettingsQuery, Types.GetChannelOrgSettingsQueryVariables, "empty" | "complete" | "streaming">;
|
|
1882
|
+
})): ApolloReactHooks.useQuery.Result<Types.GetChannelOrgSettingsQuery, Types.GetChannelOrgSettingsQueryVariables, "empty" | "complete" | "streaming", Types.GetChannelOrgSettingsQueryVariables, undefined>;
|
|
1883
|
+
export declare function useGetChannelOrgSettingsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetChannelOrgSettingsQuery, Types.GetChannelOrgSettingsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetChannelOrgSettingsQuery, Types.GetChannelOrgSettingsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1335
1884
|
export declare function useGetChannelOrgSettingsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetChannelOrgSettingsQuery, Types.GetChannelOrgSettingsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetChannelOrgSettingsQuery, Types.GetChannelOrgSettingsQueryVariables>;
|
|
1336
1885
|
export declare function useGetChannelOrgSettingsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetChannelOrgSettingsQuery, Types.GetChannelOrgSettingsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetChannelOrgSettingsQuery | undefined, Types.GetChannelOrgSettingsQueryVariables>;
|
|
1337
1886
|
export type GetChannelOrgSettingsQueryHookResult = ReturnType<typeof useGetChannelOrgSettingsQuery>;
|
|
@@ -1356,8 +1905,8 @@ export declare const GetChannelsDocument: Apollo.DocumentNode;
|
|
|
1356
1905
|
* },
|
|
1357
1906
|
* });
|
|
1358
1907
|
*/
|
|
1359
|
-
export declare function useGetChannelsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetChannelsQuery, Types.GetChannelsQueryVariables>): ApolloReactHooks.useQuery.Result<Types.GetChannelsQuery, Types.GetChannelsQueryVariables, "empty" | "complete" | "streaming", Types.GetChannelsQueryVariables>;
|
|
1360
|
-
export declare function useGetChannelsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetChannelsQuery, Types.GetChannelsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetChannelsQuery, Types.GetChannelsQueryVariables, "empty" | "complete" | "streaming">;
|
|
1908
|
+
export declare function useGetChannelsQuery(baseOptions?: ApolloReactHooks.QueryHookOptions<Types.GetChannelsQuery, Types.GetChannelsQueryVariables>): ApolloReactHooks.useQuery.Result<Types.GetChannelsQuery, Types.GetChannelsQueryVariables, "empty" | "complete" | "streaming", Types.GetChannelsQueryVariables, undefined>;
|
|
1909
|
+
export declare function useGetChannelsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetChannelsQuery, Types.GetChannelsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetChannelsQuery, Types.GetChannelsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1361
1910
|
export declare function useGetChannelsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetChannelsQuery, Types.GetChannelsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetChannelsQuery, Types.GetChannelsQueryVariables>;
|
|
1362
1911
|
export declare function useGetChannelsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetChannelsQuery, Types.GetChannelsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetChannelsQuery | undefined, Types.GetChannelsQueryVariables>;
|
|
1363
1912
|
export type GetChannelsQueryHookResult = ReturnType<typeof useGetChannelsQuery>;
|
|
@@ -1386,8 +1935,8 @@ export declare function useGetConnectionQuery(baseOptions: ApolloReactHooks.Quer
|
|
|
1386
1935
|
skip?: boolean;
|
|
1387
1936
|
} | {
|
|
1388
1937
|
skip: boolean;
|
|
1389
|
-
})): ApolloReactHooks.useQuery.Result<Types.GetConnectionQuery, Types.GetConnectionQueryVariables, "empty" | "complete" | "streaming", Types.GetConnectionQueryVariables>;
|
|
1390
|
-
export declare function useGetConnectionLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetConnectionQuery, Types.GetConnectionQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetConnectionQuery, Types.GetConnectionQueryVariables, "empty" | "complete" | "streaming">;
|
|
1938
|
+
})): ApolloReactHooks.useQuery.Result<Types.GetConnectionQuery, Types.GetConnectionQueryVariables, "empty" | "complete" | "streaming", Types.GetConnectionQueryVariables, undefined>;
|
|
1939
|
+
export declare function useGetConnectionLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetConnectionQuery, Types.GetConnectionQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetConnectionQuery, Types.GetConnectionQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1391
1940
|
export declare function useGetConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetConnectionQuery, Types.GetConnectionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetConnectionQuery, Types.GetConnectionQueryVariables>;
|
|
1392
1941
|
export declare function useGetConnectionSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetConnectionQuery, Types.GetConnectionQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetConnectionQuery | undefined, Types.GetConnectionQueryVariables>;
|
|
1393
1942
|
export type GetConnectionQueryHookResult = ReturnType<typeof useGetConnectionQuery>;
|
|
@@ -1418,8 +1967,8 @@ export declare function useGetDeliveryAttemptsQuery(baseOptions: ApolloReactHook
|
|
|
1418
1967
|
skip?: boolean;
|
|
1419
1968
|
} | {
|
|
1420
1969
|
skip: boolean;
|
|
1421
|
-
})): ApolloReactHooks.useQuery.Result<Types.GetDeliveryAttemptsQuery, Types.GetDeliveryAttemptsQueryVariables, "empty" | "complete" | "streaming", Types.GetDeliveryAttemptsQueryVariables>;
|
|
1422
|
-
export declare function useGetDeliveryAttemptsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetDeliveryAttemptsQuery, Types.GetDeliveryAttemptsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetDeliveryAttemptsQuery, Types.GetDeliveryAttemptsQueryVariables, "empty" | "complete" | "streaming">;
|
|
1970
|
+
})): ApolloReactHooks.useQuery.Result<Types.GetDeliveryAttemptsQuery, Types.GetDeliveryAttemptsQueryVariables, "empty" | "complete" | "streaming", Types.GetDeliveryAttemptsQueryVariables, undefined>;
|
|
1971
|
+
export declare function useGetDeliveryAttemptsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetDeliveryAttemptsQuery, Types.GetDeliveryAttemptsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetDeliveryAttemptsQuery, Types.GetDeliveryAttemptsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1423
1972
|
export declare function useGetDeliveryAttemptsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetDeliveryAttemptsQuery, Types.GetDeliveryAttemptsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetDeliveryAttemptsQuery, Types.GetDeliveryAttemptsQueryVariables>;
|
|
1424
1973
|
export declare function useGetDeliveryAttemptsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetDeliveryAttemptsQuery, Types.GetDeliveryAttemptsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetDeliveryAttemptsQuery | undefined, Types.GetDeliveryAttemptsQueryVariables>;
|
|
1425
1974
|
export type GetDeliveryAttemptsQueryHookResult = ReturnType<typeof useGetDeliveryAttemptsQuery>;
|
|
@@ -1450,8 +1999,8 @@ export declare function useGetDeliveryStatsQuery(baseOptions: ApolloReactHooks.Q
|
|
|
1450
1999
|
skip?: boolean;
|
|
1451
2000
|
} | {
|
|
1452
2001
|
skip: boolean;
|
|
1453
|
-
})): ApolloReactHooks.useQuery.Result<Types.GetDeliveryStatsQuery, Types.GetDeliveryStatsQueryVariables, "empty" | "complete" | "streaming", Types.GetDeliveryStatsQueryVariables>;
|
|
1454
|
-
export declare function useGetDeliveryStatsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetDeliveryStatsQuery, Types.GetDeliveryStatsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetDeliveryStatsQuery, Types.GetDeliveryStatsQueryVariables, "empty" | "complete" | "streaming">;
|
|
2002
|
+
})): ApolloReactHooks.useQuery.Result<Types.GetDeliveryStatsQuery, Types.GetDeliveryStatsQueryVariables, "empty" | "complete" | "streaming", Types.GetDeliveryStatsQueryVariables, undefined>;
|
|
2003
|
+
export declare function useGetDeliveryStatsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetDeliveryStatsQuery, Types.GetDeliveryStatsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetDeliveryStatsQuery, Types.GetDeliveryStatsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1455
2004
|
export declare function useGetDeliveryStatsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetDeliveryStatsQuery, Types.GetDeliveryStatsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetDeliveryStatsQuery, Types.GetDeliveryStatsQueryVariables>;
|
|
1456
2005
|
export declare function useGetDeliveryStatsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetDeliveryStatsQuery, Types.GetDeliveryStatsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetDeliveryStatsQuery | undefined, Types.GetDeliveryStatsQueryVariables>;
|
|
1457
2006
|
export type GetDeliveryStatsQueryHookResult = ReturnType<typeof useGetDeliveryStatsQuery>;
|
|
@@ -1483,8 +2032,8 @@ export declare function useGetUserPlatformConnectionsQuery(baseOptions: ApolloRe
|
|
|
1483
2032
|
skip?: boolean;
|
|
1484
2033
|
} | {
|
|
1485
2034
|
skip: boolean;
|
|
1486
|
-
})): ApolloReactHooks.useQuery.Result<Types.GetUserPlatformConnectionsQuery, Types.GetUserPlatformConnectionsQueryVariables, "empty" | "complete" | "streaming", Types.GetUserPlatformConnectionsQueryVariables>;
|
|
1487
|
-
export declare function useGetUserPlatformConnectionsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetUserPlatformConnectionsQuery, Types.GetUserPlatformConnectionsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetUserPlatformConnectionsQuery, Types.GetUserPlatformConnectionsQueryVariables, "empty" | "complete" | "streaming">;
|
|
2035
|
+
})): ApolloReactHooks.useQuery.Result<Types.GetUserPlatformConnectionsQuery, Types.GetUserPlatformConnectionsQueryVariables, "empty" | "complete" | "streaming", Types.GetUserPlatformConnectionsQueryVariables, undefined>;
|
|
2036
|
+
export declare function useGetUserPlatformConnectionsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetUserPlatformConnectionsQuery, Types.GetUserPlatformConnectionsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetUserPlatformConnectionsQuery, Types.GetUserPlatformConnectionsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1488
2037
|
export declare function useGetUserPlatformConnectionsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetUserPlatformConnectionsQuery, Types.GetUserPlatformConnectionsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetUserPlatformConnectionsQuery, Types.GetUserPlatformConnectionsQueryVariables>;
|
|
1489
2038
|
export declare function useGetUserPlatformConnectionsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetUserPlatformConnectionsQuery, Types.GetUserPlatformConnectionsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetUserPlatformConnectionsQuery | undefined, Types.GetUserPlatformConnectionsQueryVariables>;
|
|
1490
2039
|
export type GetUserPlatformConnectionsQueryHookResult = ReturnType<typeof useGetUserPlatformConnectionsQuery>;
|
|
@@ -1515,8 +2064,8 @@ export declare function useGetWebhookEventsQuery(baseOptions: ApolloReactHooks.Q
|
|
|
1515
2064
|
skip?: boolean;
|
|
1516
2065
|
} | {
|
|
1517
2066
|
skip: boolean;
|
|
1518
|
-
})): ApolloReactHooks.useQuery.Result<Types.GetWebhookEventsQuery, Types.GetWebhookEventsQueryVariables, "empty" | "complete" | "streaming", Types.GetWebhookEventsQueryVariables>;
|
|
1519
|
-
export declare function useGetWebhookEventsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetWebhookEventsQuery, Types.GetWebhookEventsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetWebhookEventsQuery, Types.GetWebhookEventsQueryVariables, "empty" | "complete" | "streaming">;
|
|
2067
|
+
})): ApolloReactHooks.useQuery.Result<Types.GetWebhookEventsQuery, Types.GetWebhookEventsQueryVariables, "empty" | "complete" | "streaming", Types.GetWebhookEventsQueryVariables, undefined>;
|
|
2068
|
+
export declare function useGetWebhookEventsLazyQuery(baseOptions?: ApolloReactHooks.LazyQueryHookOptions<Types.GetWebhookEventsQuery, Types.GetWebhookEventsQueryVariables>): ApolloReactHooks.useLazyQuery.ResultTuple<Types.GetWebhookEventsQuery, Types.GetWebhookEventsQueryVariables, "empty" | "complete" | "streaming", undefined>;
|
|
1520
2069
|
export declare function useGetWebhookEventsSuspenseQuery(baseOptions?: ApolloReactHooks.SuspenseQueryHookOptions<Types.GetWebhookEventsQuery, Types.GetWebhookEventsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetWebhookEventsQuery, Types.GetWebhookEventsQueryVariables>;
|
|
1521
2070
|
export declare function useGetWebhookEventsSuspenseQuery(baseOptions?: ApolloReactHooks.SkipToken | ApolloReactHooks.SuspenseQueryHookOptions<Types.GetWebhookEventsQuery, Types.GetWebhookEventsQueryVariables>): ApolloReactHooks.UseSuspenseQueryResult<Types.GetWebhookEventsQuery | undefined, Types.GetWebhookEventsQueryVariables>;
|
|
1522
2071
|
export type GetWebhookEventsQueryHookResult = ReturnType<typeof useGetWebhookEventsQuery>;
|
|
@@ -1546,4 +2095,4 @@ export declare function useSendNotificationMutation(baseOptions?: ApolloReactHoo
|
|
|
1546
2095
|
export type SendNotificationMutationHookResult = ReturnType<typeof useSendNotificationMutation>;
|
|
1547
2096
|
export type SendNotificationMutationResult = Apollo.MutationResult<Types.SendNotificationMutation>;
|
|
1548
2097
|
export type SendNotificationMutationOptions = Apollo.BaseMutationOptions<Types.SendNotificationMutation, Types.SendNotificationMutationVariables>;
|
|
1549
|
-
|
|
2098
|
+
export {};
|