@backstage/backend-plugin-api 0.6.10-next.0 → 0.6.10-next.1

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,17 @@
1
1
  # @backstage/backend-plugin-api
2
2
 
3
+ ## 0.6.10-next.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 1f020fe: Support `token` in `readTree`, `readUrl` and `search`
8
+ - Updated dependencies
9
+ - @backstage/backend-tasks@0.5.15-next.1
10
+ - @backstage/config@1.1.1
11
+ - @backstage/types@1.1.1
12
+ - @backstage/plugin-auth-node@0.4.4-next.1
13
+ - @backstage/plugin-permission-common@0.7.12
14
+
3
15
  ## 0.6.10-next.0
4
16
 
5
17
  ### Patch Changes
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@backstage/backend-plugin-api",
3
- "version": "0.6.10-next.0",
3
+ "version": "0.6.10-next.1",
4
4
  "main": "../dist/alpha.cjs.js",
5
5
  "types": "../dist/alpha.d.ts"
6
6
  }
package/dist/index.d.ts CHANGED
@@ -83,6 +83,17 @@ type ReadUrlOptions = {
83
83
  * Not all reader implementations may take this field into account.
84
84
  */
85
85
  signal?: AbortSignal;
86
+ /**
87
+ * An optional token to use for authentication when reading the resources.
88
+ *
89
+ * @remarks
90
+ *
91
+ * By default all URL Readers will use the integrations config which is supplied
92
+ * when creating the Readers. Sometimes it might be desireable to use the already
93
+ * created URLReaders but with a different token, maybe that's supplied by the user
94
+ * at runtime.
95
+ */
96
+ token?: string;
86
97
  };
87
98
  /**
88
99
  * A response object for {@link UrlReaderService.readUrl} operations.
@@ -165,6 +176,17 @@ type ReadTreeOptions = {
165
176
  * Not all reader implementations may take this field into account.
166
177
  */
167
178
  signal?: AbortSignal;
179
+ /**
180
+ * An optional token to use for authentication when reading the resources.
181
+ *
182
+ * @remarks
183
+ *
184
+ * By default all URL Readers will use the integrations config which is supplied
185
+ * when creating the Readers. Sometimes it might be desireable to use the already
186
+ * created URLReaders but with a different token, maybe that's supplied by the user
187
+ * at runtime.
188
+ */
189
+ token?: string;
168
190
  };
169
191
  /**
170
192
  * Options that control {@link ReadTreeResponse.dir} execution.
@@ -257,6 +279,17 @@ type SearchOptions = {
257
279
  * Not all reader implementations may take this field into account.
258
280
  */
259
281
  signal?: AbortSignal;
282
+ /**
283
+ * An optional token to use for authentication when reading the resources.
284
+ *
285
+ * @remarks
286
+ *
287
+ * By default all URL Readers will use the integrations config which is supplied
288
+ * when creating the Readers. Sometimes it might be desireable to use the already
289
+ * created URLReaders but with a different token, maybe that's supplied by the user
290
+ * at runtime.
291
+ */
292
+ token?: string;
260
293
  };
261
294
  /**
262
295
  * The output of a search operation.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@backstage/backend-plugin-api",
3
3
  "description": "Core API used by Backstage backend plugins",
4
- "version": "0.6.10-next.0",
4
+ "version": "0.6.10-next.1",
5
5
  "main": "./dist/index.cjs.js",
6
6
  "types": "./dist/index.d.ts",
7
7
  "publishConfig": {
@@ -43,9 +43,9 @@
43
43
  "start": "backstage-cli package start"
44
44
  },
45
45
  "dependencies": {
46
- "@backstage/backend-tasks": "^0.5.15-next.0",
46
+ "@backstage/backend-tasks": "^0.5.15-next.1",
47
47
  "@backstage/config": "^1.1.1",
48
- "@backstage/plugin-auth-node": "^0.4.4-next.0",
48
+ "@backstage/plugin-auth-node": "^0.4.4-next.1",
49
49
  "@backstage/plugin-permission-common": "^0.7.12",
50
50
  "@backstage/types": "^1.1.1",
51
51
  "@types/express": "^4.17.6",
@@ -53,7 +53,7 @@
53
53
  "knex": "^3.0.0"
54
54
  },
55
55
  "devDependencies": {
56
- "@backstage/cli": "^0.25.2-next.0"
56
+ "@backstage/cli": "^0.25.2-next.1"
57
57
  },
58
58
  "files": [
59
59
  "dist",