@cherryin/api-client 0.0.9 → 0.0.10

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 (155) hide show
  1. package/.openapi-generator/FILES +125 -46
  2. package/README.md +200 -85
  3. package/api.ts +4701 -1302
  4. package/dist/api.d.ts +3503 -1545
  5. package/dist/api.js +3186 -885
  6. package/dist/esm/api.d.ts +3503 -1545
  7. package/dist/esm/api.js +3186 -889
  8. package/docs/AIModelAdminServiceApi.md +6 -6
  9. package/docs/AdminEnterpriseMaterials.md +24 -0
  10. package/docs/AdminEnterpriseUser.md +24 -0
  11. package/docs/AdminEnterpriseUserMaterials.md +22 -0
  12. package/docs/AdminPassportItem.md +24 -0
  13. package/docs/AdminUserItem.md +26 -0
  14. package/docs/AuthAdminSession.md +39 -0
  15. package/docs/AuthAdminUser.md +2 -2
  16. package/docs/AuthEnterpriseMaterials.md +33 -0
  17. package/docs/AuthEnterpriseSession.md +37 -0
  18. package/docs/AuthEnterpriseUser.md +37 -0
  19. package/docs/AuthPassport.md +8 -8
  20. package/docs/AuthUser.md +10 -10
  21. package/docs/AuthUserMethod.md +8 -8
  22. package/docs/AuthUserSession.md +10 -6
  23. package/docs/ConfigItem.md +4 -0
  24. package/docs/{PassportAuthUserSendVerificationEmailRequest.md → PassportAdminSendVerificationEmailRequest.md} +3 -3
  25. package/docs/PassportAdminSendVerificationEmailResponse.md +22 -0
  26. package/docs/{PassportAuthAdminSignInEmailRequest.md → PassportAdminSignInEmailRequest.md} +7 -5
  27. package/docs/PassportAdminSignInEmailResponse.md +26 -0
  28. package/docs/PassportAuthAdminChangePasswordResponse.md +2 -2
  29. package/docs/PassportAuthAdminEnterpriseMaterialListResponse.md +28 -0
  30. package/docs/PassportAuthAdminEnterpriseMaterialReviewRequest.md +22 -0
  31. package/docs/PassportAuthAdminEnterpriseMaterialReviewResponse.md +22 -0
  32. package/docs/{PassportAuthAdminSignInEmailResponse.md → PassportAuthAdminGetInfoResponse.md} +3 -5
  33. package/docs/PassportAuthAdminGetSessionResponse.md +1 -1
  34. package/docs/PassportAuthAdminListSessionsResponse.md +1 -1
  35. package/docs/PassportAuthAdminPassportDisableRequest.md +22 -0
  36. package/docs/PassportAuthAdminPassportDisableResponse.md +22 -0
  37. package/docs/PassportAuthAdminPassportListRequest.md +28 -0
  38. package/docs/PassportAuthAdminPassportListResponse.md +28 -0
  39. package/docs/PassportAuthAdminPassportModifyInfoRequest.md +28 -0
  40. package/docs/{PassportAuthUserRevokeOtherSessionsResponse.md → PassportAuthAdminPassportModifyInfoResponse.md} +5 -5
  41. package/docs/PassportAuthAdminServiceApi.md +635 -35
  42. package/docs/{PassportAuthAdminUpdateUserRequest.md → PassportAuthAdminUpdateInfoRequest.md} +5 -5
  43. package/docs/{PassportAuthAdminUpdateUserResponse.md → PassportAuthAdminUpdateInfoResponse.md} +3 -3
  44. package/docs/PassportAuthAdminUserDisableRequest.md +26 -0
  45. package/docs/{PassportAuthUserRevokeSessionsResponse.md → PassportAuthAdminUserDisableResponse.md} +3 -3
  46. package/docs/PassportAuthAdminUserListRequest.md +28 -0
  47. package/docs/PassportAuthAdminUserListResponse.md +28 -0
  48. package/docs/PassportAuthAdminUserModifyInfoRequest.md +32 -0
  49. package/docs/PassportAuthAdminUserModifyInfoResponse.md +24 -0
  50. package/docs/PassportAuthAdminUserModifyPermissionRequest.md +22 -0
  51. package/docs/{PassportAuthUserSendVerificationEmailResponse.md → PassportAuthAdminUserModifyPermissionResponse.md} +5 -3
  52. package/docs/{PassportAuthUserChangePasswordRequest.md → PassportAuthChangePasswordRequest.md} +3 -3
  53. package/docs/{PassportAuthUserSignInPhoneResponse.md → PassportAuthChangePasswordResponse.md} +3 -5
  54. package/docs/{PassportAuthUserDeletePassportRequest.md → PassportAuthDeleteAllRequest.md} +9 -3
  55. package/docs/PassportAuthDeleteAllResponse.md +22 -0
  56. package/docs/PassportAuthEnterpriseChangePasswordRequest.md +24 -0
  57. package/docs/PassportAuthEnterpriseChangePasswordResponse.md +26 -0
  58. package/docs/PassportAuthEnterpriseChangePhoneRequest.md +24 -0
  59. package/docs/PassportAuthEnterpriseChangePhoneResponse.md +22 -0
  60. package/docs/PassportAuthEnterpriseDeleteRequest.md +28 -0
  61. package/docs/PassportAuthEnterpriseDeleteResponse.md +22 -0
  62. package/docs/PassportAuthEnterpriseGetSessionResponse.md +24 -0
  63. package/docs/{PassportAuthUserGetAccountInfoResponse.md → PassportAuthEnterpriseInfoGetResponse.md} +3 -3
  64. package/docs/PassportAuthEnterpriseListSessionsResponse.md +24 -0
  65. package/docs/PassportAuthEnterpriseMaterialUploadRequest.md +26 -0
  66. package/docs/{PassportAuthUserRequestPasswordResetResponse.md → PassportAuthEnterpriseMaterialUploadResponse.md} +3 -3
  67. package/docs/PassportAuthEnterpriseMaterialVerifyStateResponse.md +24 -0
  68. package/docs/PassportAuthEnterpriseRefreshTokenRequest.md +20 -0
  69. package/docs/PassportAuthEnterpriseRefreshTokenResponse.md +24 -0
  70. package/docs/PassportAuthEnterpriseResetPasswordRequest.md +22 -0
  71. package/docs/PassportAuthEnterpriseResetPasswordResponse.md +22 -0
  72. package/docs/{PassportAuthUserDeletePassportResponse.md → PassportAuthEnterpriseRevokeOtherSessionsResponse.md} +3 -3
  73. package/docs/PassportAuthEnterpriseRevokeSessionRequest.md +20 -0
  74. package/docs/PassportAuthEnterpriseRevokeSessionResponse.md +22 -0
  75. package/docs/PassportAuthEnterpriseRevokeSessionsResponse.md +22 -0
  76. package/docs/PassportAuthEnterpriseServiceApi.md +1170 -0
  77. package/docs/PassportAuthEnterpriseSignOutRequest.md +20 -0
  78. package/docs/{PassportAuthUserUnlinkAccountResponse.md → PassportAuthEnterpriseSignOutResponse.md} +3 -3
  79. package/docs/PassportAuthEnterpriseUpdateInfoRequest.md +22 -0
  80. package/docs/{PassportAuthUserChangePasswordResponse.md → PassportAuthEnterpriseUpdateInfoResponse.md} +3 -5
  81. package/docs/PassportAuthEnterpriseVerifyEmailRequest.md +24 -0
  82. package/docs/PassportAuthEnterpriseVerifyEmailResponse.md +22 -0
  83. package/docs/PassportAuthEnterpriseVerifyPhoneResponse.md +22 -0
  84. package/docs/{PassportAuthUserGetPassportInfoResponse.md → PassportAuthInfoGetResponse.md} +3 -3
  85. package/docs/{PassportAuthUserLinkSocialRequest.md → PassportAuthLinkSocialRequest.md} +3 -3
  86. package/docs/{PassportAuthUserLinkSocialResponse.md → PassportAuthLinkSocialResponse.md} +3 -3
  87. package/docs/{PassportAuthUserListMethodsResponse.md → PassportAuthListMethodsResponse.md} +3 -3
  88. package/docs/{PassportAuthUserListSessionsResponse.md → PassportAuthListSessionsResponse.md} +3 -3
  89. package/docs/{PassportAuthUserListAccountsResponse.md → PassportAuthListSocialsResponse.md} +3 -3
  90. package/docs/PassportAuthRefreshSessionTokenRequest.md +20 -0
  91. package/docs/PassportAuthRefreshSessionTokenResponse.md +24 -0
  92. package/docs/{PassportAuthUserResetPasswordRequest.md → PassportAuthResetPasswordRequest.md} +5 -5
  93. package/docs/PassportAuthResetPasswordResponse.md +22 -0
  94. package/docs/{PassportAuthUserRevokeOtherSessionsRequest.md → PassportAuthRevokeOtherSessionsRequest.md} +3 -3
  95. package/docs/{PassportAuthUserDeleteUserResponse.md → PassportAuthRevokeOtherSessionsResponse.md} +3 -3
  96. package/docs/{PassportAuthUserRevokeSessionRequest.md → PassportAuthRevokeSessionRequest.md} +3 -3
  97. package/docs/PassportAuthRevokeSessionResponse.md +22 -0
  98. package/docs/{PassportAuthUserRevokeSessionsRequest.md → PassportAuthRevokeSessionsRequest.md} +3 -3
  99. package/docs/PassportAuthRevokeSessionsResponse.md +22 -0
  100. package/docs/PassportAuthSendVerificationEmailRequest.md +26 -0
  101. package/docs/PassportAuthSendVerificationEmailResponse.md +22 -0
  102. package/docs/PassportAuthSendVerificationPhoneRequest.md +26 -0
  103. package/docs/PassportAuthSendVerificationPhoneResponse.md +22 -0
  104. package/docs/{PassportAuthUserRefreshTokenRequest.md → PassportAuthSocialGetAccessTokenRequest.md} +3 -3
  105. package/docs/{PassportAuthUserRefreshTokenResponse.md → PassportAuthSocialGetAccessTokenResponse.md} +3 -3
  106. package/docs/{PassportAuthUserGetAccessTokenRequest.md → PassportAuthSocialRefreshTokenRequest.md} +3 -3
  107. package/docs/{PassportAuthUserGetAccessTokenResponse.md → PassportAuthSocialRefreshTokenResponse.md} +3 -3
  108. package/docs/{PassportAuthUserUnlinkAccountRequest.md → PassportAuthUnlinkSocialRequest.md} +3 -3
  109. package/docs/PassportAuthUnlinkSocialResponse.md +22 -0
  110. package/docs/PassportAuthUserChangePhoneRequest.md +4 -4
  111. package/docs/{PassportAuthUserDeleteUserRequest.md → PassportAuthUserDeleteRequest.md} +9 -3
  112. package/docs/PassportAuthUserDeleteResponse.md +22 -0
  113. package/docs/PassportAuthUserGetSessionResponse.md +2 -2
  114. package/docs/PassportAuthUserInfoGetResponse.md +24 -0
  115. package/docs/PassportAuthUserServiceApi.md +546 -329
  116. package/docs/PassportAuthUserSignOutResponse.md +0 -2
  117. package/docs/{PassportAuthUserUpdateUserRequest.md → PassportAuthUserUpdateInfoRequest.md} +3 -3
  118. package/docs/{PassportAuthUserUpdateUserResponse.md → PassportAuthUserUpdateInfoResponse.md} +3 -3
  119. package/docs/{PassportAuthUserRequestPasswordResetRequest.md → PassportAuthUserVerifyEmailRequest.md} +7 -5
  120. package/docs/PassportAuthUserVerifyEmailResponse.md +0 -2
  121. package/docs/PassportAuthUserVerifyPhoneRequest.md +24 -0
  122. package/docs/PassportAuthUserVerifyPhoneResponse.md +0 -2
  123. package/docs/PassportEnterprisePasswordResetRequest.md +24 -0
  124. package/docs/{PassportAuthUserSignUpEmailResponse.md → PassportEnterprisePasswordResetResponse.md} +5 -9
  125. package/docs/PassportEnterpriseSendVerificationEmailRequest.md +24 -0
  126. package/docs/PassportEnterpriseSendVerificationEmailResponse.md +22 -0
  127. package/docs/PassportEnterpriseSendVerificationPhoneRequest.md +24 -0
  128. package/docs/PassportEnterpriseSendVerificationPhoneResponse.md +22 -0
  129. package/docs/PassportEnterpriseSignInEmailRequest.md +30 -0
  130. package/docs/PassportEnterpriseSignInEmailResponse.md +30 -0
  131. package/docs/PassportEnterpriseSignInPhoneRequest.md +24 -0
  132. package/docs/PassportEnterpriseSignInPhoneResponse.md +26 -0
  133. package/docs/PassportEnterpriseSignUpEmailRequest.md +34 -0
  134. package/docs/PassportEnterpriseSignUpEmailResponse.md +26 -0
  135. package/docs/PassportSendVerificationEmailRequest.md +26 -0
  136. package/docs/{PassportAuthUserRevokeSessionResponse.md → PassportSendVerificationEmailResponse.md} +3 -3
  137. package/docs/PassportSendVerificationPhoneRequest.md +26 -0
  138. package/docs/{PassportAuthUserResetPasswordResponse.md → PassportSendVerificationPhoneResponse.md} +3 -3
  139. package/docs/{PassportAuthUserOAuthCallbackResponse.md → PassportUserOAuthCallbackResponse.md} +6 -6
  140. package/docs/PassportUserPasswordResetRequest.md +28 -0
  141. package/docs/PassportUserPasswordResetResponse.md +26 -0
  142. package/docs/{PassportAuthUserSignInEmailRequest.md → PassportUserSignInEmailRequest.md} +9 -5
  143. package/docs/{PassportAuthUserSignInSocialResponse.md → PassportUserSignInEmailResponse.md} +6 -6
  144. package/docs/{PassportAuthUserSignInPhoneRequest.md → PassportUserSignInPhoneRequest.md} +7 -5
  145. package/docs/PassportUserSignInPhoneResponse.md +28 -0
  146. package/docs/{PassportAuthUserSignInSocialRequest.md → PassportUserSignInSocialRequest.md} +5 -5
  147. package/docs/PassportUserSignInSocialResponse.md +32 -0
  148. package/docs/{PassportAuthUserSignUpEmailRequest.md → PassportUserSignUpEmailRequest.md} +8 -6
  149. package/docs/{PassportAuthUserSignInEmailResponse.md → PassportUserSignUpEmailResponse.md} +6 -6
  150. package/docs/RemoteConfigAdminServiceApi.md +18 -3
  151. package/docs/RemoteConfigItemGetResponse.md +2 -2
  152. package/docs/RemoteConfigItemUpdateRequest.md +6 -0
  153. package/docs/RemoteConfigItemUpdateResponse.md +2 -2
  154. package/docs/Status.md +1 -1
  155. package/package.json +1 -1
@@ -295,9 +295,9 @@ import {
295
295
  const configuration = new Configuration();
296
296
  const apiInstance = new AIModelAdminServiceApi(configuration);
297
297
 
298
- let page: number; //page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" (optional) (default to undefined)
299
- let pageSize: number; //page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\" (optional) (default to undefined)
300
- let status: number; //status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 0: return all statuses 1: return draft models only 2: return published models only 3: return disabled models only @gotags: form:\"status\" (optional) (default to undefined)
298
+ let page: number; //page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\" (optional) (default to undefined)
299
+ let pageSize: number; //page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" (optional) (default to undefined)
300
+ let status: number; //status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 @gotags: form:\"status\" (optional) (default to undefined)
301
301
  let namePrefix: string; //name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4\", \"gpt-4-turbo\" 等 Example: \"gpt-4\" matches \"gpt-4\", \"gpt-4-turbo\", etc. @gotags: form:\"name_prefix\" (optional) (default to undefined)
302
302
  let group: string; //group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\" (optional) (default to undefined)
303
303
 
@@ -314,9 +314,9 @@ const { status, data } = await apiInstance.aIModelAdminServiceAIModelList(
314
314
 
315
315
  |Name | Type | Description | Notes|
316
316
  |------------- | ------------- | ------------- | -------------|
317
- | **page** | [**number**] | page 页码,从 1 开始 Page number, starts from 1 默认值: 1 Default: 1 @gotags: form:\"page\" | (optional) defaults to undefined|
318
- | **pageSize** | [**number**] | page_size 每页数量 Number of items per page 默认值: 20,最大值: 100 Default: 20, Maximum: 100 @gotags: form:\"page_size\" | (optional) defaults to undefined|
319
- | **status** | [**number**] | status 按状态过滤(可选) Filter by status (optional) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 0: return all statuses 1: return draft models only 2: return published models only 3: return disabled models only @gotags: form:\"status\" | (optional) defaults to undefined|
317
+ | **page** | [**number**] | page 页码,从 1 开始 默认值: 1 @gotags: form:\"page\" | (optional) defaults to undefined|
318
+ | **pageSize** | [**number**] | page_size 每页数量 默认值: 20,最大值: 100 @gotags: form:\"page_size\" | (optional) defaults to undefined|
319
+ | **status** | [**number**] | status 按状态过滤(可选) 0: 返回所有状态 1: 仅返回草稿状态 2: 仅返回已发布状态 3: 仅返回已禁用状态 @gotags: form:\"status\" | (optional) defaults to undefined|
320
320
  | **namePrefix** | [**string**] | name_prefix 按名称前缀过滤(可选) Filter by name prefix (optional) 例如: \"gpt-4\" 会匹配 \"gpt-4\", \"gpt-4-turbo\" 等 Example: \"gpt-4\" matches \"gpt-4\", \"gpt-4-turbo\", etc. @gotags: form:\"name_prefix\" | (optional) defaults to undefined|
321
321
  | **group** | [**string**] | group 按分组过滤(可选) Filter by group (optional) 例如: \"gpt-4\" 会匹配该分组下的所有模型 Example: \"gpt-4\" matches all models in this group @gotags: form:\"group\" | (optional) defaults to undefined|
322
322
 
@@ -0,0 +1,24 @@
1
+ # AdminEnterpriseMaterials
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **materials** | [**AuthEnterpriseMaterials**](AuthEnterpriseMaterials.md) | | [optional] [default to undefined]
9
+ **created_at** | **string** | | [optional] [default to undefined]
10
+ **updated_at** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AdminEnterpriseMaterials } from '@cherryin/api-client';
16
+
17
+ const instance: AdminEnterpriseMaterials = {
18
+ materials,
19
+ created_at,
20
+ updated_at,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # AdminEnterpriseUser
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **user** | [**AuthEnterpriseUser**](AuthEnterpriseUser.md) | 企业用户信息 | [optional] [default to undefined]
9
+ **created_at** | **string** | | [optional] [default to undefined]
10
+ **updated_at** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AdminEnterpriseUser } from '@cherryin/api-client';
16
+
17
+ const instance: AdminEnterpriseUser = {
18
+ user,
19
+ created_at,
20
+ updated_at,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,22 @@
1
+ # AdminEnterpriseUserMaterials
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **user** | [**AdminEnterpriseUser**](AdminEnterpriseUser.md) | | [optional] [default to undefined]
9
+ **materials** | [**AdminEnterpriseMaterials**](AdminEnterpriseMaterials.md) | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { AdminEnterpriseUserMaterials } from '@cherryin/api-client';
15
+
16
+ const instance: AdminEnterpriseUserMaterials = {
17
+ user,
18
+ materials,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,24 @@
1
+ # AdminPassportItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **passport** | [**AuthPassport**](AuthPassport.md) | | [optional] [default to undefined]
9
+ **created_at** | **string** | | [optional] [default to undefined]
10
+ **updated_at** | **string** | | [optional] [default to undefined]
11
+
12
+ ## Example
13
+
14
+ ```typescript
15
+ import { AdminPassportItem } from '@cherryin/api-client';
16
+
17
+ const instance: AdminPassportItem = {
18
+ passport,
19
+ created_at,
20
+ updated_at,
21
+ };
22
+ ```
23
+
24
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,26 @@
1
+ # AdminUserItem
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **user** | [**AuthUser**](AuthUser.md) | | [optional] [default to undefined]
9
+ **created_at** | **string** | | [optional] [default to undefined]
10
+ **updated_at** | **string** | | [optional] [default to undefined]
11
+ **role** | **number** | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { AdminUserItem } from '@cherryin/api-client';
17
+
18
+ const instance: AdminUserItem = {
19
+ user,
20
+ created_at,
21
+ updated_at,
22
+ role,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,39 @@
1
+ # AuthAdminSession
2
+
3
+ 管理员会话信息 (映射 db.UserSession)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **session_token** | **string** | | [optional] [default to undefined]
10
+ **refresh_token** | **string** | | [optional] [default to undefined]
11
+ **session_expires_at** | **string** | | [optional] [default to undefined]
12
+ **refresh_expires_at** | **string** | | [optional] [default to undefined]
13
+ **created_at** | **string** | | [optional] [default to undefined]
14
+ **updated_at** | **string** | | [optional] [default to undefined]
15
+ **ip** | **string** | | [optional] [default to undefined]
16
+ **user_agent** | **string** | | [optional] [default to undefined]
17
+ **aid** | **string** | | [optional] [default to undefined]
18
+ **uid** | **string** | | [optional] [default to undefined]
19
+
20
+ ## Example
21
+
22
+ ```typescript
23
+ import { AuthAdminSession } from '@cherryin/api-client';
24
+
25
+ const instance: AuthAdminSession = {
26
+ session_token,
27
+ refresh_token,
28
+ session_expires_at,
29
+ refresh_expires_at,
30
+ created_at,
31
+ updated_at,
32
+ ip,
33
+ user_agent,
34
+ aid,
35
+ uid,
36
+ };
37
+ ```
38
+
39
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -6,7 +6,7 @@
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
- **id** | **string** | | [optional] [default to undefined]
9
+ **uid** | **string** | | [optional] [default to undefined]
10
10
  **name** | **string** | | [optional] [default to undefined]
11
11
  **email** | **string** | | [optional] [default to undefined]
12
12
  **avatar_url** | **string** | | [optional] [default to undefined]
@@ -20,7 +20,7 @@ Name | Type | Description | Notes
20
20
  import { AuthAdminUser } from '@cherryin/api-client';
21
21
 
22
22
  const instance: AuthAdminUser = {
23
- id,
23
+ uid,
24
24
  name,
25
25
  email,
26
26
  avatar_url,
@@ -0,0 +1,33 @@
1
+ # AuthEnterpriseMaterials
2
+
3
+ 企业认证材料信息
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **requested_at** | **string** | 提交认证时间 Unix 时间戳 | [optional] [default to undefined]
10
+ **verified_at** | **string** | 认证通过时间 Unix 时间戳 | [optional] [default to undefined]
11
+ **company_name** | **string** | 企业名称 | [optional] [default to undefined]
12
+ **unified_social_credit_code** | **string** | 统一社会信用代码 | [optional] [default to undefined]
13
+ **legal_person_name** | **string** | 法定代表人姓名 | [optional] [default to undefined]
14
+ **legal_person_id_number** | **string** | 法定代表人身份证号码 | [optional] [default to undefined]
15
+ **review_status** | **number** | 审核状态 | [optional] [default to undefined]
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import { AuthEnterpriseMaterials } from '@cherryin/api-client';
21
+
22
+ const instance: AuthEnterpriseMaterials = {
23
+ requested_at,
24
+ verified_at,
25
+ company_name,
26
+ unified_social_credit_code,
27
+ legal_person_name,
28
+ legal_person_id_number,
29
+ review_status,
30
+ };
31
+ ```
32
+
33
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,37 @@
1
+ # AuthEnterpriseSession
2
+
3
+ 管理员会话信息 (映射 db.UserSession)
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **session_token** | **string** | | [optional] [default to undefined]
10
+ **refresh_token** | **string** | | [optional] [default to undefined]
11
+ **session_expires_at** | **string** | | [optional] [default to undefined]
12
+ **refresh_expires_at** | **string** | | [optional] [default to undefined]
13
+ **created_at** | **string** | | [optional] [default to undefined]
14
+ **updated_at** | **string** | | [optional] [default to undefined]
15
+ **ip** | **string** | | [optional] [default to undefined]
16
+ **user_agent** | **string** | | [optional] [default to undefined]
17
+ **eid** | **string** | | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { AuthEnterpriseSession } from '@cherryin/api-client';
23
+
24
+ const instance: AuthEnterpriseSession = {
25
+ session_token,
26
+ refresh_token,
27
+ session_expires_at,
28
+ refresh_expires_at,
29
+ created_at,
30
+ updated_at,
31
+ ip,
32
+ user_agent,
33
+ eid,
34
+ };
35
+ ```
36
+
37
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -0,0 +1,37 @@
1
+ # AuthEnterpriseUser
2
+
3
+ 企业用户信息
4
+
5
+ ## Properties
6
+
7
+ Name | Type | Description | Notes
8
+ ------------ | ------------- | ------------- | -------------
9
+ **eid** | **string** | | [optional] [default to undefined]
10
+ **name** | **string** | | [optional] [default to undefined]
11
+ **email** | **string** | | [optional] [default to undefined]
12
+ **phone** | **string** | | [optional] [default to undefined]
13
+ **avatar_url** | **string** | | [optional] [default to undefined]
14
+ **register_at** | **string** | | [optional] [default to undefined]
15
+ **email_verified_at** | **string** | | [optional] [default to undefined]
16
+ **phone_verified_at** | **string** | | [optional] [default to undefined]
17
+ **materials** | [**AuthEnterpriseMaterials**](AuthEnterpriseMaterials.md) | | [optional] [default to undefined]
18
+
19
+ ## Example
20
+
21
+ ```typescript
22
+ import { AuthEnterpriseUser } from '@cherryin/api-client';
23
+
24
+ const instance: AuthEnterpriseUser = {
25
+ eid,
26
+ name,
27
+ email,
28
+ phone,
29
+ avatar_url,
30
+ register_at,
31
+ email_verified_at,
32
+ phone_verified_at,
33
+ materials,
34
+ };
35
+ ```
36
+
37
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -9,11 +9,11 @@ Name | Type | Description | Notes
9
9
  **aid** | **string** | | [optional] [default to undefined]
10
10
  **name** | **string** | | [optional] [default to undefined]
11
11
  **email** | **string** | | [optional] [default to undefined]
12
- **phone_number_e164** | **string** | | [optional] [default to undefined]
13
- **email_verified** | **boolean** | | [optional] [default to undefined]
12
+ **phone** | **string** | | [optional] [default to undefined]
14
13
  **avatar_url** | **string** | | [optional] [default to undefined]
15
- **created_at** | **string** | | [optional] [default to undefined]
16
- **updated_at** | **string** | | [optional] [default to undefined]
14
+ **register_at** | **string** | | [optional] [default to undefined]
15
+ **email_verified_at** | **string** | | [optional] [default to undefined]
16
+ **phone_verified_at** | **string** | | [optional] [default to undefined]
17
17
 
18
18
  ## Example
19
19
 
@@ -24,11 +24,11 @@ const instance: AuthPassport = {
24
24
  aid,
25
25
  name,
26
26
  email,
27
- phone_number_e164,
28
- email_verified,
27
+ phone,
29
28
  avatar_url,
30
- created_at,
31
- updated_at,
29
+ register_at,
30
+ email_verified_at,
31
+ phone_verified_at,
32
32
  };
33
33
  ```
34
34
 
package/docs/AuthUser.md CHANGED
@@ -6,16 +6,16 @@
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
+ **uid** | **string** | | [optional] [default to undefined]
9
10
  **app_id** | **string** | | [optional] [default to undefined]
10
11
  **aid** | **string** | | [optional] [default to undefined]
11
- **uid** | **string** | | [optional] [default to undefined]
12
12
  **name** | **string** | | [optional] [default to undefined]
13
13
  **email** | **string** | | [optional] [default to undefined]
14
- **email_verified** | **boolean** | | [optional] [default to undefined]
15
- **phone_number_e164** | **string** | | [optional] [default to undefined]
14
+ **phone** | **string** | | [optional] [default to undefined]
16
15
  **avatar_url** | **string** | | [optional] [default to undefined]
17
- **created_at** | **string** | | [optional] [default to undefined]
18
- **updated_at** | **string** | | [optional] [default to undefined]
16
+ **register_at** | **string** | | [optional] [default to undefined]
17
+ **email_verified_at** | **string** | | [optional] [default to undefined]
18
+ **phone_verified_at** | **string** | | [optional] [default to undefined]
19
19
 
20
20
  ## Example
21
21
 
@@ -23,16 +23,16 @@ Name | Type | Description | Notes
23
23
  import { AuthUser } from '@cherryin/api-client';
24
24
 
25
25
  const instance: AuthUser = {
26
+ uid,
26
27
  app_id,
27
28
  aid,
28
- uid,
29
29
  name,
30
30
  email,
31
- email_verified,
32
- phone_number_e164,
31
+ phone,
33
32
  avatar_url,
34
- created_at,
35
- updated_at,
33
+ register_at,
34
+ email_verified_at,
35
+ phone_verified_at,
36
36
  };
37
37
  ```
38
38
 
@@ -9,13 +9,13 @@ Name | Type | Description | Notes
9
9
  **app_id** | **string** | | [optional] [default to undefined]
10
10
  **aid** | **string** | | [optional] [default to undefined]
11
11
  **uid** | **string** | | [optional] [default to undefined]
12
- **id** | **string** | | [optional] [default to undefined]
13
- **account_id** | **string** | | [optional] [default to undefined]
14
12
  **provider_id** | **string** | | [optional] [default to undefined]
15
- **user_id** | **string** | | [optional] [default to undefined]
13
+ **email** | **string** | | [optional] [default to undefined]
14
+ **phone** | **string** | | [optional] [default to undefined]
15
+ **oauth_account_id** | **string** | | [optional] [default to undefined]
16
+ **oauth_scopes** | **Array<string>** | | [optional] [default to undefined]
16
17
  **created_at** | **string** | | [optional] [default to undefined]
17
18
  **updated_at** | **string** | | [optional] [default to undefined]
18
- **scopes** | **Array<string>** | | [optional] [default to undefined]
19
19
 
20
20
  ## Example
21
21
 
@@ -26,13 +26,13 @@ const instance: AuthUserMethod = {
26
26
  app_id,
27
27
  aid,
28
28
  uid,
29
- id,
30
- account_id,
31
29
  provider_id,
32
- user_id,
30
+ email,
31
+ phone,
32
+ oauth_account_id,
33
+ oauth_scopes,
33
34
  created_at,
34
35
  updated_at,
35
- scopes,
36
36
  };
37
37
  ```
38
38
 
@@ -6,14 +6,16 @@
6
6
 
7
7
  Name | Type | Description | Notes
8
8
  ------------ | ------------- | ------------- | -------------
9
+ **session_token** | **string** | | [optional] [default to undefined]
10
+ **refresh_token** | **string** | | [optional] [default to undefined]
11
+ **session_expires_at** | **string** | | [optional] [default to undefined]
12
+ **refresh_expires_at** | **string** | | [optional] [default to undefined]
9
13
  **app_id** | **string** | | [optional] [default to undefined]
10
14
  **aid** | **string** | | [optional] [default to undefined]
11
15
  **uid** | **string** | | [optional] [default to undefined]
12
- **token** | **string** | | [optional] [default to undefined]
13
- **expires_at** | **string** | | [optional] [default to undefined]
14
16
  **created_at** | **string** | | [optional] [default to undefined]
15
17
  **updated_at** | **string** | | [optional] [default to undefined]
16
- **ip_address** | **string** | | [optional] [default to undefined]
18
+ **ip** | **string** | | [optional] [default to undefined]
17
19
  **user_agent** | **string** | | [optional] [default to undefined]
18
20
 
19
21
  ## Example
@@ -22,14 +24,16 @@ Name | Type | Description | Notes
22
24
  import { AuthUserSession } from '@cherryin/api-client';
23
25
 
24
26
  const instance: AuthUserSession = {
27
+ session_token,
28
+ refresh_token,
29
+ session_expires_at,
30
+ refresh_expires_at,
25
31
  app_id,
26
32
  aid,
27
33
  uid,
28
- token,
29
- expires_at,
30
34
  created_at,
31
35
  updated_at,
32
- ip_address,
36
+ ip,
33
37
  user_agent,
34
38
  };
35
39
  ```
@@ -6,7 +6,9 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **id** | **string** | | [optional] [default to undefined]
9
+ **service** | **string** | | [optional] [default to undefined]
9
10
  **key** | **string** | | [optional] [default to undefined]
11
+ **env** | **string** | | [optional] [default to undefined]
10
12
  **values** | **{ [key: string]: any; }** | | [optional] [default to undefined]
11
13
  **payload** | **{ [key: string]: any; }** | | [optional] [default to undefined]
12
14
  **createdAt** | **string** | | [optional] [default to undefined]
@@ -20,7 +22,9 @@ import { ConfigItem } from '@cherryin/api-client';
20
22
 
21
23
  const instance: ConfigItem = {
22
24
  id,
25
+ service,
23
26
  key,
27
+ env,
24
28
  values,
25
29
  payload,
26
30
  createdAt,
@@ -1,4 +1,4 @@
1
- # PassportAuthUserSendVerificationEmailRequest
1
+ # PassportAdminSendVerificationEmailRequest
2
2
 
3
3
 
4
4
  ## Properties
@@ -13,9 +13,9 @@ Name | Type | Description | Notes
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import { PassportAuthUserSendVerificationEmailRequest } from '@cherryin/api-client';
16
+ import { PassportAdminSendVerificationEmailRequest } from '@cherryin/api-client';
17
17
 
18
- const instance: PassportAuthUserSendVerificationEmailRequest = {
18
+ const instance: PassportAdminSendVerificationEmailRequest = {
19
19
  app_ids,
20
20
  email,
21
21
  callback_url,
@@ -0,0 +1,22 @@
1
+ # PassportAdminSendVerificationEmailResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | | [optional] [default to undefined]
9
+ **message** | **string** | | [optional] [default to undefined]
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import { PassportAdminSendVerificationEmailResponse } from '@cherryin/api-client';
15
+
16
+ const instance: PassportAdminSendVerificationEmailResponse = {
17
+ code,
18
+ message,
19
+ };
20
+ ```
21
+
22
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -1,4 +1,4 @@
1
- # PassportAuthAdminSignInEmailRequest
1
+ # PassportAdminSignInEmailRequest
2
2
 
3
3
 
4
4
  ## Properties
@@ -6,19 +6,21 @@
6
6
  Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **email** | **string** | | [optional] [default to undefined]
9
- **password** | **string** | | [optional] [default to undefined]
10
9
  **session_type** | **string** | | [optional] [default to undefined]
10
+ **password** | **string** | | [optional] [default to undefined]
11
+ **verify_code** | **string** | | [optional] [default to undefined]
11
12
  **remember_me** | **boolean** | | [optional] [default to undefined]
12
13
 
13
14
  ## Example
14
15
 
15
16
  ```typescript
16
- import { PassportAuthAdminSignInEmailRequest } from '@cherryin/api-client';
17
+ import { PassportAdminSignInEmailRequest } from '@cherryin/api-client';
17
18
 
18
- const instance: PassportAuthAdminSignInEmailRequest = {
19
+ const instance: PassportAdminSignInEmailRequest = {
19
20
  email,
20
- password,
21
21
  session_type,
22
+ password,
23
+ verify_code,
22
24
  remember_me,
23
25
  };
24
26
  ```
@@ -0,0 +1,26 @@
1
+ # PassportAdminSignInEmailResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | | [optional] [default to undefined]
9
+ **message** | **string** | | [optional] [default to undefined]
10
+ **admin** | [**AuthAdminUser**](AuthAdminUser.md) | | [optional] [default to undefined]
11
+ **session** | [**AuthAdminSession**](AuthAdminSession.md) | | [optional] [default to undefined]
12
+
13
+ ## Example
14
+
15
+ ```typescript
16
+ import { PassportAdminSignInEmailResponse } from '@cherryin/api-client';
17
+
18
+ const instance: PassportAdminSignInEmailResponse = {
19
+ code,
20
+ message,
21
+ admin,
22
+ session,
23
+ };
24
+ ```
25
+
26
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
@@ -7,7 +7,7 @@ Name | Type | Description | Notes
7
7
  ------------ | ------------- | ------------- | -------------
8
8
  **code** | **string** | | [optional] [default to undefined]
9
9
  **message** | **string** | | [optional] [default to undefined]
10
- **token** | **string** | | [optional] [default to undefined]
10
+ **session** | [**AuthAdminSession**](AuthAdminSession.md) | | [optional] [default to undefined]
11
11
  **user** | [**AuthAdminUser**](AuthAdminUser.md) | | [optional] [default to undefined]
12
12
 
13
13
  ## Example
@@ -18,7 +18,7 @@ import { PassportAuthAdminChangePasswordResponse } from '@cherryin/api-client';
18
18
  const instance: PassportAuthAdminChangePasswordResponse = {
19
19
  code,
20
20
  message,
21
- token,
21
+ session,
22
22
  user,
23
23
  };
24
24
  ```
@@ -0,0 +1,28 @@
1
+ # PassportAuthAdminEnterpriseMaterialListResponse
2
+
3
+
4
+ ## Properties
5
+
6
+ Name | Type | Description | Notes
7
+ ------------ | ------------- | ------------- | -------------
8
+ **code** | **string** | | [optional] [default to undefined]
9
+ **message** | **string** | | [optional] [default to undefined]
10
+ **users** | [**Array<AdminEnterpriseUserMaterials>**](AdminEnterpriseUserMaterials.md) | | [optional] [default to undefined]
11
+ **total** | **string** | | [optional] [default to undefined]
12
+ **has_more** | **boolean** | | [optional] [default to undefined]
13
+
14
+ ## Example
15
+
16
+ ```typescript
17
+ import { PassportAuthAdminEnterpriseMaterialListResponse } from '@cherryin/api-client';
18
+
19
+ const instance: PassportAuthAdminEnterpriseMaterialListResponse = {
20
+ code,
21
+ message,
22
+ users,
23
+ total,
24
+ has_more,
25
+ };
26
+ ```
27
+
28
+ [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)