@liaisongroup/assist-api-js-client 1.5.57 → 1.5.59
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/openapi.d.ts +200 -2
- package/dist/openapi.json +511 -2
- package/dist/openapi.zod.d.ts +11545 -1419
- package/dist/openapi.zod.js +71 -1
- package/package.json +1 -1
package/dist/openapi.d.ts
CHANGED
|
@@ -78,6 +78,16 @@ declare namespace Components {
|
|
|
78
78
|
id: string; // uuid
|
|
79
79
|
};
|
|
80
80
|
}
|
|
81
|
+
export interface BroadcastToEvent {
|
|
82
|
+
type: "unread_notification_count_change";
|
|
83
|
+
data: {
|
|
84
|
+
/**
|
|
85
|
+
* example:
|
|
86
|
+
* 10
|
|
87
|
+
*/
|
|
88
|
+
unread_notification_count: number;
|
|
89
|
+
};
|
|
90
|
+
}
|
|
81
91
|
export interface CalculationAction {
|
|
82
92
|
name?: string;
|
|
83
93
|
updated_at?: string; // date-time
|
|
@@ -104,6 +114,7 @@ declare namespace Components {
|
|
|
104
114
|
target_type?: "Case" | "Note" | "Tag" | "Task";
|
|
105
115
|
target_name?: string;
|
|
106
116
|
event_type?: "create" | "destroy" | "update";
|
|
117
|
+
event_reason?: null | string;
|
|
107
118
|
created_at?: string; // date-time
|
|
108
119
|
changes?: {
|
|
109
120
|
key?: string;
|
|
@@ -1048,6 +1059,48 @@ declare namespace Components {
|
|
|
1048
1059
|
id?: string; // uuid
|
|
1049
1060
|
}[];
|
|
1050
1061
|
}
|
|
1062
|
+
export interface Notification {
|
|
1063
|
+
data: NotificationData;
|
|
1064
|
+
links: Links;
|
|
1065
|
+
included?: NotificationInclusions;
|
|
1066
|
+
}
|
|
1067
|
+
export interface NotificationAttributes {
|
|
1068
|
+
message?: string;
|
|
1069
|
+
body?: string;
|
|
1070
|
+
read?: boolean;
|
|
1071
|
+
created_at?: string; // date-time
|
|
1072
|
+
updated_at?: string; // date-time
|
|
1073
|
+
}
|
|
1074
|
+
export interface NotificationData {
|
|
1075
|
+
type: "notification";
|
|
1076
|
+
id: string; // uuid
|
|
1077
|
+
attributes: NotificationAttributes;
|
|
1078
|
+
relationships: NotificationRelationships;
|
|
1079
|
+
}
|
|
1080
|
+
export interface NotificationInclusion {
|
|
1081
|
+
type: "notification";
|
|
1082
|
+
id: string; // uuid
|
|
1083
|
+
attributes: NotificationAttributes;
|
|
1084
|
+
relationships: NotificationRelationships;
|
|
1085
|
+
}
|
|
1086
|
+
export type NotificationInclusions = (TaskInclusion | UserInclusion)[];
|
|
1087
|
+
export interface NotificationRelationships {
|
|
1088
|
+
subject?: TaskRelationship;
|
|
1089
|
+
assignee?: UserRelationship;
|
|
1090
|
+
assigner?: UserRelationship;
|
|
1091
|
+
}
|
|
1092
|
+
export interface Notifications {
|
|
1093
|
+
data: NotificationData[];
|
|
1094
|
+
meta: Meta;
|
|
1095
|
+
links: Links;
|
|
1096
|
+
included?: NotificationInclusions;
|
|
1097
|
+
}
|
|
1098
|
+
export interface NotificationsRelationship {
|
|
1099
|
+
data?: {
|
|
1100
|
+
type?: "notification";
|
|
1101
|
+
id?: string; // uuid
|
|
1102
|
+
}[];
|
|
1103
|
+
}
|
|
1051
1104
|
export interface OidcConfig {
|
|
1052
1105
|
client_id: string;
|
|
1053
1106
|
secret: string;
|
|
@@ -1527,6 +1580,13 @@ declare namespace Components {
|
|
|
1527
1580
|
relationships: TaskRelationships;
|
|
1528
1581
|
}
|
|
1529
1582
|
export type TaskInclusions = (CaseInclusion | FieldInclusion | NoteInclusion | TeamInclusion | TemplateInclusion | UserInclusion | VersionInclusion)[];
|
|
1583
|
+
export interface TaskRelationship {
|
|
1584
|
+
data?: {
|
|
1585
|
+
type?: "task";
|
|
1586
|
+
id?: string; // uuid
|
|
1587
|
+
};
|
|
1588
|
+
links?: Links;
|
|
1589
|
+
}
|
|
1530
1590
|
export interface TaskRelationships {
|
|
1531
1591
|
case?: CaseRelationship;
|
|
1532
1592
|
fields?: FieldsRelationship;
|
|
@@ -1780,7 +1840,7 @@ declare namespace Components {
|
|
|
1780
1840
|
}[];
|
|
1781
1841
|
links?: Links;
|
|
1782
1842
|
}
|
|
1783
|
-
export type Type = "action" | "case" | "field" | "field_setting" | "list" | "list_saved_filter" | "note" | "role" | "saved_filter" | "sso_config" | "tag" | "task" | "team" | "team_member" | "template" | "user";
|
|
1843
|
+
export type Type = "action" | "case" | "field" | "field_setting" | "list" | "list_saved_filter" | "note" | "notification" | "role" | "saved_filter" | "sso_config" | "tag" | "task" | "team" | "team_member" | "template" | "user";
|
|
1784
1844
|
export interface UpdateResourceAction {
|
|
1785
1845
|
name?: string;
|
|
1786
1846
|
updated_at?: string; // date-time
|
|
@@ -1837,10 +1897,16 @@ declare namespace Components {
|
|
|
1837
1897
|
sso_config: RoleActions[];
|
|
1838
1898
|
field_setting: RoleActions[];
|
|
1839
1899
|
note: RoleActions[];
|
|
1900
|
+
notification: RoleActions[];
|
|
1840
1901
|
};
|
|
1841
1902
|
team_ids?: string /* uuid */[];
|
|
1842
1903
|
created_at?: string; // date-time
|
|
1843
1904
|
updated_at?: string; // date-time
|
|
1905
|
+
/**
|
|
1906
|
+
* example:
|
|
1907
|
+
* 0
|
|
1908
|
+
*/
|
|
1909
|
+
unread_notification_count?: number;
|
|
1844
1910
|
}
|
|
1845
1911
|
namespace UserAttributes {
|
|
1846
1912
|
namespace Properties {
|
|
@@ -1892,7 +1958,7 @@ declare namespace Components {
|
|
|
1892
1958
|
attributes: UserAttributes;
|
|
1893
1959
|
relationships?: UserRelationships;
|
|
1894
1960
|
}
|
|
1895
|
-
export type UserInclusions = (TaskInclusion | TeamInclusion | TeamMemberInclusion | RoleInclusion)[];
|
|
1961
|
+
export type UserInclusions = (TaskInclusion | TeamInclusion | TeamMemberInclusion | RoleInclusion | NotificationInclusion)[];
|
|
1896
1962
|
export interface UserRelationship {
|
|
1897
1963
|
data?: {
|
|
1898
1964
|
type?: "user";
|
|
@@ -1905,6 +1971,7 @@ declare namespace Components {
|
|
|
1905
1971
|
teams?: TeamsRelationship;
|
|
1906
1972
|
team_members?: TeamMembersRelationship;
|
|
1907
1973
|
roles?: RolesRelationship;
|
|
1974
|
+
assigned_notifications?: NotificationsRelationship;
|
|
1908
1975
|
}
|
|
1909
1976
|
export interface UserUpdateAttributes {
|
|
1910
1977
|
name?: UserAttributes.Properties.Name;
|
|
@@ -2412,6 +2479,21 @@ declare namespace Paths {
|
|
|
2412
2479
|
export type $404 = Components.Schemas.Errors;
|
|
2413
2480
|
}
|
|
2414
2481
|
}
|
|
2482
|
+
namespace DeleteNotification {
|
|
2483
|
+
namespace Parameters {
|
|
2484
|
+
export type Id = string;
|
|
2485
|
+
}
|
|
2486
|
+
export interface PathParameters {
|
|
2487
|
+
id: Parameters.Id;
|
|
2488
|
+
}
|
|
2489
|
+
namespace Responses {
|
|
2490
|
+
export interface $204 {
|
|
2491
|
+
}
|
|
2492
|
+
export type $401 = Components.Schemas.Errors;
|
|
2493
|
+
export type $403 = Components.Schemas.Errors;
|
|
2494
|
+
export type $404 = Components.Schemas.Errors;
|
|
2495
|
+
}
|
|
2496
|
+
}
|
|
2415
2497
|
namespace DeleteRole {
|
|
2416
2498
|
namespace Parameters {
|
|
2417
2499
|
export type Id = string; // uuid
|
|
@@ -2785,6 +2867,13 @@ declare namespace Paths {
|
|
|
2785
2867
|
export type $403 = Components.Schemas.Errors;
|
|
2786
2868
|
}
|
|
2787
2869
|
}
|
|
2870
|
+
namespace GetNotifications {
|
|
2871
|
+
namespace Responses {
|
|
2872
|
+
export type $200 = Components.Schemas.Notifications;
|
|
2873
|
+
export type $401 = Components.Schemas.Errors;
|
|
2874
|
+
export type $403 = Components.Schemas.Errors;
|
|
2875
|
+
}
|
|
2876
|
+
}
|
|
2788
2877
|
namespace GetResourceAttribute {
|
|
2789
2878
|
namespace Parameters {
|
|
2790
2879
|
export type Id = string;
|
|
@@ -3040,6 +3129,14 @@ declare namespace Paths {
|
|
|
3040
3129
|
}
|
|
3041
3130
|
}
|
|
3042
3131
|
}
|
|
3132
|
+
namespace MarkAllNotificationsAsRead {
|
|
3133
|
+
namespace Responses {
|
|
3134
|
+
export interface $204 {
|
|
3135
|
+
}
|
|
3136
|
+
export type $401 = Components.Schemas.Errors;
|
|
3137
|
+
export type $403 = Components.Schemas.Errors;
|
|
3138
|
+
}
|
|
3139
|
+
}
|
|
3043
3140
|
namespace RevokeAccessToken {
|
|
3044
3141
|
export interface RequestBody {
|
|
3045
3142
|
token: string; // jwt
|
|
@@ -3219,6 +3316,25 @@ declare namespace Paths {
|
|
|
3219
3316
|
export type $422 = Components.Schemas.Errors;
|
|
3220
3317
|
}
|
|
3221
3318
|
}
|
|
3319
|
+
namespace UpdateNotification {
|
|
3320
|
+
namespace Parameters {
|
|
3321
|
+
export type Id = string;
|
|
3322
|
+
}
|
|
3323
|
+
export interface PathParameters {
|
|
3324
|
+
id: Parameters.Id;
|
|
3325
|
+
}
|
|
3326
|
+
export interface RequestBody {
|
|
3327
|
+
data: {
|
|
3328
|
+
attributes: Components.Schemas.NotificationAttributes;
|
|
3329
|
+
};
|
|
3330
|
+
}
|
|
3331
|
+
namespace Responses {
|
|
3332
|
+
export type $200 = Components.Schemas.Notification;
|
|
3333
|
+
export type $401 = Components.Schemas.Errors;
|
|
3334
|
+
export type $403 = Components.Schemas.Errors;
|
|
3335
|
+
export type $404 = Components.Schemas.Errors;
|
|
3336
|
+
}
|
|
3337
|
+
}
|
|
3222
3338
|
namespace UpdateRole {
|
|
3223
3339
|
namespace Parameters {
|
|
3224
3340
|
export type Id = string; // uuid
|
|
@@ -3413,6 +3529,7 @@ declare namespace Paths {
|
|
|
3413
3529
|
}
|
|
3414
3530
|
}
|
|
3415
3531
|
|
|
3532
|
+
|
|
3416
3533
|
export interface OperationMethods {
|
|
3417
3534
|
/**
|
|
3418
3535
|
* create_access_token - Create access token
|
|
@@ -4198,6 +4315,38 @@ export interface OperationMethods {
|
|
|
4198
4315
|
data?: any,
|
|
4199
4316
|
config?: AxiosRequestConfig
|
|
4200
4317
|
): OperationResponse<Paths.DeleteNote.Responses.$204>
|
|
4318
|
+
/**
|
|
4319
|
+
* get_notifications - Get notifications
|
|
4320
|
+
*/
|
|
4321
|
+
'get_notifications'(
|
|
4322
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
4323
|
+
data?: any,
|
|
4324
|
+
config?: AxiosRequestConfig
|
|
4325
|
+
): OperationResponse<Paths.GetNotifications.Responses.$200>
|
|
4326
|
+
/**
|
|
4327
|
+
* mark_all_notifications_as_read - Mark all notifications for current user as read
|
|
4328
|
+
*/
|
|
4329
|
+
'mark_all_notifications_as_read'(
|
|
4330
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
4331
|
+
data?: any,
|
|
4332
|
+
config?: AxiosRequestConfig
|
|
4333
|
+
): OperationResponse<Paths.MarkAllNotificationsAsRead.Responses.$204>
|
|
4334
|
+
/**
|
|
4335
|
+
* update_notification - Update notification
|
|
4336
|
+
*/
|
|
4337
|
+
'update_notification'(
|
|
4338
|
+
parameters?: Parameters<Paths.UpdateNotification.PathParameters> | null,
|
|
4339
|
+
data?: Paths.UpdateNotification.RequestBody,
|
|
4340
|
+
config?: AxiosRequestConfig
|
|
4341
|
+
): OperationResponse<Paths.UpdateNotification.Responses.$200>
|
|
4342
|
+
/**
|
|
4343
|
+
* delete_notification - Delete notification
|
|
4344
|
+
*/
|
|
4345
|
+
'delete_notification'(
|
|
4346
|
+
parameters?: Parameters<Paths.DeleteNotification.PathParameters> | null,
|
|
4347
|
+
data?: any,
|
|
4348
|
+
config?: AxiosRequestConfig
|
|
4349
|
+
): OperationResponse<Paths.DeleteNotification.Responses.$204>
|
|
4201
4350
|
/**
|
|
4202
4351
|
* atomic_operations - Perform atomic operations
|
|
4203
4352
|
*
|
|
@@ -5104,6 +5253,44 @@ export interface PathsDictionary {
|
|
|
5104
5253
|
config?: AxiosRequestConfig
|
|
5105
5254
|
): OperationResponse<Paths.DeleteNote.Responses.$204>
|
|
5106
5255
|
}
|
|
5256
|
+
['/notifications']: {
|
|
5257
|
+
/**
|
|
5258
|
+
* get_notifications - Get notifications
|
|
5259
|
+
*/
|
|
5260
|
+
'get'(
|
|
5261
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
5262
|
+
data?: any,
|
|
5263
|
+
config?: AxiosRequestConfig
|
|
5264
|
+
): OperationResponse<Paths.GetNotifications.Responses.$200>
|
|
5265
|
+
}
|
|
5266
|
+
['/notifications/mark_all_as_read']: {
|
|
5267
|
+
/**
|
|
5268
|
+
* mark_all_notifications_as_read - Mark all notifications for current user as read
|
|
5269
|
+
*/
|
|
5270
|
+
'patch'(
|
|
5271
|
+
parameters?: Parameters<UnknownParamsObject> | null,
|
|
5272
|
+
data?: any,
|
|
5273
|
+
config?: AxiosRequestConfig
|
|
5274
|
+
): OperationResponse<Paths.MarkAllNotificationsAsRead.Responses.$204>
|
|
5275
|
+
}
|
|
5276
|
+
['/notifications/{id}']: {
|
|
5277
|
+
/**
|
|
5278
|
+
* update_notification - Update notification
|
|
5279
|
+
*/
|
|
5280
|
+
'patch'(
|
|
5281
|
+
parameters?: Parameters<Paths.UpdateNotification.PathParameters> | null,
|
|
5282
|
+
data?: Paths.UpdateNotification.RequestBody,
|
|
5283
|
+
config?: AxiosRequestConfig
|
|
5284
|
+
): OperationResponse<Paths.UpdateNotification.Responses.$200>
|
|
5285
|
+
/**
|
|
5286
|
+
* delete_notification - Delete notification
|
|
5287
|
+
*/
|
|
5288
|
+
'delete'(
|
|
5289
|
+
parameters?: Parameters<Paths.DeleteNotification.PathParameters> | null,
|
|
5290
|
+
data?: any,
|
|
5291
|
+
config?: AxiosRequestConfig
|
|
5292
|
+
): OperationResponse<Paths.DeleteNotification.Responses.$204>
|
|
5293
|
+
}
|
|
5107
5294
|
['/operations']: {
|
|
5108
5295
|
/**
|
|
5109
5296
|
* atomic_operations - Perform atomic operations
|
|
@@ -5141,6 +5328,7 @@ export interface PathsDictionary {
|
|
|
5141
5328
|
|
|
5142
5329
|
export type Client = OpenAPIClient<OperationMethods, PathsDictionary>
|
|
5143
5330
|
|
|
5331
|
+
|
|
5144
5332
|
export type AccessToken = Components.Schemas.AccessToken;
|
|
5145
5333
|
export type Action = Components.Schemas.Action;
|
|
5146
5334
|
export type ActionAttributes = Components.Schemas.ActionAttributes;
|
|
@@ -5157,6 +5345,7 @@ export type ActionTypes = Components.Schemas.ActionTypes;
|
|
|
5157
5345
|
export type Actions = Components.Schemas.Actions;
|
|
5158
5346
|
export type AdministrableResources = Components.Schemas.AdministrableResources;
|
|
5159
5347
|
export type BroadcastEvent = Components.Schemas.BroadcastEvent;
|
|
5348
|
+
export type BroadcastToEvent = Components.Schemas.BroadcastToEvent;
|
|
5160
5349
|
export type CalculationAction = Components.Schemas.CalculationAction;
|
|
5161
5350
|
export type Case = Components.Schemas.Case;
|
|
5162
5351
|
export type CaseActivityLog = Components.Schemas.CaseActivityLog;
|
|
@@ -5264,6 +5453,14 @@ export type NoteInclusions = Components.Schemas.NoteInclusions;
|
|
|
5264
5453
|
export type NoteRelationships = Components.Schemas.NoteRelationships;
|
|
5265
5454
|
export type Notes = Components.Schemas.Notes;
|
|
5266
5455
|
export type NotesRelationship = Components.Schemas.NotesRelationship;
|
|
5456
|
+
export type Notification = Components.Schemas.Notification;
|
|
5457
|
+
export type NotificationAttributes = Components.Schemas.NotificationAttributes;
|
|
5458
|
+
export type NotificationData = Components.Schemas.NotificationData;
|
|
5459
|
+
export type NotificationInclusion = Components.Schemas.NotificationInclusion;
|
|
5460
|
+
export type NotificationInclusions = Components.Schemas.NotificationInclusions;
|
|
5461
|
+
export type NotificationRelationships = Components.Schemas.NotificationRelationships;
|
|
5462
|
+
export type Notifications = Components.Schemas.Notifications;
|
|
5463
|
+
export type NotificationsRelationship = Components.Schemas.NotificationsRelationship;
|
|
5267
5464
|
export type OidcConfig = Components.Schemas.OidcConfig;
|
|
5268
5465
|
export type OperationTypes = Components.Schemas.OperationTypes;
|
|
5269
5466
|
export type PasswordGrant = Components.Schemas.PasswordGrant;
|
|
@@ -5341,6 +5538,7 @@ export type TaskCreateAttributes = Components.Schemas.TaskCreateAttributes;
|
|
|
5341
5538
|
export type TaskData = Components.Schemas.TaskData;
|
|
5342
5539
|
export type TaskInclusion = Components.Schemas.TaskInclusion;
|
|
5343
5540
|
export type TaskInclusions = Components.Schemas.TaskInclusions;
|
|
5541
|
+
export type TaskRelationship = Components.Schemas.TaskRelationship;
|
|
5344
5542
|
export type TaskRelationships = Components.Schemas.TaskRelationships;
|
|
5345
5543
|
export type Tasks = Components.Schemas.Tasks;
|
|
5346
5544
|
export type TasksRelationship = Components.Schemas.TasksRelationship;
|