@apifuse/provider-sdk 2.2.0-beta.4 → 2.2.0-beta.5

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.
@@ -25,7 +25,7 @@ import { createTraceContext } from "../runtime/trace.js";
25
25
  import { parseSchema } from "../schema.js";
26
26
  import { getStealthProfile } from "../stealth/profiles.js";
27
27
  import { APIFUSE_STREAM_DONE_EVENT, APIFUSE_STREAM_ERROR_EVENT, encodeSseEvent, error as streamError, } from "../stream.js";
28
- import { createSelfTestApp, createSelfTestInvoke, resolveSelfTestPort } from "./self-test.js";
28
+ import { createSelfTestApp, createSelfTestAuthFlowInvoke, createSelfTestInvoke, resolveSelfTestPort, } from "./self-test.js";
29
29
  import { resolveSelfTestMasterSecrets } from "./self-test-token.js";
30
30
  import { AuthFlowRequestSchema, OperationRequestSchema, } from "./types.js";
31
31
  const DEFAULT_HOST = "0.0.0.0";
@@ -1119,6 +1119,7 @@ export async function serve(provider, options = {}) {
1119
1119
  const selfTestApp = createSelfTestApp(provider, {
1120
1120
  secrets: selfTestSecrets,
1121
1121
  invoke: createSelfTestInvoke(app),
1122
+ authFlow: createSelfTestAuthFlowInvoke(app),
1122
1123
  });
1123
1124
  bunRuntime.serve({
1124
1125
  port: options.selfTestPort ?? resolveSelfTestPort(),
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.2.0-beta.4",
2
+ "version": "2.2.0-beta.5",
3
3
  "name": "@apifuse/provider-sdk",
4
4
  "private": false,
5
5
  "type": "module",
@@ -2,15 +2,20 @@ export { createServerApp, type ServeOptions, serve } from "./serve.js";
2
2
  export {
3
3
  computeSelfTestPlanDigest,
4
4
  createSelfTestApp,
5
+ createSelfTestAuthFlowInvoke,
5
6
  createSelfTestInvoke,
6
7
  DEFAULT_SELF_TEST_REQUEST_BUDGET_MS,
7
8
  isSelfTestReadOnlyOperation,
8
9
  PROVIDER_RUNTIME_SELF_TEST_REQUEST_BUDGET_MS_ENV,
9
10
  resolveSelfTestPort,
11
+ SELF_TEST_AUTH_FLOW_MULTI_TURN_SKIP_REASON,
12
+ SELF_TEST_AUTH_FLOW_REJECTED_SKIP_REASON,
10
13
  SELF_TEST_HEALTHZ_PATH,
11
14
  SELF_TEST_PATH,
12
15
  SELF_TEST_SCHEMA_VERSION,
13
16
  type SelfTestAppOptions,
17
+ type SelfTestAuthFlowInvoke,
18
+ type SelfTestAuthFlowRoute,
14
19
  type SelfTestCaseResult,
15
20
  type SelfTestCaseStatus,
16
21
  type SelfTestOperationInvoke,