@iblai/iblai-api 4.488.0-ai → 4.489.0-ai

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.
Files changed (33) hide show
  1. package/dist/index.cjs.js +172 -45
  2. package/dist/index.cjs.js.map +1 -1
  3. package/dist/index.esm.js +173 -46
  4. package/dist/index.esm.js.map +1 -1
  5. package/dist/index.umd.js +172 -45
  6. package/dist/index.umd.js.map +1 -1
  7. package/dist/types/index.d.ts +6 -1
  8. package/dist/types/models/ChannelIdentity.d.ts +10 -0
  9. package/dist/types/models/ChannelIdentityPreview.d.ts +12 -0
  10. package/dist/types/models/ChannelIdentityRedeem.d.ts +6 -0
  11. package/dist/types/models/LinkedViaEnum.d.ts +8 -0
  12. package/dist/types/models/NotificationTemplateDetail.d.ts +3 -2
  13. package/dist/types/models/NotificationTemplateList.d.ts +3 -2
  14. package/dist/types/models/PaginatedChannelIdentities.d.ts +7 -0
  15. package/dist/types/models/PatchedNotificationTemplateDetail.d.ts +3 -2
  16. package/dist/types/models/{Type6d9Enum.d.ts → TypeCb4Enum.d.ts} +3 -1
  17. package/dist/types/services/V1AgentsService.d.ts +2 -2
  18. package/dist/types/services/V1ChannelsService.d.ts +88 -0
  19. package/package.json +1 -1
  20. package/sdk_schema.yml +320 -6
  21. package/src/core/OpenAPI.ts +1 -1
  22. package/src/index.ts +6 -1
  23. package/src/models/ChannelIdentity.ts +15 -0
  24. package/src/models/ChannelIdentityPreview.ts +17 -0
  25. package/src/models/ChannelIdentityRedeem.ts +11 -0
  26. package/src/models/LinkedViaEnum.ts +12 -0
  27. package/src/models/NotificationTemplateDetail.ts +3 -2
  28. package/src/models/NotificationTemplateList.ts +3 -2
  29. package/src/models/PaginatedChannelIdentities.ts +12 -0
  30. package/src/models/PatchedNotificationTemplateDetail.ts +3 -2
  31. package/src/models/{Type6d9Enum.ts → TypeCb4Enum.ts} +3 -1
  32. package/src/services/V1AgentsService.ts +2 -2
  33. package/src/services/V1ChannelsService.ts +171 -0
@@ -1,6 +1,6 @@
1
1
  import type { BlankEnum } from './BlankEnum';
2
2
  import type { NullEnum } from './NullEnum';
3
- import type { Type6d9Enum } from './Type6d9Enum';
3
+ import type { TypeCb4Enum } from './TypeCb4Enum';
4
4
  /**
5
5
  * Serializer for listing notification templates with inheritance info
6
6
  */
@@ -16,6 +16,7 @@ export type NotificationTemplateList = {
16
16
  * * `ACTIVITY_NEW_CONTENT` - Activity New Content
17
17
  * * `ADMIN_NOTIF_COURSE_ENROLLMENT` - Admin Notif Course Enrollment
18
18
  * * `APP_REGISTRATION` - App Registration
19
+ * * `CHANNEL_ACCOUNT_LINKED` - Channel Account Linked
19
20
  * * `COURSE_INVITATION` - Course Invitation
20
21
  * * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
21
22
  * * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
@@ -52,7 +53,7 @@ export type NotificationTemplateList = {
52
53
  * * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
53
54
  * * `COURSES_PROGRESS_SUMMARY` - User Progress Summary
54
55
  */
55
- type?: (Type6d9Enum | BlankEnum | NullEnum) | null;
56
+ type?: (TypeCb4Enum | BlankEnum | NullEnum) | null;
56
57
  /**
57
58
  * A friendly name for the notification template.
58
59
  */
@@ -0,0 +1,7 @@
1
+ import type { ChannelIdentity } from './ChannelIdentity';
2
+ export type PaginatedChannelIdentities = {
3
+ results: Array<ChannelIdentity>;
4
+ count: number;
5
+ next_page: number | null;
6
+ previous_page: number | null;
7
+ };
@@ -6,7 +6,7 @@ import type { HumanSupportRecipientModeEnum } from './HumanSupportRecipientModeE
6
6
  import type { NullEnum } from './NullEnum';
7
7
  import type { RecipientsRecipientModeEnum } from './RecipientsRecipientModeEnum';
8
8
  import type { Spa } from './Spa';
9
- import type { Type6d9Enum } from './Type6d9Enum';
9
+ import type { TypeCb4Enum } from './TypeCb4Enum';
10
10
  /**
11
11
  * Serializer for detailed template view and editing
12
12
  */
@@ -22,6 +22,7 @@ export type PatchedNotificationTemplateDetail = {
22
22
  * * `ACTIVITY_NEW_CONTENT` - Activity New Content
23
23
  * * `ADMIN_NOTIF_COURSE_ENROLLMENT` - Admin Notif Course Enrollment
24
24
  * * `APP_REGISTRATION` - App Registration
25
+ * * `CHANNEL_ACCOUNT_LINKED` - Channel Account Linked
25
26
  * * `COURSE_INVITATION` - Course Invitation
26
27
  * * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
27
28
  * * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
@@ -58,7 +59,7 @@ export type PatchedNotificationTemplateDetail = {
58
59
  * * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
59
60
  * * `COURSES_PROGRESS_SUMMARY` - User Progress Summary
60
61
  */
61
- readonly type?: (Type6d9Enum | NullEnum) | null;
62
+ readonly type?: (TypeCb4Enum | NullEnum) | null;
62
63
  /**
63
64
  * Template display name
64
65
  */
@@ -3,6 +3,7 @@
3
3
  * * `ACTIVITY_NEW_CONTENT` - Activity New Content
4
4
  * * `ADMIN_NOTIF_COURSE_ENROLLMENT` - Admin Notif Course Enrollment
5
5
  * * `APP_REGISTRATION` - App Registration
6
+ * * `CHANNEL_ACCOUNT_LINKED` - Channel Account Linked
6
7
  * * `COURSE_INVITATION` - Course Invitation
7
8
  * * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
8
9
  * * `COURSE_LICENSE_GROUP_ASSIGNMENT` - Course License Group Assignment
@@ -39,11 +40,12 @@
39
40
  * * `USER_NOTIF_USER_REGISTRATION` - User Notif User Registration
40
41
  * * `COURSES_PROGRESS_SUMMARY` - User Progress Summary
41
42
  */
42
- export declare enum Type6d9Enum {
43
+ export declare enum TypeCb4Enum {
43
44
  ACTIVITY_COURSE_MILESTONE = "ACTIVITY_COURSE_MILESTONE",
44
45
  ACTIVITY_NEW_CONTENT = "ACTIVITY_NEW_CONTENT",
45
46
  ADMIN_NOTIF_COURSE_ENROLLMENT = "ADMIN_NOTIF_COURSE_ENROLLMENT",
46
47
  APP_REGISTRATION = "APP_REGISTRATION",
48
+ CHANNEL_ACCOUNT_LINKED = "CHANNEL_ACCOUNT_LINKED",
47
49
  COURSE_INVITATION = "COURSE_INVITATION",
48
50
  COURSE_LICENSE_ASSIGNMENT = "COURSE_LICENSE_ASSIGNMENT",
49
51
  COURSE_LICENSE_GROUP_ASSIGNMENT = "COURSE_LICENSE_GROUP_ASSIGNMENT",
@@ -123,8 +123,8 @@ export declare class V1AgentsService {
123
123
  }): CancelablePromise<PaginatedChannelAllowEntries>;
124
124
  /**
125
125
  * Allow a sender to reach an agent channel
126
- * The sender id is normalised to the form the channel's connector reads. Allowing a sender doesn't link them to a user: identity and RBAC still apply. Requires Ibl.Mentor/AgentChannelAccess/action.
127
- * @returns ChannelAllowEntry
126
+ * The sender id is normalised to the form the channel's connector reads. Allowing a sender doesn't link them to a user: identity and RBAC still apply. A sender already allowed through pairing or email becomes an admin's entry, which unlinking keeps. Requires Ibl.Mentor/AgentChannelAccess/action.
127
+ * @returns ChannelAllowEntry Already allowed through pairing or email; now an admin's
128
128
  * @throws ApiError
129
129
  */
130
130
  static v1AgentsChannelsAllowEntriesCreate({ agentId, channel, requestBody, iblaiOrg, }: {
@@ -1,7 +1,11 @@
1
1
  import type { ChannelCredential } from '../models/ChannelCredential';
2
2
  import type { ChannelCredentialCreate } from '../models/ChannelCredentialCreate';
3
+ import type { ChannelIdentity } from '../models/ChannelIdentity';
4
+ import type { ChannelIdentityPreview } from '../models/ChannelIdentityPreview';
5
+ import type { ChannelIdentityRedeem } from '../models/ChannelIdentityRedeem';
3
6
  import type { PaginatedChannelCatalog } from '../models/PaginatedChannelCatalog';
4
7
  import type { PaginatedChannelCredentials } from '../models/PaginatedChannelCredentials';
8
+ import type { PaginatedChannelIdentities } from '../models/PaginatedChannelIdentities';
5
9
  import type { PatchedChannelCredentialUpdate } from '../models/PatchedChannelCredentialUpdate';
6
10
  import type { CancelablePromise } from '../core/CancelablePromise';
7
11
  export declare class V1ChannelsService {
@@ -107,4 +111,88 @@ export declare class V1ChannelsService {
107
111
  */
108
112
  iblaiOrg?: string;
109
113
  }): CancelablePromise<void>;
114
+ /**
115
+ * List a user's linked chat accounts
116
+ * The chat accounts linked to the target user on this platform, newest first. Requires Ibl.Mentor/ChannelIdentities/list; a user holds it for their own.
117
+ * @returns PaginatedChannelIdentities
118
+ * @throws ApiError
119
+ */
120
+ static v1ChannelsIdentitiesRetrieve({ channel, dateFilter, endDate, iblaiOrg, iblaiUser, startDate, }: {
121
+ /**
122
+ * * `msteams` - Microsoft Teams
123
+ * * `email` - Email
124
+ * * `whatsapp` - WhatsApp
125
+ * * `slack` - Slack
126
+ * * `googlechat` - Google Chat
127
+ * * `twilio` - Twilio SMS
128
+ * * `telegram` - Telegram
129
+ */
130
+ channel?: 'msteams' | 'email' | 'whatsapp' | 'slack' | 'googlechat' | 'twilio' | 'telegram';
131
+ /**
132
+ * * `today` - Today only
133
+ * * `7d` - Last 7 days
134
+ * * `30d` - Last 30 days
135
+ * * `90d` - Last 90 days
136
+ * * `all_time` - All time
137
+ * * `custom` - Custom date range
138
+ */
139
+ dateFilter?: 'today' | '7d' | '30d' | '90d' | 'all_time' | 'custom';
140
+ endDate?: string;
141
+ /**
142
+ * Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
143
+ */
144
+ iblaiOrg?: string;
145
+ /**
146
+ * Username whose linked accounts to act on. Defaults to the caller; required for service accounts.
147
+ */
148
+ iblaiUser?: string;
149
+ startDate?: string;
150
+ }): CancelablePromise<PaginatedChannelIdentities>;
151
+ /**
152
+ * Link a chat account by redeeming a pairing code
153
+ * Links the chat account the agent's bot sent the code to, and lets it reach that agent. Call the preview first and ask the user to confirm the account is theirs. For the caller only: iblai-user may only name the caller, and service accounts can't redeem. Requires an active membership of the platform and Ibl.Mentor/ChannelIdentities/action, which a user holds for their own. Attempts are limited per hour.
154
+ * @returns ChannelIdentity
155
+ * @throws ApiError
156
+ */
157
+ static v1ChannelsIdentitiesCreate({ requestBody, iblaiOrg, iblaiUser, }: {
158
+ requestBody: ChannelIdentityRedeem;
159
+ /**
160
+ * Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
161
+ */
162
+ iblaiOrg?: string;
163
+ /**
164
+ * Username whose linked accounts to act on. Defaults to the caller; required for service accounts.
165
+ */
166
+ iblaiUser?: string;
167
+ }): CancelablePromise<ChannelIdentity>;
168
+ /**
169
+ * Unlink a chat account
170
+ * The account stops acting as its user and leaves the allowlists it joined by pairing or email auto-link; entries an admin added stay. Requires Ibl.Mentor/ChannelIdentities/delete; a user holds it for their own.
171
+ * @returns void
172
+ * @throws ApiError
173
+ */
174
+ static v1ChannelsIdentitiesDestroy({ identityId, iblaiOrg, }: {
175
+ identityId: number;
176
+ /**
177
+ * Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
178
+ */
179
+ iblaiOrg?: string;
180
+ }): CancelablePromise<void>;
181
+ /**
182
+ * Preview the chat account a pairing code would link
183
+ * Returns the channel, chat account and agent the code was sent for, changing nothing, so the user can confirm the account is theirs before redeeming. Only phone numbers and email addresses are recognisable; on other channels the page must also say: only enter a code the bot sent to you, never one someone gave you. Same access, refusals and hourly attempt limit as redeeming, which it counts toward. A POST, so the code stays out of URLs and logs.
184
+ * @returns ChannelIdentityPreview
185
+ * @throws ApiError
186
+ */
187
+ static v1ChannelsIdentitiesPreviewCreate({ requestBody, iblaiOrg, iblaiUser, }: {
188
+ requestBody: ChannelIdentityRedeem;
189
+ /**
190
+ * Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
191
+ */
192
+ iblaiOrg?: string;
193
+ /**
194
+ * Username whose linked accounts to act on. Defaults to the caller; required for service accounts.
195
+ */
196
+ iblaiUser?: string;
197
+ }): CancelablePromise<ChannelIdentityPreview>;
110
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iblai/iblai-api",
3
- "version": "4.488.0-ai",
3
+ "version": "4.489.0-ai",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.esm.js",
6
6
  "type": "module",
package/sdk_schema.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  openapi: 3.0.3
2
2
  info:
3
3
  title: ibl-data-manager
4
- version: 4.488.0-ai-plus
4
+ version: 4.489.0-ai-plus
5
5
  description: API for iblai
6
6
  paths:
7
7
  /api/ai-account/connected-services/callback/:
@@ -89952,7 +89952,7 @@ paths:
89952
89952
  description: No such agent or channel, or not readable
89953
89953
  post:
89954
89954
  operationId: v1_agents_channels_allow_entries_create
89955
- description: 'The sender id is normalised to the form the channel''s connector reads. Allowing a sender doesn''t link them to a user: identity and RBAC still apply. Requires Ibl.Mentor/AgentChannelAccess/action.'
89955
+ description: 'The sender id is normalised to the form the channel''s connector reads. Allowing a sender doesn''t link them to a user: identity and RBAC still apply. A sender already allowed through pairing or email becomes an admin''s entry, which unlinking keeps. Requires Ibl.Mentor/AgentChannelAccess/action.'
89956
89956
  summary: Allow a sender to reach an agent channel
89957
89957
  parameters:
89958
89958
  - in: path
@@ -90008,6 +90008,12 @@ paths:
90008
90008
  schema:
90009
90009
  $ref: '#/components/schemas/ChannelAllowEntry'
90010
90010
  description: ''
90011
+ '200':
90012
+ content:
90013
+ application/json:
90014
+ schema:
90015
+ $ref: '#/components/schemas/ChannelAllowEntry'
90016
+ description: Already allowed through pairing or email; now an admin's
90011
90017
  '400':
90012
90018
  description: Invalid or already allowed sender
90013
90019
  '404':
@@ -90474,6 +90480,222 @@ paths:
90474
90480
  description: An agent channel uses the credential
90475
90481
  '404':
90476
90482
  description: No such credential on this platform, or not readable
90483
+ /v1/channels/identities:
90484
+ get:
90485
+ operationId: v1_channels_identities_retrieve
90486
+ description: The chat accounts linked to the target user on this platform, newest first. Requires Ibl.Mentor/ChannelIdentities/list; a user holds it for their own.
90487
+ summary: List a user's linked chat accounts
90488
+ parameters:
90489
+ - in: query
90490
+ name: channel
90491
+ schema:
90492
+ enum:
90493
+ - msteams
90494
+ - email
90495
+ - whatsapp
90496
+ - slack
90497
+ - googlechat
90498
+ - twilio
90499
+ - telegram
90500
+ type: string
90501
+ minLength: 1
90502
+ description: '* `msteams` - Microsoft Teams
90503
+
90504
+ * `email` - Email
90505
+
90506
+ * `whatsapp` - WhatsApp
90507
+
90508
+ * `slack` - Slack
90509
+
90510
+ * `googlechat` - Google Chat
90511
+
90512
+ * `twilio` - Twilio SMS
90513
+
90514
+ * `telegram` - Telegram'
90515
+ - in: query
90516
+ name: date_filter
90517
+ schema:
90518
+ enum:
90519
+ - today
90520
+ - 7d
90521
+ - 30d
90522
+ - 90d
90523
+ - all_time
90524
+ - custom
90525
+ type: string
90526
+ minLength: 1
90527
+ description: '* `today` - Today only
90528
+
90529
+ * `7d` - Last 7 days
90530
+
90531
+ * `30d` - Last 30 days
90532
+
90533
+ * `90d` - Last 90 days
90534
+
90535
+ * `all_time` - All time
90536
+
90537
+ * `custom` - Custom date range'
90538
+ - in: query
90539
+ name: end_date
90540
+ schema:
90541
+ type: string
90542
+ format: date
90543
+ - in: header
90544
+ name: iblai-org
90545
+ schema:
90546
+ type: string
90547
+ description: Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
90548
+ - in: header
90549
+ name: iblai-user
90550
+ schema:
90551
+ type: string
90552
+ description: Username whose linked accounts to act on. Defaults to the caller; required for service accounts.
90553
+ - in: query
90554
+ name: start_date
90555
+ schema:
90556
+ type: string
90557
+ format: date
90558
+ tags:
90559
+ - v1-channels
90560
+ security:
90561
+ - PlatformApiKeyAuthentication: []
90562
+ responses:
90563
+ '200':
90564
+ content:
90565
+ application/json:
90566
+ schema:
90567
+ $ref: '#/components/schemas/PaginatedChannelIdentities'
90568
+ description: ''
90569
+ '403':
90570
+ description: Not allowed; also any unknown user, unless 404 applies
90571
+ '404':
90572
+ description: No such user, for callers who may list any user's linked accounts and for service accounts
90573
+ post:
90574
+ operationId: v1_channels_identities_create
90575
+ description: 'Links the chat account the agent''s bot sent the code to, and lets it reach that agent. Call the preview first and ask the user to confirm the account is theirs. For the caller only: iblai-user may only name the caller, and service accounts can''t redeem. Requires an active membership of the platform and Ibl.Mentor/ChannelIdentities/action, which a user holds for their own. Attempts are limited per hour.'
90576
+ summary: Link a chat account by redeeming a pairing code
90577
+ parameters:
90578
+ - in: header
90579
+ name: iblai-org
90580
+ schema:
90581
+ type: string
90582
+ description: Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
90583
+ - in: header
90584
+ name: iblai-user
90585
+ schema:
90586
+ type: string
90587
+ description: Username whose linked accounts to act on. Defaults to the caller; required for service accounts.
90588
+ tags:
90589
+ - v1-channels
90590
+ requestBody:
90591
+ content:
90592
+ application/json:
90593
+ schema:
90594
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90595
+ application/scim+json:
90596
+ schema:
90597
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90598
+ application/x-www-form-urlencoded:
90599
+ schema:
90600
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90601
+ multipart/form-data:
90602
+ schema:
90603
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90604
+ '*/*':
90605
+ schema:
90606
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90607
+ required: true
90608
+ security:
90609
+ - PlatformApiKeyAuthentication: []
90610
+ responses:
90611
+ '201':
90612
+ content:
90613
+ application/json:
90614
+ schema:
90615
+ $ref: '#/components/schemas/ChannelIdentity'
90616
+ description: ''
90617
+ '400':
90618
+ description: The code is invalid or has expired
90619
+ '403':
90620
+ description: Not the caller's own account
90621
+ '429':
90622
+ description: Too many attempts this hour
90623
+ /v1/channels/identities/{identity_id}:
90624
+ delete:
90625
+ operationId: v1_channels_identities_destroy
90626
+ description: The account stops acting as its user and leaves the allowlists it joined by pairing or email auto-link; entries an admin added stay. Requires Ibl.Mentor/ChannelIdentities/delete; a user holds it for their own.
90627
+ summary: Unlink a chat account
90628
+ parameters:
90629
+ - in: header
90630
+ name: iblai-org
90631
+ schema:
90632
+ type: string
90633
+ description: Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
90634
+ - in: path
90635
+ name: identity_id
90636
+ schema:
90637
+ type: integer
90638
+ required: true
90639
+ tags:
90640
+ - v1-channels
90641
+ security:
90642
+ - PlatformApiKeyAuthentication: []
90643
+ responses:
90644
+ '204':
90645
+ description: No response body
90646
+ '404':
90647
+ description: No such linked account, or not visible
90648
+ /v1/channels/identities/preview:
90649
+ post:
90650
+ operationId: v1_channels_identities_preview_create
90651
+ description: 'Returns the channel, chat account and agent the code was sent for, changing nothing, so the user can confirm the account is theirs before redeeming. Only phone numbers and email addresses are recognisable; on other channels the page must also say: only enter a code the bot sent to you, never one someone gave you. Same access, refusals and hourly attempt limit as redeeming, which it counts toward. A POST, so the code stays out of URLs and logs.'
90652
+ summary: Preview the chat account a pairing code would link
90653
+ parameters:
90654
+ - in: header
90655
+ name: iblai-org
90656
+ schema:
90657
+ type: string
90658
+ description: Platform key. Required for service accounts. Other callers are scoped to their token's platform and get 403 if this names another.
90659
+ - in: header
90660
+ name: iblai-user
90661
+ schema:
90662
+ type: string
90663
+ description: Username whose linked accounts to act on. Defaults to the caller; required for service accounts.
90664
+ tags:
90665
+ - v1-channels
90666
+ requestBody:
90667
+ content:
90668
+ application/json:
90669
+ schema:
90670
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90671
+ application/scim+json:
90672
+ schema:
90673
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90674
+ application/x-www-form-urlencoded:
90675
+ schema:
90676
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90677
+ multipart/form-data:
90678
+ schema:
90679
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90680
+ '*/*':
90681
+ schema:
90682
+ $ref: '#/components/schemas/ChannelIdentityRedeem'
90683
+ required: true
90684
+ security:
90685
+ - PlatformApiKeyAuthentication: []
90686
+ responses:
90687
+ '200':
90688
+ content:
90689
+ application/json:
90690
+ schema:
90691
+ $ref: '#/components/schemas/ChannelIdentityPreview'
90692
+ description: ''
90693
+ '400':
90694
+ description: The code is invalid or has expired
90695
+ '403':
90696
+ description: Not the caller's own account
90697
+ '429':
90698
+ description: Too many attempts this hour
90477
90699
  /v1/courses/metadata:
90478
90700
  get:
90479
90701
  operationId: v1_courses_metadata_retrieve
@@ -94835,6 +95057,61 @@ components:
94835
95057
  * `twilio` - Twilio SMS
94836
95058
 
94837
95059
  * `telegram` - Telegram'
95060
+ ChannelIdentity:
95061
+ type: object
95062
+ properties:
95063
+ identity_id:
95064
+ type: integer
95065
+ readOnly: true
95066
+ channel:
95067
+ $ref: '#/components/schemas/ChannelEnum'
95068
+ external_id:
95069
+ type: string
95070
+ maxLength: 255
95071
+ linked_via:
95072
+ $ref: '#/components/schemas/LinkedViaEnum'
95073
+ created_at:
95074
+ type: string
95075
+ format: date-time
95076
+ readOnly: true
95077
+ last_seen_at:
95078
+ type: string
95079
+ format: date-time
95080
+ nullable: true
95081
+ required:
95082
+ - channel
95083
+ - created_at
95084
+ - external_id
95085
+ - identity_id
95086
+ - linked_via
95087
+ ChannelIdentityPreview:
95088
+ type: object
95089
+ description: What redeeming a code would link, for the user to confirm first.
95090
+ properties:
95091
+ channel:
95092
+ type: string
95093
+ external_id:
95094
+ type: string
95095
+ description: The chat account the code was sent to.
95096
+ agent_id:
95097
+ type: string
95098
+ format: uuid
95099
+ agent_name:
95100
+ type: string
95101
+ required:
95102
+ - agent_id
95103
+ - agent_name
95104
+ - channel
95105
+ - external_id
95106
+ ChannelIdentityRedeem:
95107
+ type: object
95108
+ properties:
95109
+ code:
95110
+ type: string
95111
+ description: The pairing code the agent's bot sent to the chat account.
95112
+ maxLength: 32
95113
+ required:
95114
+ - code
94838
95115
  ChannelPairingRequest:
94839
95116
  type: object
94840
95117
  properties:
@@ -104252,6 +104529,14 @@ components:
104252
104529
  required:
104253
104530
  - is_linked
104254
104531
  - mentor_unique_id
104532
+ LinkedViaEnum:
104533
+ enum:
104534
+ - pairing
104535
+ - auto_email
104536
+ type: string
104537
+ description: '* `pairing` - Pairing code
104538
+
104539
+ * `auto_email` - Email auto-link'
104255
104540
  LlmProviderEnum:
104256
104541
  enum:
104257
104542
  - openai
@@ -109078,6 +109363,8 @@ components:
109078
109363
 
109079
109364
  * `APP_REGISTRATION` - App Registration
109080
109365
 
109366
+ * `CHANNEL_ACCOUNT_LINKED` - Channel Account Linked
109367
+
109081
109368
  * `COURSE_INVITATION` - Course Invitation
109082
109369
 
109083
109370
  * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
@@ -109148,7 +109435,7 @@ components:
109148
109435
 
109149
109436
  * `COURSES_PROGRESS_SUMMARY` - User Progress Summary'
109150
109437
  oneOf:
109151
- - $ref: '#/components/schemas/Type6d9Enum'
109438
+ - $ref: '#/components/schemas/TypeCb4Enum'
109152
109439
  - $ref: '#/components/schemas/NullEnum'
109153
109440
  name:
109154
109441
  type: string
@@ -109610,6 +109897,8 @@ components:
109610
109897
 
109611
109898
  * `APP_REGISTRATION` - App Registration
109612
109899
 
109900
+ * `CHANNEL_ACCOUNT_LINKED` - Channel Account Linked
109901
+
109613
109902
  * `COURSE_INVITATION` - Course Invitation
109614
109903
 
109615
109904
  * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
@@ -109680,7 +109969,7 @@ components:
109680
109969
 
109681
109970
  * `COURSES_PROGRESS_SUMMARY` - User Progress Summary'
109682
109971
  oneOf:
109683
- - $ref: '#/components/schemas/Type6d9Enum'
109972
+ - $ref: '#/components/schemas/TypeCb4Enum'
109684
109973
  - $ref: '#/components/schemas/BlankEnum'
109685
109974
  - $ref: '#/components/schemas/NullEnum'
109686
109975
  name:
@@ -110773,6 +111062,26 @@ components:
110773
111062
  - next_page
110774
111063
  - previous_page
110775
111064
  - results
111065
+ PaginatedChannelIdentities:
111066
+ type: object
111067
+ properties:
111068
+ results:
111069
+ type: array
111070
+ items:
111071
+ $ref: '#/components/schemas/ChannelIdentity'
111072
+ count:
111073
+ type: integer
111074
+ next_page:
111075
+ type: integer
111076
+ nullable: true
111077
+ previous_page:
111078
+ type: integer
111079
+ nullable: true
111080
+ required:
111081
+ - count
111082
+ - next_page
111083
+ - previous_page
111084
+ - results
110776
111085
  PaginatedChannelPairingRequests:
110777
111086
  type: object
110778
111087
  properties:
@@ -114992,6 +115301,8 @@ components:
114992
115301
 
114993
115302
  * `APP_REGISTRATION` - App Registration
114994
115303
 
115304
+ * `CHANNEL_ACCOUNT_LINKED` - Channel Account Linked
115305
+
114995
115306
  * `COURSE_INVITATION` - Course Invitation
114996
115307
 
114997
115308
  * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
@@ -115062,7 +115373,7 @@ components:
115062
115373
 
115063
115374
  * `COURSES_PROGRESS_SUMMARY` - User Progress Summary'
115064
115375
  oneOf:
115065
- - $ref: '#/components/schemas/Type6d9Enum'
115376
+ - $ref: '#/components/schemas/TypeCb4Enum'
115066
115377
  - $ref: '#/components/schemas/NullEnum'
115067
115378
  name:
115068
115379
  type: string
@@ -130260,12 +130571,13 @@ components:
130260
130571
  * `textarea` - textarea
130261
130572
 
130262
130573
  * `checkbox` - checkbox'
130263
- Type6d9Enum:
130574
+ TypeCb4Enum:
130264
130575
  enum:
130265
130576
  - ACTIVITY_COURSE_MILESTONE
130266
130577
  - ACTIVITY_NEW_CONTENT
130267
130578
  - ADMIN_NOTIF_COURSE_ENROLLMENT
130268
130579
  - APP_REGISTRATION
130580
+ - CHANNEL_ACCOUNT_LINKED
130269
130581
  - COURSE_INVITATION
130270
130582
  - COURSE_LICENSE_ASSIGNMENT
130271
130583
  - COURSE_LICENSE_GROUP_ASSIGNMENT
@@ -130310,6 +130622,8 @@ components:
130310
130622
 
130311
130623
  * `APP_REGISTRATION` - App Registration
130312
130624
 
130625
+ * `CHANNEL_ACCOUNT_LINKED` - Channel Account Linked
130626
+
130313
130627
  * `COURSE_INVITATION` - Course Invitation
130314
130628
 
130315
130629
  * `COURSE_LICENSE_ASSIGNMENT` - Course License Assignment
@@ -21,7 +21,7 @@ export type OpenAPIConfig = {
21
21
 
22
22
  export const OpenAPI: OpenAPIConfig = {
23
23
  BASE: 'https://base.manager.iblai.app',
24
- VERSION: '4.488.0-ai-plus',
24
+ VERSION: '4.489.0-ai-plus',
25
25
  WITH_CREDENTIALS: false,
26
26
  CREDENTIALS: 'include',
27
27
  TOKEN: undefined,
package/src/index.ts CHANGED
@@ -109,6 +109,9 @@ export type { ChannelCatalogEntry } from './models/ChannelCatalogEntry';
109
109
  export type { ChannelCredential } from './models/ChannelCredential';
110
110
  export type { ChannelCredentialCreate } from './models/ChannelCredentialCreate';
111
111
  export { ChannelEnum } from './models/ChannelEnum';
112
+ export type { ChannelIdentity } from './models/ChannelIdentity';
113
+ export type { ChannelIdentityPreview } from './models/ChannelIdentityPreview';
114
+ export type { ChannelIdentityRedeem } from './models/ChannelIdentityRedeem';
112
115
  export type { ChannelPairingRequest } from './models/ChannelPairingRequest';
113
116
  export { ChannelPairingRequestStatusEnum } from './models/ChannelPairingRequestStatusEnum';
114
117
  export type { ChatCompletionRequest } from './models/ChatCompletionRequest';
@@ -426,6 +429,7 @@ export type { LearnerSummary } from './models/LearnerSummary';
426
429
  export { LifecycleStageEnum } from './models/LifecycleStageEnum';
427
430
  export type { LinkCourseRequest } from './models/LinkCourseRequest';
428
431
  export type { LinkCourseResponse } from './models/LinkCourseResponse';
432
+ export { LinkedViaEnum } from './models/LinkedViaEnum';
429
433
  export type { LLMCredentialRequest } from './models/LLMCredentialRequest';
430
434
  export type { LLMCredentialResponse } from './models/LLMCredentialResponse';
431
435
  export type { LLMCredentialSchema } from './models/LLMCredentialSchema';
@@ -583,6 +587,7 @@ export type { PaginatedAuditLogEntryList } from './models/PaginatedAuditLogEntry
583
587
  export type { PaginatedChannelAllowEntries } from './models/PaginatedChannelAllowEntries';
584
588
  export type { PaginatedChannelCatalog } from './models/PaginatedChannelCatalog';
585
589
  export type { PaginatedChannelCredentials } from './models/PaginatedChannelCredentials';
590
+ export type { PaginatedChannelIdentities } from './models/PaginatedChannelIdentities';
586
591
  export type { PaginatedChannelPairingRequests } from './models/PaginatedChannelPairingRequests';
587
592
  export type { PaginatedChatRunTrackerList } from './models/PaginatedChatRunTrackerList';
588
593
  export type { PaginatedChatSessionActivityList } from './models/PaginatedChatSessionActivityList';
@@ -1166,7 +1171,7 @@ export type { TriggerRequest } from './models/TriggerRequest';
1166
1171
  export type { TriggerResponse } from './models/TriggerResponse';
1167
1172
  export { TtsProviderEnum } from './models/TtsProviderEnum';
1168
1173
  export { Type240Enum } from './models/Type240Enum';
1169
- export { Type6d9Enum } from './models/Type6d9Enum';
1174
+ export { TypeCb4Enum } from './models/TypeCb4Enum';
1170
1175
  export { UiModeEnum } from './models/UiModeEnum';
1171
1176
  export type { UpdateXblock } from './models/UpdateXblock';
1172
1177
  export type { UploadedImage } from './models/UploadedImage';