@apifuse/provider-sdk 2.1.0-beta.11 → 2.1.0-beta.12

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/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @apifuse/provider-sdk Changelog
2
2
 
3
+ ## 2.1.0-beta.12
4
+
5
+ - Release candidate for main commit 2bc1061c6a68facaa2efde08bee31bf5cd96945e.
6
+
3
7
  ## 2.1.0-beta.11
4
8
 
5
9
  - Release candidate for main commit b98ddc5024698f8c79e05e3295f7c8c8e8fe5a8a.
@@ -544,8 +544,8 @@ function renderAuthBlock(authMode) {
544
544
  return `{
545
545
  mode: "credentials",
546
546
  flow: {
547
- start: async () => ({
548
- kind: "input",
547
+ start: async (_ctx) => ({
548
+ kind: "form",
549
549
  turnId: crypto.randomUUID(),
550
550
  expectedInput: {
551
551
  schema: {
@@ -588,7 +588,7 @@ function renderAuthBlock(authMode) {
588
588
  return `{
589
589
  mode: "oauth2",
590
590
  flow: {
591
- start: async () => ({
591
+ start: async (_ctx) => ({
592
592
  kind: "redirect",
593
593
  turnId: crypto.randomUUID(),
594
594
  data: {
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "2.1.0-beta.11",
2
+ "version": "2.1.0-beta.12",
3
3
  "name": "@apifuse/provider-sdk",
4
4
  "private": false,
5
5
  "type": "module",
package/src/cli/create.ts CHANGED
@@ -734,8 +734,8 @@ function renderAuthBlock(authMode: CreateAuthMode): string {
734
734
  return `{
735
735
  mode: "credentials",
736
736
  flow: {
737
- start: async () => ({
738
- kind: "input",
737
+ start: async (_ctx) => ({
738
+ kind: "form",
739
739
  turnId: crypto.randomUUID(),
740
740
  expectedInput: {
741
741
  schema: {
@@ -778,7 +778,7 @@ function renderAuthBlock(authMode: CreateAuthMode): string {
778
778
  return `{
779
779
  mode: "oauth2",
780
780
  flow: {
781
- start: async () => ({
781
+ start: async (_ctx) => ({
782
782
  kind: "redirect",
783
783
  turnId: crypto.randomUUID(),
784
784
  data: {