@cstar.help/js 0.15.1 → 0.16.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/index.cjs +478 -7
- package/dist/index.d.cts +129 -6
- package/dist/index.d.ts +129 -6
- package/dist/index.js +475 -6
- package/dist/webhook/index.d.cts +21 -1
- package/dist/webhook/index.d.ts +21 -1
- package/dist/webhook/node.d.cts +21 -1
- package/dist/webhook/node.d.ts +21 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -189,6 +189,15 @@ declare class CStarRealtime {
|
|
|
189
189
|
private errorHandlers;
|
|
190
190
|
private connectionHandlers;
|
|
191
191
|
private lastEventId;
|
|
192
|
+
/**
|
|
193
|
+
* Timestamp of the most recently received event, kept as an ISO-8601 string.
|
|
194
|
+
* Sent as `?since=<iso>` on reconnect so the server can replay events missed
|
|
195
|
+
* during the gap. The `id:` field on each SSE message is a prefixed entity
|
|
196
|
+
* ID (`evt_*`), which `new Date(...)` can't parse — passing it as `since`
|
|
197
|
+
* silently skips the replay branch on the server. Track the timestamp
|
|
198
|
+
* separately so reconnects actually catch up. R62.
|
|
199
|
+
*/
|
|
200
|
+
private lastEventTimestamp;
|
|
192
201
|
private retryCount;
|
|
193
202
|
private retryTimer;
|
|
194
203
|
private _connected;
|
|
@@ -582,7 +591,17 @@ declare class ArticlesResource extends BaseResource<Article, ArticleListParams,
|
|
|
582
591
|
}
|
|
583
592
|
|
|
584
593
|
/** Every webhook event type cStar can dispatch. */
|
|
585
|
-
type WebhookEventType = 'article.created' | 'article.deleted' | 'article.published' | 'article.updated' | 'boss.damaged' | 'boss.defeated' | 'boss.spawned' | 'community_post.commented' | 'community_post.created' | 'community_post.deleted' | 'community_post.status_changed' | 'community_post.updated' | 'community_post.voted' | 'customer.created' | 'customer.deleted' | 'customer.updated' | 'customer_group.created' | 'customer_group.deleted' | 'customer_group.updated' | 'player.achievement_unlocked' | 'player.level_up' | 'player.quest_completed' | 'player.streak_milestone' | 'player.xp_gained' | 'social.high_five_sent' | 'social.one_up_sent' | 'survey.submitted' | 'ticket.assigned' | 'ticket.closed' | 'ticket.created' | 'ticket.deleted' | 'ticket.message_added' | 'ticket.updated';
|
|
594
|
+
type WebhookEventType = 'agent.preferences_updated' | 'article.created' | 'article.deleted' | 'article.published' | 'article.updated' | 'boss.damaged' | 'boss.defeated' | 'boss.spawned' | 'community_post.commented' | 'community_post.created' | 'community_post.deleted' | 'community_post.status_changed' | 'community_post.updated' | 'community_post.voted' | 'customer.created' | 'customer.deleted' | 'customer.updated' | 'customer_group.created' | 'customer_group.deleted' | 'customer_group.updated' | 'player.achievement_unlocked' | 'player.level_up' | 'player.quest_completed' | 'player.streak_milestone' | 'player.xp_gained' | 'social.high_five_sent' | 'social.one_up_sent' | 'survey.submitted' | 'team.preferences_updated' | 'ticket.assigned' | 'ticket.closed' | 'ticket.created' | 'ticket.deleted' | 'ticket.message_added' | 'ticket.updated';
|
|
595
|
+
/** Payload for `agent.preferences_updated` events. */
|
|
596
|
+
interface AgentPreferencesUpdatedPayload {
|
|
597
|
+
team_id: string;
|
|
598
|
+
member_id: string;
|
|
599
|
+
agent_id: string;
|
|
600
|
+
changed: Array<string>;
|
|
601
|
+
preferences: {
|
|
602
|
+
boringMode: boolean;
|
|
603
|
+
};
|
|
604
|
+
}
|
|
586
605
|
/** Payload for `article.created` events. */
|
|
587
606
|
interface ArticleCreatedPayload {
|
|
588
607
|
article: {
|
|
@@ -857,6 +876,14 @@ interface SurveySubmittedPayload {
|
|
|
857
876
|
email: string;
|
|
858
877
|
};
|
|
859
878
|
}
|
|
879
|
+
/** Payload for `team.preferences_updated` events. */
|
|
880
|
+
interface TeamPreferencesUpdatedPayload {
|
|
881
|
+
team_id: string;
|
|
882
|
+
changed: Array<string>;
|
|
883
|
+
preferences: {
|
|
884
|
+
bossBattlesEnabled: boolean;
|
|
885
|
+
};
|
|
886
|
+
}
|
|
860
887
|
/** Payload for `ticket.assigned` events. */
|
|
861
888
|
interface TicketAssignedPayload {
|
|
862
889
|
ticket: {
|
|
@@ -947,6 +974,7 @@ interface TicketUpdatedPayload {
|
|
|
947
974
|
}
|
|
948
975
|
/** Maps each event type to its payload interface — used internally for the discriminated union. */
|
|
949
976
|
interface WebhookEventDataMap {
|
|
977
|
+
'agent.preferences_updated': AgentPreferencesUpdatedPayload;
|
|
950
978
|
'article.created': ArticleCreatedPayload;
|
|
951
979
|
'article.deleted': ArticleDeletedPayload;
|
|
952
980
|
'article.published': ArticlePublishedPayload;
|
|
@@ -974,6 +1002,7 @@ interface WebhookEventDataMap {
|
|
|
974
1002
|
'social.high_five_sent': SocialHighFiveSentPayload;
|
|
975
1003
|
'social.one_up_sent': SocialOneUpSentPayload;
|
|
976
1004
|
'survey.submitted': SurveySubmittedPayload;
|
|
1005
|
+
'team.preferences_updated': TeamPreferencesUpdatedPayload;
|
|
977
1006
|
'ticket.assigned': TicketAssignedPayload;
|
|
978
1007
|
'ticket.closed': TicketClosedPayload;
|
|
979
1008
|
'ticket.created': TicketCreatedPayload;
|
|
@@ -994,6 +1023,20 @@ interface WebhookEvent<T extends WebhookEventType = WebhookEventType> {
|
|
|
994
1023
|
/** Event-specific payload. */
|
|
995
1024
|
data: WebhookEventDataMap[T];
|
|
996
1025
|
}
|
|
1026
|
+
/**
|
|
1027
|
+
* Stable representative payloads for each event type. Useful for testing
|
|
1028
|
+
* your endpoint against realistic shapes without having to trigger a real
|
|
1029
|
+
* event. Mirrors the dashboard's event catalog.
|
|
1030
|
+
*/
|
|
1031
|
+
declare const WEBHOOK_EVENT_SAMPLES: {
|
|
1032
|
+
[K in WebhookEventType]: WebhookEventDataMap[K];
|
|
1033
|
+
};
|
|
1034
|
+
/** Static metadata about every event — labels, descriptions, categories. */
|
|
1035
|
+
declare const WEBHOOK_EVENT_CATALOG: Record<WebhookEventType, {
|
|
1036
|
+
label: string;
|
|
1037
|
+
description: string;
|
|
1038
|
+
category: string;
|
|
1039
|
+
}>;
|
|
997
1040
|
|
|
998
1041
|
type WebhookEventData<T extends WebhookEventType> = WebhookEventDataMap[T];
|
|
999
1042
|
|
|
@@ -1516,6 +1559,40 @@ interface InviteCreateParams {
|
|
|
1516
1559
|
role?: string;
|
|
1517
1560
|
}
|
|
1518
1561
|
|
|
1562
|
+
/**
|
|
1563
|
+
* Team and member preferences — UX toggles exposed via the bearer-token API.
|
|
1564
|
+
*
|
|
1565
|
+
* Backed by:
|
|
1566
|
+
* - `/api/v1/teams/{teamId}/preferences` (TeamPreferences)
|
|
1567
|
+
* - `/api/v1/teams/{teamId}/members/{memberId}/preferences` (MemberPreferences)
|
|
1568
|
+
*
|
|
1569
|
+
* Kept narrow on purpose: only the toggles a headless dashboard needs to
|
|
1570
|
+
* flip from a server. Add new fields here when the matching column lands
|
|
1571
|
+
* on the handler's ALLOWED map.
|
|
1572
|
+
*/
|
|
1573
|
+
/** Team-wide UX preferences. */
|
|
1574
|
+
interface TeamPreferences {
|
|
1575
|
+
/** When false, hides the team boss feature for every agent. */
|
|
1576
|
+
bossBattlesEnabled: boolean | null;
|
|
1577
|
+
}
|
|
1578
|
+
/** Patch shape for team preferences. */
|
|
1579
|
+
interface TeamPreferencesUpdateParams {
|
|
1580
|
+
bossBattlesEnabled?: boolean;
|
|
1581
|
+
}
|
|
1582
|
+
/** Per-agent UX preferences. */
|
|
1583
|
+
interface MemberPreferences {
|
|
1584
|
+
/**
|
|
1585
|
+
* When true, hides every gamification element for this agent. XP keeps
|
|
1586
|
+
* accumulating in the background — flipping back to false restores the
|
|
1587
|
+
* full game UI without losing progress.
|
|
1588
|
+
*/
|
|
1589
|
+
boringMode: boolean | null;
|
|
1590
|
+
}
|
|
1591
|
+
/** Patch shape for member preferences. */
|
|
1592
|
+
interface MemberPreferencesUpdateParams {
|
|
1593
|
+
boringMode?: boolean;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1519
1596
|
/** Manage team invites as a sub-resource. */
|
|
1520
1597
|
declare class InvitesResource {
|
|
1521
1598
|
private readonly client;
|
|
@@ -1527,11 +1604,22 @@ declare class InvitesResource {
|
|
|
1527
1604
|
/** Revoke a pending invite. */
|
|
1528
1605
|
del(inviteId: string): Promise<ApiResponse<DeleteResponse>>;
|
|
1529
1606
|
}
|
|
1607
|
+
/** Manage per-agent UX preferences as a sub-resource of members. */
|
|
1608
|
+
declare class MemberPreferencesResource {
|
|
1609
|
+
private readonly client;
|
|
1610
|
+
constructor(client: HttpClient);
|
|
1611
|
+
/** Get an agent's UX preferences (boring mode, etc.). */
|
|
1612
|
+
get(memberId: string): Promise<ApiResponse<MemberPreferences>>;
|
|
1613
|
+
/** Update an agent's UX preferences. Only provided fields are written. */
|
|
1614
|
+
update(memberId: string, params: MemberPreferencesUpdateParams): Promise<ApiResponse<MemberPreferences>>;
|
|
1615
|
+
}
|
|
1530
1616
|
/** Manage team members. */
|
|
1531
1617
|
declare class MembersResource {
|
|
1532
1618
|
private readonly client;
|
|
1533
1619
|
/** Sub-resource for team invites. */
|
|
1534
1620
|
readonly invites: InvitesResource;
|
|
1621
|
+
/** Sub-resource for per-agent UX preferences. */
|
|
1622
|
+
readonly preferences: MemberPreferencesResource;
|
|
1535
1623
|
constructor(client: HttpClient);
|
|
1536
1624
|
/** List all team members. */
|
|
1537
1625
|
list(params?: MemberListParams): Promise<ListResponse<Member>>;
|
|
@@ -2115,21 +2203,37 @@ interface ExportResult {
|
|
|
2115
2203
|
/** Import request parameters. */
|
|
2116
2204
|
interface ImportCreateParams {
|
|
2117
2205
|
resource: 'tickets' | 'customers' | 'articles';
|
|
2206
|
+
/**
|
|
2207
|
+
* Records to import. Flat objects with the per-entity fields you want
|
|
2208
|
+
* to set — e.g. `[{ name: 'Jane', email: 'jane@example.com' }]` for
|
|
2209
|
+
* `resource: 'customers'`. Each record is treated as a create. Server
|
|
2210
|
+
* also accepts the wrapped internal shape `{ data, action, existingId? }`
|
|
2211
|
+
* if you need to drive updates from the SDK.
|
|
2212
|
+
*/
|
|
2118
2213
|
records: Record<string, unknown>[];
|
|
2214
|
+
/** How to handle duplicates. Defaults to `'overwrite'`. */
|
|
2119
2215
|
mergeStrategy?: 'skip' | 'overwrite' | 'merge';
|
|
2120
2216
|
}
|
|
2121
2217
|
/** Import result. */
|
|
2122
2218
|
interface ImportResult {
|
|
2123
2219
|
object: 'import_result';
|
|
2124
|
-
|
|
2220
|
+
/** ID of the persisted import-log row (null if the log row could not be written). */
|
|
2221
|
+
logId: string | null;
|
|
2222
|
+
/** Entity type imported — `ticket`, `customer`, or `article`. */
|
|
2223
|
+
entityType: string;
|
|
2224
|
+
/** True when every record imported without error. */
|
|
2225
|
+
success: boolean;
|
|
2125
2226
|
total: number;
|
|
2126
2227
|
created: number;
|
|
2127
2228
|
updated: number;
|
|
2128
2229
|
skipped: number;
|
|
2129
|
-
|
|
2230
|
+
failed: number;
|
|
2231
|
+
errors?: Array<{
|
|
2130
2232
|
index: number;
|
|
2131
2233
|
error: string;
|
|
2132
2234
|
}>;
|
|
2235
|
+
/** IDs of the rows created by this import. */
|
|
2236
|
+
createdIds: string[];
|
|
2133
2237
|
}
|
|
2134
2238
|
/** Import log entry. */
|
|
2135
2239
|
interface ImportLog {
|
|
@@ -2466,6 +2570,8 @@ interface Achievement {
|
|
|
2466
2570
|
}
|
|
2467
2571
|
/** Parameters for listing achievements. */
|
|
2468
2572
|
interface AchievementListParams extends PaginationParams {
|
|
2573
|
+
/** Whose achievement progress to load. Required — the endpoint 400s without it. */
|
|
2574
|
+
userId: string;
|
|
2469
2575
|
category?: string;
|
|
2470
2576
|
}
|
|
2471
2577
|
/** A daily quest. */
|
|
@@ -2662,8 +2768,8 @@ declare class BossResource {
|
|
|
2662
2768
|
declare class AchievementsResource {
|
|
2663
2769
|
private readonly client;
|
|
2664
2770
|
constructor(client: HttpClient);
|
|
2665
|
-
/** List all achievements with progress. */
|
|
2666
|
-
list(params
|
|
2771
|
+
/** List all achievements with progress. `params.userId` is required. */
|
|
2772
|
+
list(params: AchievementListParams): Promise<ApiResponse<{
|
|
2667
2773
|
object: 'achievement_list';
|
|
2668
2774
|
data: Achievement[];
|
|
2669
2775
|
summary: {
|
|
@@ -2996,6 +3102,21 @@ declare class BillingResource {
|
|
|
2996
3102
|
portal(params?: BillingPortalParams): Promise<ApiResponse<BillingPortal>>;
|
|
2997
3103
|
}
|
|
2998
3104
|
|
|
3105
|
+
/**
|
|
3106
|
+
* Team-wide preferences. Wraps `/api/v1/teams/{teamId}/preferences`.
|
|
3107
|
+
*
|
|
3108
|
+
* Currently exposes the team-level boss-battles toggle. Read requires
|
|
3109
|
+
* `manage_settings`; write requires the same plus a secret key.
|
|
3110
|
+
*/
|
|
3111
|
+
declare class PreferencesResource {
|
|
3112
|
+
private readonly client;
|
|
3113
|
+
constructor(client: HttpClient);
|
|
3114
|
+
/** Get team preferences. */
|
|
3115
|
+
get(): Promise<ApiResponse<TeamPreferences>>;
|
|
3116
|
+
/** Update team preferences. Only provided fields are written. */
|
|
3117
|
+
update(params: TeamPreferencesUpdateParams): Promise<ApiResponse<TeamPreferences>>;
|
|
3118
|
+
}
|
|
3119
|
+
|
|
2999
3120
|
interface QueueItem {
|
|
3000
3121
|
/** Unique queue item ID. */
|
|
3001
3122
|
id: string;
|
|
@@ -3476,6 +3597,8 @@ declare class CStarClient {
|
|
|
3476
3597
|
readonly members: MembersResource;
|
|
3477
3598
|
/** Manage team settings, statuses, quick replies, business hours, and widget. */
|
|
3478
3599
|
readonly settings: SettingsResource;
|
|
3600
|
+
/** Team-wide UX preferences (boss-battles toggle, etc.). */
|
|
3601
|
+
readonly preferences: PreferencesResource;
|
|
3479
3602
|
/** Manage notifications. */
|
|
3480
3603
|
readonly notifications: NotificationsResource;
|
|
3481
3604
|
/** Manage @mentions. */
|
|
@@ -3565,4 +3688,4 @@ declare class CStarClient {
|
|
|
3565
3688
|
get lastMeta(): LastMeta;
|
|
3566
3689
|
}
|
|
3567
3690
|
|
|
3568
|
-
export { type Achievement, type AchievementListParams, type ActivityEvent, type ActivityListParams, type AiAction, type AiActionParams, type AiActionResult, type AnalyticsOverview, type AnalyticsParams, type ApiErrorBody, type ApiResponse, type Article, type ArticleCreateParams, type ArticleListParams, type ArticleUpdateParams, type Attachment, type AttachmentListParams, type AuditLogEntry, type AuditLogListParams, type AutomationAction, type AutomationCondition, type AutomationConditions, type AutomationCreateParams, type AutomationExecution, type AutomationExecutionListParams, type AutomationListParams, type AutomationRule, type AutomationTestResult, type AutomationUpdateParams, type BillingPortal, type BillingPortalParams, type Boss, type BossDamageParams, type BossDamageResult, type BossDefeat, type BossDefeatListParams, type BossSpawnParams, type BulkDeleteParams, type BulkResult, type BulkUpdateParams, type BusinessHours, type BusinessHoursUpdateParams, CStarAuthenticationError, CStarClient, type CStarClientConfig, CStarConflictError, CStarError, CStarFeatureDisabledError, CStarNotFoundError, CStarPermissionError, CStarRateLimitError, CStarRealtime, CStarServerError, CStarValidationError, type Category, type CategoryCreateParams, type CategoryListParams, type CategoryUpdateParams, type CommunityComment, type CommunityCommentCreateParams, type CommunityPost, type CommunityPostCreateParams, type CommunityPostListParams, type CommunityPostUpdateParams, type CommunityTopic, type ConnectionHandler, type Cosmetic, type CosmeticPreferences, type CsatSettings, type CsatSettingsUpdateParams, type CsatStats, type CsatSurvey, type CsatSurveyCreateParams, type CsatSurveyListParams, type CustomField, type CustomFieldCreateParams, type CustomFieldListParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerGroup, type CustomerGroupAddMembersParams, type CustomerGroupAddResult, type CustomerGroupCreateParams, type CustomerGroupListParams, type CustomerGroupMemberListParams, type CustomerGroupMembersResult, type CustomerGroupRemoveResult, type CustomerGroupUpdateParams, type CustomerListParams, type CustomerUpdateParams, type DeleteResponse, type ErrorHandler, ErrorType, type EventHandler, type ExportCreateParams, type ExportResult, type GameConfig, type HighFive, type HighFiveCanSend, type HighFiveCreateParams, type HighFiveListParams, type ImportCreateParams, type ImportLog, type ImportLogListParams, type ImportResult, type Invite, type InviteCreateParams, type InviteListParams, type LeaderboardEntry, type LeaderboardParams, type ListResponse, type Member, type MemberListParams, type MemberUpdateParams, type Mention, type MentionListParams, type MentionUnreadCount, type Message, type MessageCreateParams, type Metadata, type Notification, type NotificationListParams, OfflineQueue, type OfflineQueueOptions, type OneUp, type OneUpCreateParams, type OneUpListParams, type OneUpRemaining, type PaginationInfo, type PaginationParams, type Player, type Puzzle, type PuzzleCompleteParams, type PuzzleCompleteResult, type PuzzleStreak, type Quest, type QueueItem, type QueueResult, type QuickReply, type QuickReplyCreateParams, type QuickReplyUpdateParams, type RealtimeEvent, type RealtimeOptions, type RequestOptions, type SavedView, type SearchParams, type SearchResult, type Season, type SeasonStats, type SkillAllocateParams, type SkillAllocateResult, type SkillTree, type SlaMetrics, type SlaMetricsParams, type SlaRule, type SlaRuleCreateParams, type SlaRuleListParams, type SlaRuleUpdateParams, type StatusCreateParams, type StatusUpdateParams, Subscription$1 as Subscription, type Tag, type TagListParams, type TeamSettings, type TeamSettingsUpdateParams, type Ticket, type TicketCreateParams, type TicketCustomerSummary, type TicketListParams, type TicketStatus, type TicketUpdateParams, type TopicCustomField, type UnreadCount, type ViewCreateParams, type ViewExecuteParams, type ViewListParams, type ViewUpdateParams, type Webhook, type WebhookCreateParams, type WebhookEvent, type WebhookEventData, type WebhookEventType, type WebhookListParams, type WebhookListener, type WebhookListenerParams, type WebhookSubscribeParams, type WebhookSubscription, type WebhookTestResult, type WebhookTriggerTestParams, type WebhookTriggerTestResult, type WebhookUpdateParams, type WidgetSettings, type WidgetSettingsUpdateParams };
|
|
3691
|
+
export { type Achievement, type AchievementListParams, type ActivityEvent, type ActivityListParams, type AiAction, type AiActionParams, type AiActionResult, type AnalyticsOverview, type AnalyticsParams, type ApiErrorBody, type ApiResponse, type Article, type ArticleCreateParams, type ArticleListParams, type ArticleUpdateParams, type Attachment, type AttachmentListParams, type AuditLogEntry, type AuditLogListParams, type AutomationAction, type AutomationCondition, type AutomationConditions, type AutomationCreateParams, type AutomationExecution, type AutomationExecutionListParams, type AutomationListParams, type AutomationRule, type AutomationTestResult, type AutomationUpdateParams, type BillingPortal, type BillingPortalParams, type Boss, type BossDamageParams, type BossDamageResult, type BossDefeat, type BossDefeatListParams, type BossSpawnParams, type BulkDeleteParams, type BulkResult, type BulkUpdateParams, type BusinessHours, type BusinessHoursUpdateParams, CStarAuthenticationError, CStarClient, type CStarClientConfig, CStarConflictError, CStarError, CStarFeatureDisabledError, CStarNotFoundError, CStarPermissionError, CStarRateLimitError, CStarRealtime, CStarServerError, CStarValidationError, type Category, type CategoryCreateParams, type CategoryListParams, type CategoryUpdateParams, type CommunityComment, type CommunityCommentCreateParams, type CommunityPost, type CommunityPostCreateParams, type CommunityPostListParams, type CommunityPostUpdateParams, type CommunityTopic, type ConnectionHandler, type Cosmetic, type CosmeticPreferences, type CsatSettings, type CsatSettingsUpdateParams, type CsatStats, type CsatSurvey, type CsatSurveyCreateParams, type CsatSurveyListParams, type CustomField, type CustomFieldCreateParams, type CustomFieldListParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerGroup, type CustomerGroupAddMembersParams, type CustomerGroupAddResult, type CustomerGroupCreateParams, type CustomerGroupListParams, type CustomerGroupMemberListParams, type CustomerGroupMembersResult, type CustomerGroupRemoveResult, type CustomerGroupUpdateParams, type CustomerListParams, type CustomerUpdateParams, type DeleteResponse, type ErrorHandler, ErrorType, type EventHandler, type ExportCreateParams, type ExportResult, type GameConfig, type HighFive, type HighFiveCanSend, type HighFiveCreateParams, type HighFiveListParams, type ImportCreateParams, type ImportLog, type ImportLogListParams, type ImportResult, type Invite, type InviteCreateParams, type InviteListParams, type LeaderboardEntry, type LeaderboardParams, type ListResponse, type Member, type MemberListParams, type MemberUpdateParams, type Mention, type MentionListParams, type MentionUnreadCount, type Message, type MessageCreateParams, type Metadata, type Notification, type NotificationListParams, OfflineQueue, type OfflineQueueOptions, type OneUp, type OneUpCreateParams, type OneUpListParams, type OneUpRemaining, type PaginationInfo, type PaginationParams, type Player, type Puzzle, type PuzzleCompleteParams, type PuzzleCompleteResult, type PuzzleStreak, type Quest, type QueueItem, type QueueResult, type QuickReply, type QuickReplyCreateParams, type QuickReplyUpdateParams, type RealtimeEvent, type RealtimeOptions, type RequestOptions, type SavedView, type SearchParams, type SearchResult, type Season, type SeasonStats, type SkillAllocateParams, type SkillAllocateResult, type SkillTree, type SlaMetrics, type SlaMetricsParams, type SlaRule, type SlaRuleCreateParams, type SlaRuleListParams, type SlaRuleUpdateParams, type StatusCreateParams, type StatusUpdateParams, Subscription$1 as Subscription, type Tag, type TagListParams, type TeamSettings, type TeamSettingsUpdateParams, type Ticket, type TicketCreateParams, type TicketCustomerSummary, type TicketListParams, type TicketStatus, type TicketUpdateParams, type TopicCustomField, type UnreadCount, type ViewCreateParams, type ViewExecuteParams, type ViewListParams, type ViewUpdateParams, WEBHOOK_EVENT_CATALOG, WEBHOOK_EVENT_SAMPLES, type Webhook, type WebhookCreateParams, type WebhookEvent, type WebhookEventData, type WebhookEventType, type WebhookListParams, type WebhookListener, type WebhookListenerParams, type WebhookSubscribeParams, type WebhookSubscription, type WebhookTestResult, type WebhookTriggerTestParams, type WebhookTriggerTestResult, type WebhookUpdateParams, type WidgetSettings, type WidgetSettingsUpdateParams };
|
package/dist/index.d.ts
CHANGED
|
@@ -189,6 +189,15 @@ declare class CStarRealtime {
|
|
|
189
189
|
private errorHandlers;
|
|
190
190
|
private connectionHandlers;
|
|
191
191
|
private lastEventId;
|
|
192
|
+
/**
|
|
193
|
+
* Timestamp of the most recently received event, kept as an ISO-8601 string.
|
|
194
|
+
* Sent as `?since=<iso>` on reconnect so the server can replay events missed
|
|
195
|
+
* during the gap. The `id:` field on each SSE message is a prefixed entity
|
|
196
|
+
* ID (`evt_*`), which `new Date(...)` can't parse — passing it as `since`
|
|
197
|
+
* silently skips the replay branch on the server. Track the timestamp
|
|
198
|
+
* separately so reconnects actually catch up. R62.
|
|
199
|
+
*/
|
|
200
|
+
private lastEventTimestamp;
|
|
192
201
|
private retryCount;
|
|
193
202
|
private retryTimer;
|
|
194
203
|
private _connected;
|
|
@@ -582,7 +591,17 @@ declare class ArticlesResource extends BaseResource<Article, ArticleListParams,
|
|
|
582
591
|
}
|
|
583
592
|
|
|
584
593
|
/** Every webhook event type cStar can dispatch. */
|
|
585
|
-
type WebhookEventType = 'article.created' | 'article.deleted' | 'article.published' | 'article.updated' | 'boss.damaged' | 'boss.defeated' | 'boss.spawned' | 'community_post.commented' | 'community_post.created' | 'community_post.deleted' | 'community_post.status_changed' | 'community_post.updated' | 'community_post.voted' | 'customer.created' | 'customer.deleted' | 'customer.updated' | 'customer_group.created' | 'customer_group.deleted' | 'customer_group.updated' | 'player.achievement_unlocked' | 'player.level_up' | 'player.quest_completed' | 'player.streak_milestone' | 'player.xp_gained' | 'social.high_five_sent' | 'social.one_up_sent' | 'survey.submitted' | 'ticket.assigned' | 'ticket.closed' | 'ticket.created' | 'ticket.deleted' | 'ticket.message_added' | 'ticket.updated';
|
|
594
|
+
type WebhookEventType = 'agent.preferences_updated' | 'article.created' | 'article.deleted' | 'article.published' | 'article.updated' | 'boss.damaged' | 'boss.defeated' | 'boss.spawned' | 'community_post.commented' | 'community_post.created' | 'community_post.deleted' | 'community_post.status_changed' | 'community_post.updated' | 'community_post.voted' | 'customer.created' | 'customer.deleted' | 'customer.updated' | 'customer_group.created' | 'customer_group.deleted' | 'customer_group.updated' | 'player.achievement_unlocked' | 'player.level_up' | 'player.quest_completed' | 'player.streak_milestone' | 'player.xp_gained' | 'social.high_five_sent' | 'social.one_up_sent' | 'survey.submitted' | 'team.preferences_updated' | 'ticket.assigned' | 'ticket.closed' | 'ticket.created' | 'ticket.deleted' | 'ticket.message_added' | 'ticket.updated';
|
|
595
|
+
/** Payload for `agent.preferences_updated` events. */
|
|
596
|
+
interface AgentPreferencesUpdatedPayload {
|
|
597
|
+
team_id: string;
|
|
598
|
+
member_id: string;
|
|
599
|
+
agent_id: string;
|
|
600
|
+
changed: Array<string>;
|
|
601
|
+
preferences: {
|
|
602
|
+
boringMode: boolean;
|
|
603
|
+
};
|
|
604
|
+
}
|
|
586
605
|
/** Payload for `article.created` events. */
|
|
587
606
|
interface ArticleCreatedPayload {
|
|
588
607
|
article: {
|
|
@@ -857,6 +876,14 @@ interface SurveySubmittedPayload {
|
|
|
857
876
|
email: string;
|
|
858
877
|
};
|
|
859
878
|
}
|
|
879
|
+
/** Payload for `team.preferences_updated` events. */
|
|
880
|
+
interface TeamPreferencesUpdatedPayload {
|
|
881
|
+
team_id: string;
|
|
882
|
+
changed: Array<string>;
|
|
883
|
+
preferences: {
|
|
884
|
+
bossBattlesEnabled: boolean;
|
|
885
|
+
};
|
|
886
|
+
}
|
|
860
887
|
/** Payload for `ticket.assigned` events. */
|
|
861
888
|
interface TicketAssignedPayload {
|
|
862
889
|
ticket: {
|
|
@@ -947,6 +974,7 @@ interface TicketUpdatedPayload {
|
|
|
947
974
|
}
|
|
948
975
|
/** Maps each event type to its payload interface — used internally for the discriminated union. */
|
|
949
976
|
interface WebhookEventDataMap {
|
|
977
|
+
'agent.preferences_updated': AgentPreferencesUpdatedPayload;
|
|
950
978
|
'article.created': ArticleCreatedPayload;
|
|
951
979
|
'article.deleted': ArticleDeletedPayload;
|
|
952
980
|
'article.published': ArticlePublishedPayload;
|
|
@@ -974,6 +1002,7 @@ interface WebhookEventDataMap {
|
|
|
974
1002
|
'social.high_five_sent': SocialHighFiveSentPayload;
|
|
975
1003
|
'social.one_up_sent': SocialOneUpSentPayload;
|
|
976
1004
|
'survey.submitted': SurveySubmittedPayload;
|
|
1005
|
+
'team.preferences_updated': TeamPreferencesUpdatedPayload;
|
|
977
1006
|
'ticket.assigned': TicketAssignedPayload;
|
|
978
1007
|
'ticket.closed': TicketClosedPayload;
|
|
979
1008
|
'ticket.created': TicketCreatedPayload;
|
|
@@ -994,6 +1023,20 @@ interface WebhookEvent<T extends WebhookEventType = WebhookEventType> {
|
|
|
994
1023
|
/** Event-specific payload. */
|
|
995
1024
|
data: WebhookEventDataMap[T];
|
|
996
1025
|
}
|
|
1026
|
+
/**
|
|
1027
|
+
* Stable representative payloads for each event type. Useful for testing
|
|
1028
|
+
* your endpoint against realistic shapes without having to trigger a real
|
|
1029
|
+
* event. Mirrors the dashboard's event catalog.
|
|
1030
|
+
*/
|
|
1031
|
+
declare const WEBHOOK_EVENT_SAMPLES: {
|
|
1032
|
+
[K in WebhookEventType]: WebhookEventDataMap[K];
|
|
1033
|
+
};
|
|
1034
|
+
/** Static metadata about every event — labels, descriptions, categories. */
|
|
1035
|
+
declare const WEBHOOK_EVENT_CATALOG: Record<WebhookEventType, {
|
|
1036
|
+
label: string;
|
|
1037
|
+
description: string;
|
|
1038
|
+
category: string;
|
|
1039
|
+
}>;
|
|
997
1040
|
|
|
998
1041
|
type WebhookEventData<T extends WebhookEventType> = WebhookEventDataMap[T];
|
|
999
1042
|
|
|
@@ -1516,6 +1559,40 @@ interface InviteCreateParams {
|
|
|
1516
1559
|
role?: string;
|
|
1517
1560
|
}
|
|
1518
1561
|
|
|
1562
|
+
/**
|
|
1563
|
+
* Team and member preferences — UX toggles exposed via the bearer-token API.
|
|
1564
|
+
*
|
|
1565
|
+
* Backed by:
|
|
1566
|
+
* - `/api/v1/teams/{teamId}/preferences` (TeamPreferences)
|
|
1567
|
+
* - `/api/v1/teams/{teamId}/members/{memberId}/preferences` (MemberPreferences)
|
|
1568
|
+
*
|
|
1569
|
+
* Kept narrow on purpose: only the toggles a headless dashboard needs to
|
|
1570
|
+
* flip from a server. Add new fields here when the matching column lands
|
|
1571
|
+
* on the handler's ALLOWED map.
|
|
1572
|
+
*/
|
|
1573
|
+
/** Team-wide UX preferences. */
|
|
1574
|
+
interface TeamPreferences {
|
|
1575
|
+
/** When false, hides the team boss feature for every agent. */
|
|
1576
|
+
bossBattlesEnabled: boolean | null;
|
|
1577
|
+
}
|
|
1578
|
+
/** Patch shape for team preferences. */
|
|
1579
|
+
interface TeamPreferencesUpdateParams {
|
|
1580
|
+
bossBattlesEnabled?: boolean;
|
|
1581
|
+
}
|
|
1582
|
+
/** Per-agent UX preferences. */
|
|
1583
|
+
interface MemberPreferences {
|
|
1584
|
+
/**
|
|
1585
|
+
* When true, hides every gamification element for this agent. XP keeps
|
|
1586
|
+
* accumulating in the background — flipping back to false restores the
|
|
1587
|
+
* full game UI without losing progress.
|
|
1588
|
+
*/
|
|
1589
|
+
boringMode: boolean | null;
|
|
1590
|
+
}
|
|
1591
|
+
/** Patch shape for member preferences. */
|
|
1592
|
+
interface MemberPreferencesUpdateParams {
|
|
1593
|
+
boringMode?: boolean;
|
|
1594
|
+
}
|
|
1595
|
+
|
|
1519
1596
|
/** Manage team invites as a sub-resource. */
|
|
1520
1597
|
declare class InvitesResource {
|
|
1521
1598
|
private readonly client;
|
|
@@ -1527,11 +1604,22 @@ declare class InvitesResource {
|
|
|
1527
1604
|
/** Revoke a pending invite. */
|
|
1528
1605
|
del(inviteId: string): Promise<ApiResponse<DeleteResponse>>;
|
|
1529
1606
|
}
|
|
1607
|
+
/** Manage per-agent UX preferences as a sub-resource of members. */
|
|
1608
|
+
declare class MemberPreferencesResource {
|
|
1609
|
+
private readonly client;
|
|
1610
|
+
constructor(client: HttpClient);
|
|
1611
|
+
/** Get an agent's UX preferences (boring mode, etc.). */
|
|
1612
|
+
get(memberId: string): Promise<ApiResponse<MemberPreferences>>;
|
|
1613
|
+
/** Update an agent's UX preferences. Only provided fields are written. */
|
|
1614
|
+
update(memberId: string, params: MemberPreferencesUpdateParams): Promise<ApiResponse<MemberPreferences>>;
|
|
1615
|
+
}
|
|
1530
1616
|
/** Manage team members. */
|
|
1531
1617
|
declare class MembersResource {
|
|
1532
1618
|
private readonly client;
|
|
1533
1619
|
/** Sub-resource for team invites. */
|
|
1534
1620
|
readonly invites: InvitesResource;
|
|
1621
|
+
/** Sub-resource for per-agent UX preferences. */
|
|
1622
|
+
readonly preferences: MemberPreferencesResource;
|
|
1535
1623
|
constructor(client: HttpClient);
|
|
1536
1624
|
/** List all team members. */
|
|
1537
1625
|
list(params?: MemberListParams): Promise<ListResponse<Member>>;
|
|
@@ -2115,21 +2203,37 @@ interface ExportResult {
|
|
|
2115
2203
|
/** Import request parameters. */
|
|
2116
2204
|
interface ImportCreateParams {
|
|
2117
2205
|
resource: 'tickets' | 'customers' | 'articles';
|
|
2206
|
+
/**
|
|
2207
|
+
* Records to import. Flat objects with the per-entity fields you want
|
|
2208
|
+
* to set — e.g. `[{ name: 'Jane', email: 'jane@example.com' }]` for
|
|
2209
|
+
* `resource: 'customers'`. Each record is treated as a create. Server
|
|
2210
|
+
* also accepts the wrapped internal shape `{ data, action, existingId? }`
|
|
2211
|
+
* if you need to drive updates from the SDK.
|
|
2212
|
+
*/
|
|
2118
2213
|
records: Record<string, unknown>[];
|
|
2214
|
+
/** How to handle duplicates. Defaults to `'overwrite'`. */
|
|
2119
2215
|
mergeStrategy?: 'skip' | 'overwrite' | 'merge';
|
|
2120
2216
|
}
|
|
2121
2217
|
/** Import result. */
|
|
2122
2218
|
interface ImportResult {
|
|
2123
2219
|
object: 'import_result';
|
|
2124
|
-
|
|
2220
|
+
/** ID of the persisted import-log row (null if the log row could not be written). */
|
|
2221
|
+
logId: string | null;
|
|
2222
|
+
/** Entity type imported — `ticket`, `customer`, or `article`. */
|
|
2223
|
+
entityType: string;
|
|
2224
|
+
/** True when every record imported without error. */
|
|
2225
|
+
success: boolean;
|
|
2125
2226
|
total: number;
|
|
2126
2227
|
created: number;
|
|
2127
2228
|
updated: number;
|
|
2128
2229
|
skipped: number;
|
|
2129
|
-
|
|
2230
|
+
failed: number;
|
|
2231
|
+
errors?: Array<{
|
|
2130
2232
|
index: number;
|
|
2131
2233
|
error: string;
|
|
2132
2234
|
}>;
|
|
2235
|
+
/** IDs of the rows created by this import. */
|
|
2236
|
+
createdIds: string[];
|
|
2133
2237
|
}
|
|
2134
2238
|
/** Import log entry. */
|
|
2135
2239
|
interface ImportLog {
|
|
@@ -2466,6 +2570,8 @@ interface Achievement {
|
|
|
2466
2570
|
}
|
|
2467
2571
|
/** Parameters for listing achievements. */
|
|
2468
2572
|
interface AchievementListParams extends PaginationParams {
|
|
2573
|
+
/** Whose achievement progress to load. Required — the endpoint 400s without it. */
|
|
2574
|
+
userId: string;
|
|
2469
2575
|
category?: string;
|
|
2470
2576
|
}
|
|
2471
2577
|
/** A daily quest. */
|
|
@@ -2662,8 +2768,8 @@ declare class BossResource {
|
|
|
2662
2768
|
declare class AchievementsResource {
|
|
2663
2769
|
private readonly client;
|
|
2664
2770
|
constructor(client: HttpClient);
|
|
2665
|
-
/** List all achievements with progress. */
|
|
2666
|
-
list(params
|
|
2771
|
+
/** List all achievements with progress. `params.userId` is required. */
|
|
2772
|
+
list(params: AchievementListParams): Promise<ApiResponse<{
|
|
2667
2773
|
object: 'achievement_list';
|
|
2668
2774
|
data: Achievement[];
|
|
2669
2775
|
summary: {
|
|
@@ -2996,6 +3102,21 @@ declare class BillingResource {
|
|
|
2996
3102
|
portal(params?: BillingPortalParams): Promise<ApiResponse<BillingPortal>>;
|
|
2997
3103
|
}
|
|
2998
3104
|
|
|
3105
|
+
/**
|
|
3106
|
+
* Team-wide preferences. Wraps `/api/v1/teams/{teamId}/preferences`.
|
|
3107
|
+
*
|
|
3108
|
+
* Currently exposes the team-level boss-battles toggle. Read requires
|
|
3109
|
+
* `manage_settings`; write requires the same plus a secret key.
|
|
3110
|
+
*/
|
|
3111
|
+
declare class PreferencesResource {
|
|
3112
|
+
private readonly client;
|
|
3113
|
+
constructor(client: HttpClient);
|
|
3114
|
+
/** Get team preferences. */
|
|
3115
|
+
get(): Promise<ApiResponse<TeamPreferences>>;
|
|
3116
|
+
/** Update team preferences. Only provided fields are written. */
|
|
3117
|
+
update(params: TeamPreferencesUpdateParams): Promise<ApiResponse<TeamPreferences>>;
|
|
3118
|
+
}
|
|
3119
|
+
|
|
2999
3120
|
interface QueueItem {
|
|
3000
3121
|
/** Unique queue item ID. */
|
|
3001
3122
|
id: string;
|
|
@@ -3476,6 +3597,8 @@ declare class CStarClient {
|
|
|
3476
3597
|
readonly members: MembersResource;
|
|
3477
3598
|
/** Manage team settings, statuses, quick replies, business hours, and widget. */
|
|
3478
3599
|
readonly settings: SettingsResource;
|
|
3600
|
+
/** Team-wide UX preferences (boss-battles toggle, etc.). */
|
|
3601
|
+
readonly preferences: PreferencesResource;
|
|
3479
3602
|
/** Manage notifications. */
|
|
3480
3603
|
readonly notifications: NotificationsResource;
|
|
3481
3604
|
/** Manage @mentions. */
|
|
@@ -3565,4 +3688,4 @@ declare class CStarClient {
|
|
|
3565
3688
|
get lastMeta(): LastMeta;
|
|
3566
3689
|
}
|
|
3567
3690
|
|
|
3568
|
-
export { type Achievement, type AchievementListParams, type ActivityEvent, type ActivityListParams, type AiAction, type AiActionParams, type AiActionResult, type AnalyticsOverview, type AnalyticsParams, type ApiErrorBody, type ApiResponse, type Article, type ArticleCreateParams, type ArticleListParams, type ArticleUpdateParams, type Attachment, type AttachmentListParams, type AuditLogEntry, type AuditLogListParams, type AutomationAction, type AutomationCondition, type AutomationConditions, type AutomationCreateParams, type AutomationExecution, type AutomationExecutionListParams, type AutomationListParams, type AutomationRule, type AutomationTestResult, type AutomationUpdateParams, type BillingPortal, type BillingPortalParams, type Boss, type BossDamageParams, type BossDamageResult, type BossDefeat, type BossDefeatListParams, type BossSpawnParams, type BulkDeleteParams, type BulkResult, type BulkUpdateParams, type BusinessHours, type BusinessHoursUpdateParams, CStarAuthenticationError, CStarClient, type CStarClientConfig, CStarConflictError, CStarError, CStarFeatureDisabledError, CStarNotFoundError, CStarPermissionError, CStarRateLimitError, CStarRealtime, CStarServerError, CStarValidationError, type Category, type CategoryCreateParams, type CategoryListParams, type CategoryUpdateParams, type CommunityComment, type CommunityCommentCreateParams, type CommunityPost, type CommunityPostCreateParams, type CommunityPostListParams, type CommunityPostUpdateParams, type CommunityTopic, type ConnectionHandler, type Cosmetic, type CosmeticPreferences, type CsatSettings, type CsatSettingsUpdateParams, type CsatStats, type CsatSurvey, type CsatSurveyCreateParams, type CsatSurveyListParams, type CustomField, type CustomFieldCreateParams, type CustomFieldListParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerGroup, type CustomerGroupAddMembersParams, type CustomerGroupAddResult, type CustomerGroupCreateParams, type CustomerGroupListParams, type CustomerGroupMemberListParams, type CustomerGroupMembersResult, type CustomerGroupRemoveResult, type CustomerGroupUpdateParams, type CustomerListParams, type CustomerUpdateParams, type DeleteResponse, type ErrorHandler, ErrorType, type EventHandler, type ExportCreateParams, type ExportResult, type GameConfig, type HighFive, type HighFiveCanSend, type HighFiveCreateParams, type HighFiveListParams, type ImportCreateParams, type ImportLog, type ImportLogListParams, type ImportResult, type Invite, type InviteCreateParams, type InviteListParams, type LeaderboardEntry, type LeaderboardParams, type ListResponse, type Member, type MemberListParams, type MemberUpdateParams, type Mention, type MentionListParams, type MentionUnreadCount, type Message, type MessageCreateParams, type Metadata, type Notification, type NotificationListParams, OfflineQueue, type OfflineQueueOptions, type OneUp, type OneUpCreateParams, type OneUpListParams, type OneUpRemaining, type PaginationInfo, type PaginationParams, type Player, type Puzzle, type PuzzleCompleteParams, type PuzzleCompleteResult, type PuzzleStreak, type Quest, type QueueItem, type QueueResult, type QuickReply, type QuickReplyCreateParams, type QuickReplyUpdateParams, type RealtimeEvent, type RealtimeOptions, type RequestOptions, type SavedView, type SearchParams, type SearchResult, type Season, type SeasonStats, type SkillAllocateParams, type SkillAllocateResult, type SkillTree, type SlaMetrics, type SlaMetricsParams, type SlaRule, type SlaRuleCreateParams, type SlaRuleListParams, type SlaRuleUpdateParams, type StatusCreateParams, type StatusUpdateParams, Subscription$1 as Subscription, type Tag, type TagListParams, type TeamSettings, type TeamSettingsUpdateParams, type Ticket, type TicketCreateParams, type TicketCustomerSummary, type TicketListParams, type TicketStatus, type TicketUpdateParams, type TopicCustomField, type UnreadCount, type ViewCreateParams, type ViewExecuteParams, type ViewListParams, type ViewUpdateParams, type Webhook, type WebhookCreateParams, type WebhookEvent, type WebhookEventData, type WebhookEventType, type WebhookListParams, type WebhookListener, type WebhookListenerParams, type WebhookSubscribeParams, type WebhookSubscription, type WebhookTestResult, type WebhookTriggerTestParams, type WebhookTriggerTestResult, type WebhookUpdateParams, type WidgetSettings, type WidgetSettingsUpdateParams };
|
|
3691
|
+
export { type Achievement, type AchievementListParams, type ActivityEvent, type ActivityListParams, type AiAction, type AiActionParams, type AiActionResult, type AnalyticsOverview, type AnalyticsParams, type ApiErrorBody, type ApiResponse, type Article, type ArticleCreateParams, type ArticleListParams, type ArticleUpdateParams, type Attachment, type AttachmentListParams, type AuditLogEntry, type AuditLogListParams, type AutomationAction, type AutomationCondition, type AutomationConditions, type AutomationCreateParams, type AutomationExecution, type AutomationExecutionListParams, type AutomationListParams, type AutomationRule, type AutomationTestResult, type AutomationUpdateParams, type BillingPortal, type BillingPortalParams, type Boss, type BossDamageParams, type BossDamageResult, type BossDefeat, type BossDefeatListParams, type BossSpawnParams, type BulkDeleteParams, type BulkResult, type BulkUpdateParams, type BusinessHours, type BusinessHoursUpdateParams, CStarAuthenticationError, CStarClient, type CStarClientConfig, CStarConflictError, CStarError, CStarFeatureDisabledError, CStarNotFoundError, CStarPermissionError, CStarRateLimitError, CStarRealtime, CStarServerError, CStarValidationError, type Category, type CategoryCreateParams, type CategoryListParams, type CategoryUpdateParams, type CommunityComment, type CommunityCommentCreateParams, type CommunityPost, type CommunityPostCreateParams, type CommunityPostListParams, type CommunityPostUpdateParams, type CommunityTopic, type ConnectionHandler, type Cosmetic, type CosmeticPreferences, type CsatSettings, type CsatSettingsUpdateParams, type CsatStats, type CsatSurvey, type CsatSurveyCreateParams, type CsatSurveyListParams, type CustomField, type CustomFieldCreateParams, type CustomFieldListParams, type CustomFieldUpdateParams, type Customer, type CustomerCreateParams, type CustomerGroup, type CustomerGroupAddMembersParams, type CustomerGroupAddResult, type CustomerGroupCreateParams, type CustomerGroupListParams, type CustomerGroupMemberListParams, type CustomerGroupMembersResult, type CustomerGroupRemoveResult, type CustomerGroupUpdateParams, type CustomerListParams, type CustomerUpdateParams, type DeleteResponse, type ErrorHandler, ErrorType, type EventHandler, type ExportCreateParams, type ExportResult, type GameConfig, type HighFive, type HighFiveCanSend, type HighFiveCreateParams, type HighFiveListParams, type ImportCreateParams, type ImportLog, type ImportLogListParams, type ImportResult, type Invite, type InviteCreateParams, type InviteListParams, type LeaderboardEntry, type LeaderboardParams, type ListResponse, type Member, type MemberListParams, type MemberUpdateParams, type Mention, type MentionListParams, type MentionUnreadCount, type Message, type MessageCreateParams, type Metadata, type Notification, type NotificationListParams, OfflineQueue, type OfflineQueueOptions, type OneUp, type OneUpCreateParams, type OneUpListParams, type OneUpRemaining, type PaginationInfo, type PaginationParams, type Player, type Puzzle, type PuzzleCompleteParams, type PuzzleCompleteResult, type PuzzleStreak, type Quest, type QueueItem, type QueueResult, type QuickReply, type QuickReplyCreateParams, type QuickReplyUpdateParams, type RealtimeEvent, type RealtimeOptions, type RequestOptions, type SavedView, type SearchParams, type SearchResult, type Season, type SeasonStats, type SkillAllocateParams, type SkillAllocateResult, type SkillTree, type SlaMetrics, type SlaMetricsParams, type SlaRule, type SlaRuleCreateParams, type SlaRuleListParams, type SlaRuleUpdateParams, type StatusCreateParams, type StatusUpdateParams, Subscription$1 as Subscription, type Tag, type TagListParams, type TeamSettings, type TeamSettingsUpdateParams, type Ticket, type TicketCreateParams, type TicketCustomerSummary, type TicketListParams, type TicketStatus, type TicketUpdateParams, type TopicCustomField, type UnreadCount, type ViewCreateParams, type ViewExecuteParams, type ViewListParams, type ViewUpdateParams, WEBHOOK_EVENT_CATALOG, WEBHOOK_EVENT_SAMPLES, type Webhook, type WebhookCreateParams, type WebhookEvent, type WebhookEventData, type WebhookEventType, type WebhookListParams, type WebhookListener, type WebhookListenerParams, type WebhookSubscribeParams, type WebhookSubscription, type WebhookTestResult, type WebhookTriggerTestParams, type WebhookTriggerTestResult, type WebhookUpdateParams, type WidgetSettings, type WidgetSettingsUpdateParams };
|