@webitel/api-services 0.1.41 → 0.1.43

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 (211) hide show
  1. package/package.json +2 -2
  2. package/src/gen/_models/apiGeneratePasswordRequest.ts +12 -0
  3. package/src/gen/_models/apiGeneratePasswordRequest.zod.ts +12 -0
  4. package/src/gen/_models/{updateUser2BodyProfile.ts → apiGeneratePasswordResponse.ts} +3 -3
  5. package/src/gen/_models/{updateUser2BodyProfile.zod.ts → apiGeneratePasswordResponse.zod.ts} +3 -3
  6. package/src/gen/_models/{updateUserBody.ts → apiInputUser.ts} +9 -15
  7. package/src/gen/_models/{updateUserBody.zod.ts → apiInputUser.zod.ts} +9 -15
  8. package/src/gen/_models/apiInputUserBody.ts +12 -0
  9. package/src/gen/_models/apiInputUserBody.zod.ts +12 -0
  10. package/src/gen/_models/apiInputUserDevice.ts +13 -0
  11. package/src/gen/_models/apiInputUserDevice.zod.ts +13 -0
  12. package/src/gen/_models/{updateUserBodyProfile.ts → apiInputUserProfile.ts} +1 -1
  13. package/src/gen/_models/{updateUserBodyProfile.zod.ts → apiInputUserProfile.zod.ts} +1 -1
  14. package/src/gen/_models/apiUser.ts +7 -7
  15. package/src/gen/_models/apiUser.zod.ts +7 -7
  16. package/src/gen/_models/apiUserinfo.ts +1 -0
  17. package/src/gen/_models/apiUserinfo.zod.ts +1 -0
  18. package/src/gen/_models/contactsCreateContactError.ts +20 -0
  19. package/src/gen/_models/contactsCreateContactError.zod.ts +20 -0
  20. package/src/gen/_models/contactsCreateContactsBulkResponse.ts +20 -0
  21. package/src/gen/_models/contactsCreateContactsBulkResponse.zod.ts +20 -0
  22. package/src/gen/_models/createContactsParams.ts +13 -0
  23. package/src/gen/_models/createContactsParams.zod.ts +13 -0
  24. package/src/gen/_models/createUserParams.ts +31 -0
  25. package/src/gen/_models/createUserParams.zod.ts +31 -0
  26. package/src/gen/_models/engineSystemSettingName.ts +2 -0
  27. package/src/gen/_models/engineSystemSettingName.zod.ts +2 -0
  28. package/src/gen/_models/index.ts +15 -9
  29. package/src/gen/_models/index.zod.ts +15 -9
  30. package/src/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.ts +49 -0
  31. package/src/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.zod.ts +49 -0
  32. package/src/gen/_models/searchSystemSettingNameItem.ts +2 -0
  33. package/src/gen/_models/searchSystemSettingNameItem.zod.ts +2 -0
  34. package/src/gen/_models/signupParams.ts +5 -0
  35. package/src/gen/_models/signupParams.zod.ts +5 -0
  36. package/src/gen/_models/webitelCasesInputPriority.ts +5 -2
  37. package/src/gen/_models/webitelCasesInputPriority.zod.ts +5 -2
  38. package/src/gen/_models/webitelCasesPriority.ts +10 -7
  39. package/src/gen/_models/webitelCasesPriority.zod.ts +10 -7
  40. package/src/gen/_models/webitelImApiGatewayV1SendContactRequest.ts +2 -0
  41. package/src/gen/_models/webitelImApiGatewayV1SendContactRequest.zod.ts +2 -0
  42. package/src/gen/_models/webitelImApiGatewayV1SendDocumentRequest.ts +2 -0
  43. package/src/gen/_models/webitelImApiGatewayV1SendDocumentRequest.zod.ts +2 -0
  44. package/src/gen/_models/webitelImApiGatewayV1SendImageRequest.ts +2 -0
  45. package/src/gen/_models/webitelImApiGatewayV1SendImageRequest.zod.ts +2 -0
  46. package/src/gen/_models/webitelImApiGatewayV1SendInteractiveMessageRequest.ts +2 -0
  47. package/src/gen/_models/webitelImApiGatewayV1SendInteractiveMessageRequest.zod.ts +2 -0
  48. package/src/gen/_models/webitelImApiGatewayV1SendLocationRequest.ts +2 -0
  49. package/src/gen/_models/webitelImApiGatewayV1SendLocationRequest.zod.ts +2 -0
  50. package/src/gen/_models/webitelImApiGatewayV1SendTextRequest.ts +2 -0
  51. package/src/gen/_models/webitelImApiGatewayV1SendTextRequest.zod.ts +2 -0
  52. package/src/gen/_models/webitelImProviderV1CreateGateRequest.ts +17 -0
  53. package/src/gen/_models/webitelImProviderV1CreateGateRequest.zod.ts +17 -0
  54. package/src/gen/_models/webitelImProviderV1CreateWABAGateRequest.ts +14 -0
  55. package/src/gen/_models/webitelImProviderV1CreateWABAGateRequest.zod.ts +14 -0
  56. package/src/gen/_models/webitelImProviderV1GateResponse.ts +21 -0
  57. package/src/gen/_models/webitelImProviderV1GateResponse.zod.ts +21 -0
  58. package/src/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.ts +1 -0
  59. package/src/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.zod.ts +1 -0
  60. package/src/gen/_models/webitelImProviderV1ProviderSendImageRequest.ts +1 -0
  61. package/src/gen/_models/webitelImProviderV1ProviderSendImageRequest.zod.ts +1 -0
  62. package/src/gen/_models/webitelImProviderV1ProviderSendTextRequest.ts +1 -0
  63. package/src/gen/_models/webitelImProviderV1ProviderSendTextRequest.zod.ts +1 -0
  64. package/src/gen/_models/webitelImProviderV1WhatsAppBusinessAccount.ts +16 -0
  65. package/src/gen/_models/webitelImProviderV1WhatsAppBusinessAccount.zod.ts +16 -0
  66. package/src/gen/auth/auth.msw.ts +18 -0
  67. package/src/gen/auth/auth.zod.ts +8 -0
  68. package/src/gen/cases/cases.msw.ts +1093 -1387
  69. package/src/gen/cases/cases.zod.ts +210 -245
  70. package/src/gen/catalogs/catalogs.msw.ts +836 -1088
  71. package/src/gen/catalogs/catalogs.zod.ts +198 -216
  72. package/src/gen/contacts/contacts.msw.ts +2900 -1
  73. package/src/gen/contacts/contacts.ts +21 -0
  74. package/src/gen/contacts/contacts.zod.ts +2083 -0
  75. package/src/gen/priorities/priorities.msw.ts +408 -534
  76. package/src/gen/priorities/priorities.zod.ts +108 -113
  77. package/src/gen/services/services.msw.ts +613 -802
  78. package/src/gen/services/services.zod.ts +96 -108
  79. package/src/gen/system-setting-service/system-setting-service.zod.ts +16 -0
  80. package/src/gen/users/users.msw.ts +434 -397
  81. package/src/gen/users/users.ts +46 -57
  82. package/src/gen/users/users.zod.ts +443 -459
  83. package/src/gen/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.ts +42 -0
  84. package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.msw.ts +931 -0
  85. package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.ts +27 -0
  86. package/src/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.ts +576 -0
  87. package/src/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.ts +3 -0
  88. package/src/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.msw.ts +94 -19
  89. package/src/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.ts +6 -8
  90. package/src/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.zod.ts +64 -42
  91. package/src/validations/casePriority/casePriority.validations.ts +9 -0
  92. package/src/validations/caseSource/caseSource.validations.ts +7 -16
  93. package/src/validations/caseStatus/caseStatus.validations.ts +8 -0
  94. package/src/validations/caseStatusCondition/caseStatusCondition.validations.ts +10 -0
  95. package/src/validations/index.ts +4 -0
  96. package/src/validations/types.ts +9 -0
  97. package/types/gen/_models/apiGeneratePasswordRequest.d.ts +11 -0
  98. package/types/gen/_models/apiGeneratePasswordRequest.zod.d.ts +11 -0
  99. package/types/gen/_models/apiGeneratePasswordResponse.d.ts +9 -0
  100. package/types/gen/_models/apiGeneratePasswordResponse.zod.d.ts +9 -0
  101. package/types/gen/_models/{updateUserBody.d.ts → apiInputUser.d.ts} +9 -15
  102. package/types/gen/_models/{updateUserBody.zod.d.ts → apiInputUser.zod.d.ts} +9 -15
  103. package/types/gen/_models/apiInputUserBody.d.ts +11 -0
  104. package/types/gen/_models/apiInputUserBody.zod.d.ts +11 -0
  105. package/types/gen/_models/apiInputUserDevice.d.ts +12 -0
  106. package/types/gen/_models/apiInputUserDevice.zod.d.ts +12 -0
  107. package/types/gen/_models/{updateUserBodyProfile.d.ts → apiInputUserProfile.d.ts} +1 -1
  108. package/types/gen/_models/{updateUserBodyProfile.zod.d.ts → apiInputUserProfile.zod.d.ts} +1 -1
  109. package/types/gen/_models/apiUser.d.ts +7 -7
  110. package/types/gen/_models/apiUser.zod.d.ts +7 -7
  111. package/types/gen/_models/apiUserinfo.d.ts +1 -0
  112. package/types/gen/_models/apiUserinfo.zod.d.ts +1 -0
  113. package/types/gen/_models/contactsCreateContactError.d.ts +19 -0
  114. package/types/gen/_models/contactsCreateContactError.zod.d.ts +19 -0
  115. package/types/gen/_models/contactsCreateContactsBulkResponse.d.ts +19 -0
  116. package/types/gen/_models/contactsCreateContactsBulkResponse.zod.d.ts +19 -0
  117. package/types/gen/_models/createContactsParams.d.ts +12 -0
  118. package/types/gen/_models/createContactsParams.zod.d.ts +12 -0
  119. package/types/gen/_models/createUserParams.d.ts +30 -0
  120. package/types/gen/_models/createUserParams.zod.d.ts +30 -0
  121. package/types/gen/_models/engineSystemSettingName.d.ts +2 -0
  122. package/types/gen/_models/engineSystemSettingName.zod.d.ts +2 -0
  123. package/types/gen/_models/index.zod.d.ts +15 -9
  124. package/types/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.d.ts +48 -0
  125. package/types/gen/_models/messageHistorySearchLeftThreadsMessagesHistoryParams.zod.d.ts +48 -0
  126. package/types/gen/_models/searchSystemSettingNameItem.d.ts +2 -0
  127. package/types/gen/_models/searchSystemSettingNameItem.zod.d.ts +2 -0
  128. package/types/gen/_models/signupParams.d.ts +5 -0
  129. package/types/gen/_models/signupParams.zod.d.ts +5 -0
  130. package/types/gen/_models/webitelCasesInputPriority.d.ts +5 -2
  131. package/types/gen/_models/webitelCasesInputPriority.zod.d.ts +5 -2
  132. package/types/gen/_models/webitelCasesPriority.d.ts +10 -7
  133. package/types/gen/_models/webitelCasesPriority.zod.d.ts +10 -7
  134. package/types/gen/_models/webitelImApiGatewayV1SendContactRequest.d.ts +2 -0
  135. package/types/gen/_models/webitelImApiGatewayV1SendContactRequest.zod.d.ts +2 -0
  136. package/types/gen/_models/webitelImApiGatewayV1SendDocumentRequest.d.ts +2 -0
  137. package/types/gen/_models/webitelImApiGatewayV1SendDocumentRequest.zod.d.ts +2 -0
  138. package/types/gen/_models/webitelImApiGatewayV1SendImageRequest.d.ts +2 -0
  139. package/types/gen/_models/webitelImApiGatewayV1SendImageRequest.zod.d.ts +2 -0
  140. package/types/gen/_models/webitelImApiGatewayV1SendInteractiveMessageRequest.d.ts +2 -0
  141. package/types/gen/_models/webitelImApiGatewayV1SendInteractiveMessageRequest.zod.d.ts +2 -0
  142. package/types/gen/_models/webitelImApiGatewayV1SendLocationRequest.d.ts +2 -0
  143. package/types/gen/_models/webitelImApiGatewayV1SendLocationRequest.zod.d.ts +2 -0
  144. package/types/gen/_models/webitelImApiGatewayV1SendTextRequest.d.ts +2 -0
  145. package/types/gen/_models/webitelImApiGatewayV1SendTextRequest.zod.d.ts +2 -0
  146. package/types/gen/_models/webitelImProviderV1CreateGateRequest.d.ts +16 -0
  147. package/types/gen/_models/webitelImProviderV1CreateGateRequest.zod.d.ts +16 -0
  148. package/types/gen/_models/webitelImProviderV1CreateWABAGateRequest.d.ts +13 -0
  149. package/types/gen/_models/webitelImProviderV1CreateWABAGateRequest.zod.d.ts +13 -0
  150. package/types/gen/_models/webitelImProviderV1GateResponse.d.ts +20 -0
  151. package/types/gen/_models/webitelImProviderV1GateResponse.zod.d.ts +20 -0
  152. package/types/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.d.ts +1 -0
  153. package/types/gen/_models/webitelImProviderV1ProviderSendDocumentRequest.zod.d.ts +1 -0
  154. package/types/gen/_models/webitelImProviderV1ProviderSendImageRequest.d.ts +1 -0
  155. package/types/gen/_models/webitelImProviderV1ProviderSendImageRequest.zod.d.ts +1 -0
  156. package/types/gen/_models/webitelImProviderV1ProviderSendTextRequest.d.ts +1 -0
  157. package/types/gen/_models/webitelImProviderV1ProviderSendTextRequest.zod.d.ts +1 -0
  158. package/types/gen/_models/webitelImProviderV1WhatsAppBusinessAccount.d.ts +15 -0
  159. package/types/gen/_models/webitelImProviderV1WhatsAppBusinessAccount.zod.d.ts +15 -0
  160. package/types/gen/auth/auth.zod.d.ts +3 -0
  161. package/types/gen/cases/cases.zod.d.ts +126 -126
  162. package/types/gen/catalogs/catalogs.zod.d.ts +108 -108
  163. package/types/gen/contacts/contacts.d.ts +3 -1
  164. package/types/gen/contacts/contacts.msw.d.ts +3 -1
  165. package/types/gen/contacts/contacts.zod.d.ts +665 -0
  166. package/types/gen/priorities/priorities.zod.d.ts +60 -60
  167. package/types/gen/services/services.zod.d.ts +54 -54
  168. package/types/gen/system-setting-service/system-setting-service.zod.d.ts +16 -0
  169. package/types/gen/users/users.d.ts +8 -25
  170. package/types/gen/users/users.msw.d.ts +7 -5
  171. package/types/gen/users/users.zod.d.ts +136 -139
  172. package/types/gen/webitel-im-api-gateway-v1-message/webitel-im-api-gateway-v1-message.zod.d.ts +30 -0
  173. package/types/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.d.ts +3 -1
  174. package/types/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.msw.d.ts +2 -0
  175. package/types/gen/webitel-im-api-gateway-v1-messagehistory/webitel-im-api-gateway-v1-messagehistory.zod.d.ts +167 -0
  176. package/types/gen/webitel-im-provider-v1-providermessageservice/webitel-im-provider-v1-providermessageservice.zod.d.ts +3 -0
  177. package/types/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.d.ts +3 -3
  178. package/types/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.msw.d.ts +3 -3
  179. package/types/gen/webitel-im-provider-v1-whatsappservice/webitel-im-provider-v1-whatsappservice.zod.d.ts +40 -17
  180. package/types/validations/casePriority/casePriority.validations.d.ts +11 -0
  181. package/types/validations/caseSource/caseSource.validations.d.ts +11 -1
  182. package/types/validations/caseStatus/caseStatus.validations.d.ts +10 -0
  183. package/types/validations/caseStatusCondition/caseStatusCondition.validations.d.ts +13 -0
  184. package/types/validations/index.d.ts +4 -0
  185. package/types/validations/types.d.ts +8 -0
  186. package/src/gen/_models/apiCreateUserRequest.ts +0 -13
  187. package/src/gen/_models/apiCreateUserRequest.zod.ts +0 -13
  188. package/src/gen/_models/updateUser2Body.ts +0 -45
  189. package/src/gen/_models/updateUser2Body.zod.ts +0 -45
  190. package/src/gen/_models/updateUserUserBody.ts +0 -45
  191. package/src/gen/_models/updateUserUserBody.zod.ts +0 -45
  192. package/src/gen/_models/updateUserUserBodyProfile.ts +0 -10
  193. package/src/gen/_models/updateUserUserBodyProfile.zod.ts +0 -10
  194. package/src/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateRequest.ts +0 -17
  195. package/src/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateRequest.zod.ts +0 -17
  196. package/src/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateResponse.ts +0 -14
  197. package/src/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateResponse.zod.ts +0 -14
  198. package/types/gen/_models/apiCreateUserRequest.d.ts +0 -12
  199. package/types/gen/_models/apiCreateUserRequest.zod.d.ts +0 -12
  200. package/types/gen/_models/updateUser2Body.d.ts +0 -44
  201. package/types/gen/_models/updateUser2Body.zod.d.ts +0 -44
  202. package/types/gen/_models/updateUser2BodyProfile.d.ts +0 -9
  203. package/types/gen/_models/updateUser2BodyProfile.zod.d.ts +0 -9
  204. package/types/gen/_models/updateUserUserBody.d.ts +0 -44
  205. package/types/gen/_models/updateUserUserBody.zod.d.ts +0 -44
  206. package/types/gen/_models/updateUserUserBodyProfile.d.ts +0 -9
  207. package/types/gen/_models/updateUserUserBodyProfile.zod.d.ts +0 -9
  208. package/types/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateRequest.d.ts +0 -16
  209. package/types/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateRequest.zod.d.ts +0 -16
  210. package/types/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateResponse.d.ts +0 -13
  211. package/types/gen/_models/webitelImProviderV1ProviderCreateWhatsAppGateResponse.zod.d.ts +0 -13
@@ -487,273 +487,253 @@ export const SearchUsersResponse = zod.object({
487
487
  size: zod.number().optional(),
488
488
  });
489
489
 
490
- export const CreateUserBody = zod.object({
491
- user: zod
492
- .object({
493
- chatName: zod
494
- .string()
495
- .optional()
496
- .describe(
497
- 'The "chat_name" field is used to store the name displayed externally on the platform.\nFor example, "chat_name" is shown when an agent connects to chats with clients.',
498
- ),
499
- contact: zod
500
- .object({
490
+ export const CreateUserQueryParams = zod.object({
491
+ userPassword: zod.string().optional(),
492
+ confirmPassword: zod.string().optional(),
493
+ generateDevice: zod
494
+ .boolean()
495
+ .optional()
496
+ .describe('Generate credentials & assign SIP [device] for NEW [user]'),
497
+ deviceName: zod.string().optional().describe('SIP display name'),
498
+ deviceAccount: zod.string().optional().describe('SIP auth-id'),
499
+ devicePassword: zod.string().optional().describe('SIP password'),
500
+ deviceGeneratePassword: zod
501
+ .boolean()
502
+ .optional()
503
+ .describe('[re]generate SIP password ?'),
504
+ });
505
+
506
+ export const CreateUserBody = zod
507
+ .object({
508
+ chatName: zod
509
+ .string()
510
+ .optional()
511
+ .describe(
512
+ 'The "chat_name" field is used to store the name displayed externally on the platform.\nFor example, "chat_name" is shown when an agent connects to chats with clients.',
513
+ ),
514
+ contact: zod
515
+ .object({
516
+ id: zod.string().optional(),
517
+ name: zod.string().optional(),
518
+ })
519
+ .optional(),
520
+ device: zod
521
+ .object({
522
+ id: zod.string().optional(),
523
+ name: zod.string().optional(),
524
+ })
525
+ .optional(),
526
+ devices: zod
527
+ .array(
528
+ zod.object({
501
529
  id: zod.string().optional(),
502
530
  name: zod.string().optional(),
503
- })
504
- .optional()
505
- .describe('[optional] contact connected to this user'),
506
- createdAt: zod.string().optional(),
507
- createdBy: zod
508
- .object({
531
+ }),
532
+ )
533
+ .optional(),
534
+ email: zod.string().optional(),
535
+ extension: zod.string().optional(),
536
+ forcePasswordChange: zod
537
+ .boolean()
538
+ .optional()
539
+ .describe(
540
+ 'When set to true, the user will be required to change their password on next login.',
541
+ ),
542
+ hotdesks: zod
543
+ .array(
544
+ zod.object({
509
545
  id: zod.string().optional(),
510
546
  name: zod.string().optional(),
511
- })
512
- .optional()
513
- .describe('UserId lookup value.'),
514
- deletedAt: zod.string().optional(),
515
- deletedBy: zod
516
- .object({
547
+ }),
548
+ )
549
+ .optional(),
550
+ license: zod
551
+ .array(
552
+ zod.object({
553
+ expiresAt: zod.string().optional(),
517
554
  id: zod.string().optional(),
555
+ issuedAt: zod.string().optional(),
518
556
  name: zod.string().optional(),
519
- })
520
- .optional()
521
- .describe('UserId lookup value.'),
522
- device: zod
523
- .object({
524
- id: zod.string().optional(),
557
+ prod: zod.string().optional(),
558
+ scope: zod.array(zod.string()).optional(),
559
+ user: zod
560
+ .object({
561
+ id: zod.string().optional(),
562
+ name: zod.string().optional(),
563
+ })
564
+ .optional(),
565
+ }),
566
+ )
567
+ .optional(),
568
+ name: zod.string().optional(),
569
+ password: zod.string().optional(),
570
+ permissions: zod
571
+ .array(
572
+ zod.object({
573
+ id: zod
574
+ .string()
575
+ .optional()
576
+ .describe("[required] e.g.: 'read', 'playback_record_file', ..."),
525
577
  name: zod.string().optional(),
526
- })
527
- .optional(),
528
- devices: zod
529
- .array(
530
- zod.object({
531
- id: zod.string().optional(),
532
- name: zod.string().optional(),
533
- }),
534
- )
535
- .optional()
536
- .describe(
537
- '[editable] list of unique `regular` devices, attached to this user',
538
- ),
539
- email: zod.string().optional(),
540
- extension: zod.string().optional(),
541
- forcePasswordChange: zod
542
- .boolean()
543
- .optional()
544
- .describe(
545
- 'When set to true, the user will be required to change their password on next login.',
546
- ),
547
- hotdesks: zod
548
- .array(
549
- zod.object({
550
- id: zod.string().optional(),
551
- name: zod.string().optional(),
552
- }),
553
- )
554
- .optional(),
555
- id: zod.string().optional(),
556
- license: zod
557
- .array(
558
- zod.object({
559
- expiresAt: zod.string().optional(),
560
- id: zod.string().optional(),
561
- issuedAt: zod.string().optional(),
562
- name: zod.string().optional(),
563
- prod: zod.string().optional(),
564
- scope: zod.array(zod.string()).optional(),
565
- user: zod
566
- .object({
567
- id: zod.string().optional(),
568
- name: zod.string().optional(),
569
- })
570
- .optional(),
571
- }),
572
- )
573
- .optional(),
574
- name: zod.string().optional(),
575
- password: zod.string().optional(),
576
- permissions: zod
577
- .array(
578
- zod.object({
579
- id: zod
580
- .string()
581
- .optional()
582
- .describe("[required] e.g.: 'read', 'playback_record_file', ..."),
583
- name: zod.string().optional(),
584
- usage: zod.string().optional(),
585
- }),
586
- )
587
- .optional(),
588
- presence: zod
589
- .object({
590
- expires: zod.number().optional(),
591
- id: zod.string().optional(),
592
- note: zod.string().optional(),
593
- status: zod.string().optional(),
594
- timestamp: zod.string().optional(),
595
- })
596
- .optional()
597
- .describe(
598
- 'string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]\n string status = 8; // short display status (short description)',
599
- ),
600
- profile: zod.record(zod.string(), zod.string()).optional(),
601
- roles: zod
602
- .array(
603
- zod.object({
604
- id: zod.string().optional(),
605
- name: zod.string().optional(),
606
- }),
607
- )
608
- .optional(),
609
- totpUrl: zod.string().optional(),
610
- updatedAt: zod.string().optional(),
611
- updatedBy: zod
612
- .object({
578
+ usage: zod.string().optional(),
579
+ }),
580
+ )
581
+ .optional(),
582
+ presence: zod
583
+ .object({
584
+ expires: zod.number().optional(),
585
+ id: zod.string().optional(),
586
+ note: zod.string().optional(),
587
+ status: zod.string().optional(),
588
+ timestamp: zod.string().optional(),
589
+ })
590
+ .optional(),
591
+ profile: zod.record(zod.string(), zod.string()).optional(),
592
+ roles: zod
593
+ .array(
594
+ zod.object({
613
595
  id: zod.string().optional(),
614
596
  name: zod.string().optional(),
615
- })
616
- .optional()
617
- .describe('UserId lookup value.'),
618
- username: zod.string().optional(),
619
- })
620
- .optional()
621
- .describe('User profile.'),
622
- });
597
+ }),
598
+ )
599
+ .optional(),
600
+ totpUrl: zod.string().optional(),
601
+ username: zod.string().optional(),
602
+ })
603
+ .describe(
604
+ 'Input of the User profile for Create/Update operations.\nMirrors `User` field numbers 1:1 (wire-compatible), but excludes\nsystem-managed read-only fields (id, audit metadata).',
605
+ );
623
606
 
624
- export const CreateUserResponse = zod.object({
625
- user: zod
626
- .object({
627
- chatName: zod
628
- .string()
629
- .optional()
630
- .describe(
631
- 'The "chat_name" field is used to store the name displayed externally on the platform.\nFor example, "chat_name" is shown when an agent connects to chats with clients.',
632
- ),
633
- contact: zod
634
- .object({
635
- id: zod.string().optional(),
636
- name: zod.string().optional(),
637
- })
638
- .optional()
639
- .describe('[optional] contact connected to this user'),
640
- createdAt: zod.string().optional(),
641
- createdBy: zod
642
- .object({
643
- id: zod.string().optional(),
644
- name: zod.string().optional(),
645
- })
646
- .optional()
647
- .describe('UserId lookup value.'),
648
- deletedAt: zod.string().optional(),
649
- deletedBy: zod
650
- .object({
607
+ export const CreateUserResponse = zod
608
+ .object({
609
+ chatName: zod
610
+ .string()
611
+ .optional()
612
+ .describe(
613
+ 'The "chat_name" field is used to store the name displayed externally on the platform.\nFor example, "chat_name" is shown when an agent connects to chats with clients.',
614
+ ),
615
+ contact: zod
616
+ .object({
617
+ id: zod.string().optional(),
618
+ name: zod.string().optional(),
619
+ })
620
+ .optional()
621
+ .describe('[optional] contact connected to this user'),
622
+ createdAt: zod.string().optional(),
623
+ createdBy: zod
624
+ .object({
625
+ id: zod.string().optional(),
626
+ name: zod.string().optional(),
627
+ })
628
+ .optional()
629
+ .describe('UserId lookup value.'),
630
+ deletedAt: zod.string().optional(),
631
+ deletedBy: zod
632
+ .object({
633
+ id: zod.string().optional(),
634
+ name: zod.string().optional(),
635
+ })
636
+ .optional()
637
+ .describe('UserId lookup value.'),
638
+ device: zod
639
+ .object({
640
+ id: zod.string().optional(),
641
+ name: zod.string().optional(),
642
+ })
643
+ .optional(),
644
+ devices: zod
645
+ .array(
646
+ zod.object({
651
647
  id: zod.string().optional(),
652
648
  name: zod.string().optional(),
653
- })
654
- .optional()
655
- .describe('UserId lookup value.'),
656
- device: zod
657
- .object({
649
+ }),
650
+ )
651
+ .optional()
652
+ .describe(
653
+ '[editable] list of unique `regular` devices, attached to this user',
654
+ ),
655
+ email: zod.string().optional(),
656
+ extension: zod.string().optional(),
657
+ forcePasswordChange: zod
658
+ .boolean()
659
+ .optional()
660
+ .describe(
661
+ 'When set to true, the user will be required to change their password on next login.',
662
+ ),
663
+ hotdesks: zod
664
+ .array(
665
+ zod.object({
658
666
  id: zod.string().optional(),
659
667
  name: zod.string().optional(),
660
- })
661
- .optional(),
662
- devices: zod
663
- .array(
664
- zod.object({
665
- id: zod.string().optional(),
666
- name: zod.string().optional(),
667
- }),
668
- )
669
- .optional()
670
- .describe(
671
- '[editable] list of unique `regular` devices, attached to this user',
672
- ),
673
- email: zod.string().optional(),
674
- extension: zod.string().optional(),
675
- forcePasswordChange: zod
676
- .boolean()
677
- .optional()
678
- .describe(
679
- 'When set to true, the user will be required to change their password on next login.',
680
- ),
681
- hotdesks: zod
682
- .array(
683
- zod.object({
684
- id: zod.string().optional(),
685
- name: zod.string().optional(),
686
- }),
687
- )
688
- .optional(),
689
- id: zod.string().optional(),
690
- license: zod
691
- .array(
692
- zod.object({
693
- expiresAt: zod.string().optional(),
694
- id: zod.string().optional(),
695
- issuedAt: zod.string().optional(),
696
- name: zod.string().optional(),
697
- prod: zod.string().optional(),
698
- scope: zod.array(zod.string()).optional(),
699
- user: zod
700
- .object({
701
- id: zod.string().optional(),
702
- name: zod.string().optional(),
703
- })
704
- .optional(),
705
- }),
706
- )
707
- .optional(),
708
- name: zod.string().optional(),
709
- password: zod.string().optional(),
710
- permissions: zod
711
- .array(
712
- zod.object({
713
- id: zod
714
- .string()
715
- .optional()
716
- .describe("[required] e.g.: 'read', 'playback_record_file', ..."),
717
- name: zod.string().optional(),
718
- usage: zod.string().optional(),
719
- }),
720
- )
721
- .optional(),
722
- presence: zod
723
- .object({
724
- expires: zod.number().optional(),
668
+ }),
669
+ )
670
+ .optional(),
671
+ id: zod.string().optional(),
672
+ license: zod
673
+ .array(
674
+ zod.object({
675
+ expiresAt: zod.string().optional(),
725
676
  id: zod.string().optional(),
726
- note: zod.string().optional(),
727
- status: zod.string().optional(),
728
- timestamp: zod.string().optional(),
729
- })
730
- .optional()
731
- .describe(
732
- 'string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]\n string status = 8; // short display status (short description)',
733
- ),
734
- profile: zod.record(zod.string(), zod.string()).optional(),
735
- roles: zod
736
- .array(
737
- zod.object({
738
- id: zod.string().optional(),
739
- name: zod.string().optional(),
740
- }),
741
- )
742
- .optional(),
743
- totpUrl: zod.string().optional(),
744
- updatedAt: zod.string().optional(),
745
- updatedBy: zod
746
- .object({
677
+ issuedAt: zod.string().optional(),
678
+ name: zod.string().optional(),
679
+ prod: zod.string().optional(),
680
+ scope: zod.array(zod.string()).optional(),
681
+ user: zod
682
+ .object({
683
+ id: zod.string().optional(),
684
+ name: zod.string().optional(),
685
+ })
686
+ .optional(),
687
+ }),
688
+ )
689
+ .optional(),
690
+ name: zod.string().optional(),
691
+ password: zod.string().optional(),
692
+ permissions: zod
693
+ .array(
694
+ zod.object({
695
+ id: zod
696
+ .string()
697
+ .optional()
698
+ .describe("[required] e.g.: 'read', 'playback_record_file', ..."),
699
+ name: zod.string().optional(),
700
+ usage: zod.string().optional(),
701
+ }),
702
+ )
703
+ .optional(),
704
+ presence: zod
705
+ .object({
706
+ expires: zod.number().optional(),
707
+ id: zod.string().optional(),
708
+ note: zod.string().optional(),
709
+ status: zod.string().optional(),
710
+ timestamp: zod.string().optional(),
711
+ })
712
+ .optional()
713
+ .describe(
714
+ 'string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]\n string status = 8; // short display status (short description)',
715
+ ),
716
+ profile: zod.record(zod.string(), zod.string()).optional(),
717
+ roles: zod
718
+ .array(
719
+ zod.object({
747
720
  id: zod.string().optional(),
748
721
  name: zod.string().optional(),
749
- })
750
- .optional()
751
- .describe('UserId lookup value.'),
752
- username: zod.string().optional(),
753
- })
754
- .optional()
755
- .describe('User profile.'),
756
- });
722
+ }),
723
+ )
724
+ .optional(),
725
+ totpUrl: zod.string().optional(),
726
+ updatedAt: zod.string().optional(),
727
+ updatedBy: zod
728
+ .object({
729
+ id: zod.string().optional(),
730
+ name: zod.string().optional(),
731
+ })
732
+ .optional()
733
+ .describe('UserId lookup value.'),
734
+ username: zod.string().optional(),
735
+ })
736
+ .describe('User profile.');
757
737
 
758
738
  export const LogoutUser2Body = zod.object({
759
739
  id: zod.string().optional(),
@@ -773,6 +753,16 @@ export const UpdatePasswordBody = zod.object({
773
753
 
774
754
  export const UpdatePasswordResponse = zod.looseObject({});
775
755
 
756
+ export const GeneratePasswordBody = zod.object({
757
+ domain: zod.string().optional(),
758
+ password: zod.string().optional(),
759
+ username: zod.string().optional(),
760
+ });
761
+
762
+ export const GeneratePasswordResponse = zod.object({
763
+ password: zod.string().optional(),
764
+ });
765
+
776
766
  export const ReadPasswordSettingsQueryParams = zod.object({
777
767
  password: zod.string().optional(),
778
768
  username: zod.string().optional(),
@@ -1286,127 +1276,114 @@ export const ReadUserResponse = zod.object({
1286
1276
  .describe('User profile.'),
1287
1277
  });
1288
1278
 
1289
- export const LogoutUserParams = zod.object({
1290
- id: zod.string().describe('ONE /users/{id}/logout'),
1291
- });
1292
-
1293
- export const LogoutUserBody = zod.object({
1294
- selection: zod.array(zod.string()).optional(),
1295
- });
1296
-
1297
- export const LogoutUserResponse = zod.looseObject({});
1298
-
1299
1279
  export const UpdateUser2Params = zod.object({
1300
- 'user.id': zod.string().describe('Object ID'),
1280
+ id: zod.string().describe('path: /users/{id}'),
1301
1281
  });
1302
1282
 
1303
1283
  export const UpdateUser2QueryParams = zod.object({
1304
1284
  fields: zod.array(zod.string()).optional().describe('PATCH: partial update'),
1305
1285
  });
1306
1286
 
1307
- export const UpdateUser2Body = zod.object({
1308
- chatName: zod
1309
- .string()
1310
- .optional()
1311
- .describe(
1312
- 'The "chat_name" field is used to store the name displayed externally on the platform.\nFor example, "chat_name" is shown when an agent connects to chats with clients.',
1313
- ),
1314
- contact: zod
1315
- .object({
1316
- id: zod.string().optional(),
1317
- name: zod.string().optional(),
1318
- })
1319
- .optional()
1320
- .describe('[optional] contact connected to this user'),
1321
- device: zod
1322
- .object({
1323
- id: zod.string().optional(),
1324
- name: zod.string().optional(),
1325
- })
1326
- .optional(),
1327
- devices: zod
1328
- .array(
1329
- zod.object({
1330
- id: zod.string().optional(),
1331
- name: zod.string().optional(),
1332
- }),
1333
- )
1334
- .optional()
1335
- .describe(
1336
- '[editable] list of unique `regular` devices, attached to this user',
1337
- ),
1338
- email: zod.string().optional(),
1339
- extension: zod.string().optional(),
1340
- forcePasswordChange: zod
1341
- .boolean()
1342
- .optional()
1343
- .describe(
1344
- 'When set to true, the user will be required to change their password on next login.',
1345
- ),
1346
- hotdesks: zod
1347
- .array(
1348
- zod.object({
1349
- id: zod.string().optional(),
1350
- name: zod.string().optional(),
1351
- }),
1352
- )
1353
- .optional(),
1354
- license: zod
1355
- .array(
1356
- zod.object({
1357
- expiresAt: zod.string().optional(),
1287
+ export const UpdateUser2Body = zod
1288
+ .object({
1289
+ chatName: zod
1290
+ .string()
1291
+ .optional()
1292
+ .describe(
1293
+ 'The "chat_name" field is used to store the name displayed externally on the platform.\nFor example, "chat_name" is shown when an agent connects to chats with clients.',
1294
+ ),
1295
+ contact: zod
1296
+ .object({
1358
1297
  id: zod.string().optional(),
1359
- issuedAt: zod.string().optional(),
1360
- name: zod.string().optional(),
1361
- prod: zod.string().optional(),
1362
- scope: zod.array(zod.string()).optional(),
1363
- user: zod
1364
- .object({
1365
- id: zod.string().optional(),
1366
- name: zod.string().optional(),
1367
- })
1368
- .optional(),
1369
- }),
1370
- )
1371
- .optional(),
1372
- name: zod.string().optional(),
1373
- password: zod.string().optional(),
1374
- permissions: zod
1375
- .array(
1376
- zod.object({
1377
- id: zod
1378
- .string()
1379
- .optional()
1380
- .describe("[required] e.g.: 'read', 'playback_record_file', ..."),
1381
1298
  name: zod.string().optional(),
1382
- usage: zod.string().optional(),
1383
- }),
1384
- )
1385
- .optional(),
1386
- presence: zod
1387
- .object({
1388
- expires: zod.number().optional(),
1389
- id: zod.string().optional(),
1390
- note: zod.string().optional(),
1391
- status: zod.string().optional(),
1392
- timestamp: zod.string().optional(),
1393
- })
1394
- .optional()
1395
- .describe(
1396
- 'string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]\n string status = 8; // short display status (short description)',
1397
- ),
1398
- profile: zod.record(zod.string(), zod.string()).optional(),
1399
- roles: zod
1400
- .array(
1401
- zod.object({
1299
+ })
1300
+ .optional(),
1301
+ device: zod
1302
+ .object({
1402
1303
  id: zod.string().optional(),
1403
1304
  name: zod.string().optional(),
1404
- }),
1405
- )
1406
- .optional(),
1407
- totpUrl: zod.string().optional(),
1408
- username: zod.string().optional(),
1409
- });
1305
+ })
1306
+ .optional(),
1307
+ devices: zod
1308
+ .array(
1309
+ zod.object({
1310
+ id: zod.string().optional(),
1311
+ name: zod.string().optional(),
1312
+ }),
1313
+ )
1314
+ .optional(),
1315
+ email: zod.string().optional(),
1316
+ extension: zod.string().optional(),
1317
+ forcePasswordChange: zod
1318
+ .boolean()
1319
+ .optional()
1320
+ .describe(
1321
+ 'When set to true, the user will be required to change their password on next login.',
1322
+ ),
1323
+ hotdesks: zod
1324
+ .array(
1325
+ zod.object({
1326
+ id: zod.string().optional(),
1327
+ name: zod.string().optional(),
1328
+ }),
1329
+ )
1330
+ .optional(),
1331
+ license: zod
1332
+ .array(
1333
+ zod.object({
1334
+ expiresAt: zod.string().optional(),
1335
+ id: zod.string().optional(),
1336
+ issuedAt: zod.string().optional(),
1337
+ name: zod.string().optional(),
1338
+ prod: zod.string().optional(),
1339
+ scope: zod.array(zod.string()).optional(),
1340
+ user: zod
1341
+ .object({
1342
+ id: zod.string().optional(),
1343
+ name: zod.string().optional(),
1344
+ })
1345
+ .optional(),
1346
+ }),
1347
+ )
1348
+ .optional(),
1349
+ name: zod.string().optional(),
1350
+ password: zod.string().optional(),
1351
+ permissions: zod
1352
+ .array(
1353
+ zod.object({
1354
+ id: zod
1355
+ .string()
1356
+ .optional()
1357
+ .describe("[required] e.g.: 'read', 'playback_record_file', ..."),
1358
+ name: zod.string().optional(),
1359
+ usage: zod.string().optional(),
1360
+ }),
1361
+ )
1362
+ .optional(),
1363
+ presence: zod
1364
+ .object({
1365
+ expires: zod.number().optional(),
1366
+ id: zod.string().optional(),
1367
+ note: zod.string().optional(),
1368
+ status: zod.string().optional(),
1369
+ timestamp: zod.string().optional(),
1370
+ })
1371
+ .optional(),
1372
+ profile: zod.record(zod.string(), zod.string()).optional(),
1373
+ roles: zod
1374
+ .array(
1375
+ zod.object({
1376
+ id: zod.string().optional(),
1377
+ name: zod.string().optional(),
1378
+ }),
1379
+ )
1380
+ .optional(),
1381
+ totpUrl: zod.string().optional(),
1382
+ username: zod.string().optional(),
1383
+ })
1384
+ .describe(
1385
+ 'Input of the User profile for Create/Update operations.\nMirrors `User` field numbers 1:1 (wire-compatible), but excludes\nsystem-managed read-only fields (id, audit metadata).',
1386
+ );
1410
1387
 
1411
1388
  export const UpdateUser2Response = zod
1412
1389
  .object({
@@ -1540,116 +1517,113 @@ export const UpdateUser2Response = zod
1540
1517
  .describe('User profile.');
1541
1518
 
1542
1519
  export const UpdateUserParams = zod.object({
1543
- 'user.id': zod.string().describe('Object ID'),
1520
+ id: zod.string().describe('path: /users/{id}'),
1544
1521
  });
1545
1522
 
1546
1523
  export const UpdateUserQueryParams = zod.object({
1547
1524
  fields: zod.array(zod.string()).optional().describe('PATCH: partial update'),
1548
1525
  });
1549
1526
 
1550
- export const UpdateUserBody = zod.object({
1551
- chatName: zod
1552
- .string()
1553
- .optional()
1554
- .describe(
1555
- 'The "chat_name" field is used to store the name displayed externally on the platform.\nFor example, "chat_name" is shown when an agent connects to chats with clients.',
1556
- ),
1557
- contact: zod
1558
- .object({
1559
- id: zod.string().optional(),
1560
- name: zod.string().optional(),
1561
- })
1562
- .optional()
1563
- .describe('[optional] contact connected to this user'),
1564
- device: zod
1565
- .object({
1566
- id: zod.string().optional(),
1567
- name: zod.string().optional(),
1568
- })
1569
- .optional(),
1570
- devices: zod
1571
- .array(
1572
- zod.object({
1573
- id: zod.string().optional(),
1574
- name: zod.string().optional(),
1575
- }),
1576
- )
1577
- .optional()
1578
- .describe(
1579
- '[editable] list of unique `regular` devices, attached to this user',
1580
- ),
1581
- email: zod.string().optional(),
1582
- extension: zod.string().optional(),
1583
- forcePasswordChange: zod
1584
- .boolean()
1585
- .optional()
1586
- .describe(
1587
- 'When set to true, the user will be required to change their password on next login.',
1588
- ),
1589
- hotdesks: zod
1590
- .array(
1591
- zod.object({
1527
+ export const UpdateUserBody = zod
1528
+ .object({
1529
+ chatName: zod
1530
+ .string()
1531
+ .optional()
1532
+ .describe(
1533
+ 'The "chat_name" field is used to store the name displayed externally on the platform.\nFor example, "chat_name" is shown when an agent connects to chats with clients.',
1534
+ ),
1535
+ contact: zod
1536
+ .object({
1592
1537
  id: zod.string().optional(),
1593
1538
  name: zod.string().optional(),
1594
- }),
1595
- )
1596
- .optional(),
1597
- license: zod
1598
- .array(
1599
- zod.object({
1600
- expiresAt: zod.string().optional(),
1539
+ })
1540
+ .optional(),
1541
+ device: zod
1542
+ .object({
1601
1543
  id: zod.string().optional(),
1602
- issuedAt: zod.string().optional(),
1603
- name: zod.string().optional(),
1604
- prod: zod.string().optional(),
1605
- scope: zod.array(zod.string()).optional(),
1606
- user: zod
1607
- .object({
1608
- id: zod.string().optional(),
1609
- name: zod.string().optional(),
1610
- })
1611
- .optional(),
1612
- }),
1613
- )
1614
- .optional(),
1615
- name: zod.string().optional(),
1616
- password: zod.string().optional(),
1617
- permissions: zod
1618
- .array(
1619
- zod.object({
1620
- id: zod
1621
- .string()
1622
- .optional()
1623
- .describe("[required] e.g.: 'read', 'playback_record_file', ..."),
1624
1544
  name: zod.string().optional(),
1625
- usage: zod.string().optional(),
1626
- }),
1627
- )
1628
- .optional(),
1629
- presence: zod
1630
- .object({
1631
- expires: zod.number().optional(),
1632
- id: zod.string().optional(),
1633
- note: zod.string().optional(),
1634
- status: zod.string().optional(),
1635
- timestamp: zod.string().optional(),
1636
- })
1637
- .optional()
1638
- .describe(
1639
- 'string presence = 7; // unique set of <user> presentity <status:basic> tuples open[ed]\n string status = 8; // short display status (short description)',
1640
- ),
1641
- profile: zod.record(zod.string(), zod.string()).optional(),
1642
- roles: zod
1643
- .array(
1644
- zod.object({
1545
+ })
1546
+ .optional(),
1547
+ devices: zod
1548
+ .array(
1549
+ zod.object({
1550
+ id: zod.string().optional(),
1551
+ name: zod.string().optional(),
1552
+ }),
1553
+ )
1554
+ .optional(),
1555
+ email: zod.string().optional(),
1556
+ extension: zod.string().optional(),
1557
+ forcePasswordChange: zod
1558
+ .boolean()
1559
+ .optional()
1560
+ .describe(
1561
+ 'When set to true, the user will be required to change their password on next login.',
1562
+ ),
1563
+ hotdesks: zod
1564
+ .array(
1565
+ zod.object({
1566
+ id: zod.string().optional(),
1567
+ name: zod.string().optional(),
1568
+ }),
1569
+ )
1570
+ .optional(),
1571
+ license: zod
1572
+ .array(
1573
+ zod.object({
1574
+ expiresAt: zod.string().optional(),
1575
+ id: zod.string().optional(),
1576
+ issuedAt: zod.string().optional(),
1577
+ name: zod.string().optional(),
1578
+ prod: zod.string().optional(),
1579
+ scope: zod.array(zod.string()).optional(),
1580
+ user: zod
1581
+ .object({
1582
+ id: zod.string().optional(),
1583
+ name: zod.string().optional(),
1584
+ })
1585
+ .optional(),
1586
+ }),
1587
+ )
1588
+ .optional(),
1589
+ name: zod.string().optional(),
1590
+ password: zod.string().optional(),
1591
+ permissions: zod
1592
+ .array(
1593
+ zod.object({
1594
+ id: zod
1595
+ .string()
1596
+ .optional()
1597
+ .describe("[required] e.g.: 'read', 'playback_record_file', ..."),
1598
+ name: zod.string().optional(),
1599
+ usage: zod.string().optional(),
1600
+ }),
1601
+ )
1602
+ .optional(),
1603
+ presence: zod
1604
+ .object({
1605
+ expires: zod.number().optional(),
1645
1606
  id: zod.string().optional(),
1646
- name: zod.string().optional(),
1647
- }),
1648
- )
1649
- .optional(),
1650
- totpUrl: zod.string().optional(),
1651
- username: zod.string().optional(),
1652
- });
1607
+ note: zod.string().optional(),
1608
+ status: zod.string().optional(),
1609
+ timestamp: zod.string().optional(),
1610
+ })
1611
+ .optional(),
1612
+ profile: zod.record(zod.string(), zod.string()).optional(),
1613
+ roles: zod
1614
+ .array(
1615
+ zod.object({
1616
+ id: zod.string().optional(),
1617
+ name: zod.string().optional(),
1618
+ }),
1619
+ )
1620
+ .optional(),
1621
+ totpUrl: zod.string().optional(),
1622
+ username: zod.string().optional(),
1623
+ })
1624
+ .describe(
1625
+ 'Input of the User profile for Create/Update operations.\nMirrors `User` field numbers 1:1 (wire-compatible), but excludes\nsystem-managed read-only fields (id, audit metadata).',
1626
+ );
1653
1627
 
1654
1628
  export const UpdateUserResponse = zod
1655
1629
  .object({
@@ -1781,3 +1755,13 @@ export const UpdateUserResponse = zod
1781
1755
  username: zod.string().optional(),
1782
1756
  })
1783
1757
  .describe('User profile.');
1758
+
1759
+ export const LogoutUserParams = zod.object({
1760
+ id: zod.string().describe('ONE /users/{id}/logout'),
1761
+ });
1762
+
1763
+ export const LogoutUserBody = zod.object({
1764
+ selection: zod.array(zod.string()).optional(),
1765
+ });
1766
+
1767
+ export const LogoutUserResponse = zod.looseObject({});