@ichinese/open-sdk 1.0.0-rc.3 → 1.0.0-rc.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # iChinese Open Platform SDK for Node.js
2
2
 
3
- > **Prerelease 1.0.0-rc.3.** 这是预发布版,开放平台还没有正式开放,SDK 的默认地址可能连不上。This is a prerelease: the open platform is not open to the public yet, so the SDK's default address may not answer.
3
+ > **Prerelease 1.0.0-rc.4.** 这是预发布版,开放平台还没有正式开放,SDK 的默认地址可能连不上。This is a prerelease: the open platform is not open to the public yet, so the SDK's default address may not answer.
4
4
 
5
5
  爱中文开放平台的 Node.js 服务端 SDK:开放接口(`/open-apis/v1`)的每个接口都是一个方法,并处理令牌、重试、分页和事件推送。
6
6
 
@@ -1,5 +1,5 @@
1
1
  /** The SDK's version (it follows the open API's). */
2
- export declare const VERSION = "1.0.0-rc.3";
2
+ export declare const VERSION = "1.0.0-rc.4";
3
3
  /** The open API's address from the release configuration (sdks/release.json); `baseUrl` overrides it. */
4
4
  export declare const DEFAULT_BASE_URL = "https://open.ichinese.cn";
5
5
  export declare const API_PREFIX = "/open-apis/v1";
@@ -56,7 +56,7 @@ export interface paths {
56
56
  * 两种码都接受:
57
57
  * - **网页免登的授权码**:应用网页在桌面端或手机 App 里调 JS SDK 的 `requestAuthCode()` 拿到,带区前缀、
58
58
  * 5 分钟、只能用一次、绑定这个应用和页面来源;不用传 `redirect_uri`。
59
- * - **标准 OIDC 的授权码**:普通浏览器里 JS SDK 退回签发方 `/authorize`(先 `prompt=none` 静默)拿到的码;
59
+ * - **标准 OIDC 的授权码**:普通浏览器里 JS SDK 退回签发方 `/auth`(先 `prompt=none` 静默)拿到的码;
60
60
  * 要传当时的 `redirect_uri`(和登记的一致),公开客户端用了 PKCE 时传 `code_verifier`。
61
61
  * 网关按码的区前缀转到用户的归属区。码过期返回 400 `details.reason = code_expired`,用过返回 400 `code_used`,
62
62
  * 不是这个应用的码返回 400 `code_invalid`。
package/dist/index.cjs CHANGED
@@ -123,7 +123,7 @@ var OpenApiError = class extends Error {
123
123
  var isOpenApiError = (e) => e instanceof OpenApiError;
124
124
 
125
125
  // src/gen/meta.ts
126
- var VERSION = "1.0.0-rc.3";
126
+ var VERSION = "1.0.0-rc.4";
127
127
  var DEFAULT_BASE_URL = "https://open.ichinese.cn";
128
128
  var API_PREFIX = "/open-apis/v1";
129
129
  var SCOPES = [
package/dist/index.js CHANGED
@@ -43,7 +43,7 @@ var OpenApiError = class extends Error {
43
43
  var isOpenApiError = (e) => e instanceof OpenApiError;
44
44
 
45
45
  // src/gen/meta.ts
46
- var VERSION = "1.0.0-rc.3";
46
+ var VERSION = "1.0.0-rc.4";
47
47
  var DEFAULT_BASE_URL = "https://open.ichinese.cn";
48
48
  var API_PREFIX = "/open-apis/v1";
49
49
  var SCOPES = [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ichinese/open-sdk",
3
- "version": "1.0.0-rc.3",
3
+ "version": "1.0.0-rc.4",
4
4
  "description": "Server SDK for the iChinese open platform (open API, tokens, events, web login): Node.js 20+",
5
5
  "license": "MIT",
6
6
  "type": "module",