@limecloud/cli 0.12.0 → 0.13.0

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.
@@ -2,7 +2,7 @@
2
2
  "openapi": "3.1.0",
3
3
  "info": {
4
4
  "title": "Lime Identity API",
5
- "version": "0.12.0",
5
+ "version": "0.13.0",
6
6
  "description": "Implemented public OAuth 2.0 and OpenID Connect endpoints. Plain protocol responses; separate from authenticated management BFF APIs."
7
7
  },
8
8
  "servers": [
@@ -47,8 +47,17 @@
47
47
  "operationId": "identity_authorize",
48
48
  "summary": "Authorize a user",
49
49
  "x-lime-summary-zh-CN": "用户授权",
50
- "description": "Navigate the user's browser here. Register the client and exact redirect URI first. Production clients must be activated against a published version; installation authorization requires both installation_id and space_id. User consent remains separate from installation approval. The callback contains code+state or error+state; never accept it without checking the bound state.",
51
- "x-lime-zh-CN": "将用户浏览器导航至此。先登记客户端和精确回调。生产客户端须基于已发布版本启用;安装授权须同时提供 installation_id 和 space_id。个人同意与安装批准分别判定。回调包含 code+state 或 error+state,必须校验绑定的 state 后再处理。",
50
+ "description": "Navigate the user's browser here using the environment's App ID or a separately registered user-client ID and an exact registered callback. Production credentials require a published version. For identity-only Web OIDC sign-in with the production App ID, installation_id and space_id may be omitted: after sign-in, one eligible existing partner or official installation is bound and shown on consent. When there is no eligible installation and a trusted Console is configured, an approved listed application may continue the original request through explicit installation in the user's personal space, including the existing strong-authentication requirement. Installation approval does not replace consent or extend the original ten-minute deadline. Multiple eligible installations require explicit selectors. Independent clients, device requests, organization installation and business audiences do not use this first-installation continuation. Business-audience requests require both selectors at authorization start. The frozen context cannot be replaced during token exchange. Validate the original bound state on both successful and error callbacks.",
51
+ "x-lime-zh-CN": "将用户浏览器导航至此,使用对应环境 App ID 或独立登记的用户客户端 ID,以及精确登记的回调。正式凭据要求应用已发布。正式 App ID 接入仅身份 Scope 的 Web OIDC 登录时,可省略 installation_id 与 space_id:用户登录后,仅有一个符合条件的合作或官方应用已有安装时,平台绑定该安装并在同意页明示。没有符合条件的安装且平台已配置受控 Console 时,已审核上架应用可经本人个人空间显式安装后接续原请求,仍须满足现行强认证要求。安装批准不代替本人同意,不延长原十分钟期限。多个符合条件的安装须显式选择。独立 Client、设备请求、组织安装与业务 Audience 不适用此首次接入路径。业务 Audience 请求须在发起时提供两个安装选择字段。换码不能替换已固定上下文,成功及错误回调均须校验原事务绑定的 state。",
52
+ "x-lime-action-revision": "app-id-installation-onboarding-v1",
53
+ "x-lime-localizations": {
54
+ "en": {
55
+ "description": "Navigate the user's browser here using the environment's App ID or a separately registered user-client ID and an exact registered callback. Production credentials require a published version. For identity-only Web OIDC sign-in with the production App ID, installation_id and space_id may be omitted: after sign-in, one eligible existing partner or official installation is bound and shown on consent. When there is no eligible installation and a trusted Console is configured, an approved listed application may continue the original request through explicit installation in the user's personal space, including the existing strong-authentication requirement. Installation approval does not replace consent or extend the original ten-minute deadline. Multiple eligible installations require explicit selectors. Independent clients, device requests, organization installation and business audiences do not use this first-installation continuation. Business-audience requests require both selectors at authorization start. The frozen context cannot be replaced during token exchange. Validate the original bound state on both successful and error callbacks."
56
+ },
57
+ "zh-CN": {
58
+ "description": "将用户浏览器导航至此,使用对应环境 App ID 或独立登记的用户客户端 ID,以及精确登记的回调。正式凭据要求应用已发布。正式 App ID 接入仅身份 Scope 的 Web OIDC 登录时,可省略 installation_id 与 space_id:用户登录后,仅有一个符合条件的合作或官方应用已有安装时,平台绑定该安装并在同意页明示。没有符合条件的安装且平台已配置受控 Console 时,已审核上架应用可经本人个人空间显式安装后接续原请求,仍须满足现行强认证要求。安装批准不代替本人同意,不延长原十分钟期限。多个符合条件的安装须显式选择。独立 Client、设备请求、组织安装与业务 Audience 不适用此首次接入路径。业务 Audience 请求须在发起时提供两个安装选择字段。换码不能替换已固定上下文,成功及错误回调均须校验原事务绑定的 state。"
59
+ }
60
+ },
52
61
  "tags": [
53
62
  "Identity"
54
63
  ],
@@ -67,8 +76,16 @@
67
76
  "name": "client_id",
68
77
  "in": "query",
69
78
  "required": true,
70
- "description": "Public or confidential user-client ID. Always send it in this query; never send a client secret to the authorization endpoint.",
71
- "x-lime-zh-CN": "公共或机密用户客户端 ID。所有用户客户端均在此查询参数中提供 ID,不得向授权端点发送 Secret。",
79
+ "description": "The selected environment's application App ID, or a separately registered public or confidential user-client ID. The production App ID equals the Application ID; sandbox uses a separate App ID. Always send the ID in this query and keep the secret off the authorization endpoint.",
80
+ "x-lime-zh-CN": "所选环境的应用 App ID,或独立登记的公共、机密用户客户端 ID。正式 App ID 与 Application ID 相同,沙箱使用独立 App ID。始终在此查询参数中提交 ID,不向授权端点发送 Secret。",
81
+ "x-lime-localizations": {
82
+ "en": {
83
+ "description": "The selected environment's application App ID, or a separately registered public or confidential user-client ID. The production App ID equals the Application ID; sandbox uses a separate App ID. Always send the ID in this query and keep the secret off the authorization endpoint."
84
+ },
85
+ "zh-CN": {
86
+ "description": "所选环境的应用 App ID,或独立登记的公共、机密用户客户端 ID。正式 App ID 与 Application ID 相同,沙箱使用独立 App ID。始终在此查询参数中提交 ID,不向授权端点发送 Secret。"
87
+ }
88
+ },
72
89
  "schema": {
73
90
  "type": "string"
74
91
  }
@@ -95,8 +112,33 @@
95
112
  "name": "scope",
96
113
  "in": "query",
97
114
  "required": false,
98
- "description": "Space-separated scopes registered on this client. openid is required for sign-in; profile, email and offline_access are optional.",
99
- "x-lime-zh-CN": "客户端已登记的权限,以空格分隔。登录须含 openid,可选 profile、email、offline_access。",
115
+ "description": "Space-separated scopes. Sign-in requires openid; profile, email and offline_access are optional. User business authorization requires openid and the approved business scopes frozen in the selected installation for the single API audience.",
116
+ "x-lime-zh-CN": "以空格分隔的权限。登录须含 openid,可选 profile、email、offline_access。本人业务授权须含 openid 及所选安装对单一 API Audience 已批准冻结的业务权限。",
117
+ "schema": {
118
+ "type": "string"
119
+ },
120
+ "x-lime-localizations": {
121
+ "en": {
122
+ "description": "Space-separated scopes. Sign-in requires openid; profile, email and offline_access are optional. User business authorization requires openid and the approved business scopes frozen in the selected installation for the single API audience."
123
+ },
124
+ "zh-CN": {
125
+ "description": "以空格分隔的权限。登录须含 openid,可选 profile、email、offline_access。本人业务授权须含 openid 及所选安装对单一 API Audience 已批准冻结的业务权限。"
126
+ }
127
+ }
128
+ },
129
+ {
130
+ "name": "audience",
131
+ "in": "query",
132
+ "required": false,
133
+ "description": "For user business authorization, send exactly one approved API audience in the form urn:lime:api:{providerApplicationID}:production:{apiServiceID}, together with installation_id and space_id. Request openid and the installed business scopes. An ordinary OpenID token does not authorize business APIs. A resource parameter or multiple business audiences are rejected.",
134
+ "x-lime-localizations": {
135
+ "en": {
136
+ "description": "For user business authorization, send exactly one approved API audience in the form urn:lime:api:{providerApplicationID}:production:{apiServiceID}, together with installation_id and space_id. Request openid and the installed business scopes. An ordinary OpenID token does not authorize business APIs. A resource parameter or multiple business audiences are rejected."
137
+ },
138
+ "zh-CN": {
139
+ "description": "申请本人业务授权时,提交一个已批准 API 的 Audience,格式为 urn:lime:api:{providerApplicationID}:production:{apiServiceID},并同时提供 installation_id 与 space_id。Scope 须含 openid 及已安装的业务权限。普通 OpenID 令牌不能调用业务 API;不接受 resource 参数或多个业务 Audience。"
140
+ }
141
+ },
100
142
  "schema": {
101
143
  "type": "string"
102
144
  }
@@ -196,8 +238,16 @@
196
238
  "name": "installation_id",
197
239
  "in": "query",
198
240
  "required": false,
199
- "description": "Production installation ID. Supply together with space_id when authorizing an enterprise installation.",
200
- "x-lime-zh-CN": "生产安装 ID。授权企业安装时须与 space_id 同时传入。",
241
+ "description": "Production installation ID, supplied together with space_id when selecting explicitly. Both may be omitted only for identity-only production App ID Web OIDC sign-in that resolves exactly one existing eligible partner or official installation. Other installation-bound client and business-audience requests retain explicit selection.",
242
+ "x-lime-zh-CN": "正式安装 ID,显式选择时须与 space_id 同时传入。仅请求身份权限的正式 App ID Web OIDC 登录,且可确定唯一已有可用合作或官方应用安装时,可同时省略这两个字段。其他安装绑定客户端及业务 Audience 请求仍须显式选择。",
243
+ "x-lime-localizations": {
244
+ "en": {
245
+ "description": "Production installation ID, supplied together with space_id when selecting explicitly. Both may be omitted only for identity-only production App ID Web OIDC sign-in that resolves exactly one existing eligible partner or official installation. Other installation-bound client and business-audience requests retain explicit selection."
246
+ },
247
+ "zh-CN": {
248
+ "description": "正式安装 ID,显式选择时须与 space_id 同时传入。仅请求身份权限的正式 App ID Web OIDC 登录,且可确定唯一已有可用合作或官方应用安装时,可同时省略这两个字段。其他安装绑定客户端及业务 Audience 请求仍须显式选择。"
249
+ }
250
+ },
201
251
  "schema": {
202
252
  "type": "string",
203
253
  "maxLength": 40
@@ -207,8 +257,16 @@
207
257
  "name": "space_id",
208
258
  "in": "query",
209
259
  "required": false,
210
- "description": "Workspace containing the installation. This does not select a global current workspace.",
211
- "x-lime-zh-CN": "安装所属的工作空间,不用于选择全局当前空间。",
260
+ "description": "Workspace containing the explicitly selected installation; provide together with installation_id. Both may be omitted under the production App ID identity-only Web sign-in rule. This field does not select a global current workspace.",
261
+ "x-lime-zh-CN": "显式选择的安装所属空间,须与 installation_id 同时传入。符合正式 App ID 纯身份 Web 登录条件时,可同时省略两个字段;此字段不用于选择全局当前空间。",
262
+ "x-lime-localizations": {
263
+ "en": {
264
+ "description": "Workspace containing the explicitly selected installation; provide together with installation_id. Both may be omitted under the production App ID identity-only Web sign-in rule. This field does not select a global current workspace."
265
+ },
266
+ "zh-CN": {
267
+ "description": "显式选择的安装所属空间,须与 installation_id 同时传入。符合正式 App ID 纯身份 Web 登录条件时,可同时省略两个字段;此字段不用于选择全局当前空间。"
268
+ }
269
+ },
212
270
  "schema": {
213
271
  "type": "string",
214
272
  "maxLength": 40