@shipfox/api-runners 10.2.0 → 11.0.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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@shipfox/api-runners",
3
3
  "license": "MIT",
4
- "version": "10.2.0",
4
+ "version": "11.0.0",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/ShipfoxHQ/shipfox.git",
@@ -22,24 +22,24 @@
22
22
  "drizzle-orm": "^0.45.2",
23
23
  "zod": "^4.4.3",
24
24
  "@shipfox/api-common-dto": "9.2.0",
25
+ "@shipfox/api-auth-context": "11.0.0",
26
+ "@shipfox/api-auth-dto": "10.2.0",
25
27
  "@shipfox/api-runners-dto": "10.2.0",
26
28
  "@shipfox/api-workflows-dto": "10.0.0",
27
- "@shipfox/inter-module": "0.2.2",
28
29
  "@shipfox/config": "1.2.4",
30
+ "@shipfox/inter-module": "0.2.2",
29
31
  "@shipfox/node-drizzle": "0.3.4",
30
32
  "@shipfox/node-error-monitoring": "0.3.0",
31
- "@shipfox/node-module": "1.0.4",
32
33
  "@shipfox/node-auth-root-key": "0.2.3",
33
34
  "@shipfox/node-fastify": "0.4.0",
35
+ "@shipfox/node-module": "1.0.4",
34
36
  "@shipfox/node-opentelemetry": "0.6.3",
35
37
  "@shipfox/node-outbox": "0.2.6",
36
38
  "@shipfox/node-postgres": "0.4.4",
37
39
  "@shipfox/node-rate-limit": "0.3.2",
38
40
  "@shipfox/node-temporal": "0.4.4",
39
41
  "@shipfox/node-tokens": "0.3.2",
40
- "@shipfox/runner-labels": "0.1.3",
41
- "@shipfox/api-auth-dto": "10.2.0",
42
- "@shipfox/api-auth-context": "10.2.0"
42
+ "@shipfox/runner-labels": "0.1.3"
43
43
  },
44
44
  "imports": {
45
45
  "#*": "./dist/*"
@@ -50,7 +50,7 @@ describe('GET /workspaces/:workspaceId/runners/active', () => {
50
50
  beforeEach(async () => {
51
51
  await closeApp();
52
52
  workspaceId = crypto.randomUUID();
53
- authenticatedMemberships = [{workspaceId, role: 'admin'}];
53
+ authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
54
54
  app = await createApp({
55
55
  auth: [
56
56
  fakeUserAuth,
@@ -353,7 +353,13 @@ describe('GET /workspaces/:workspaceId/runners/active', () => {
353
353
  });
354
354
 
355
355
  it('returns 403 when the user is not a workspace member', async () => {
356
- authenticatedMemberships = [{workspaceId: crypto.randomUUID(), role: 'admin'}];
356
+ authenticatedMemberships = [
357
+ {
358
+ workspaceId: crypto.randomUUID(),
359
+ role: 'admin',
360
+ workspaceStatus: 'active',
361
+ },
362
+ ];
357
363
 
358
364
  const res = await app.inject({
359
365
  method: 'GET',
@@ -58,7 +58,7 @@ describe('manual registration token routes', () => {
58
58
  beforeEach(async () => {
59
59
  await closeApp();
60
60
  workspaceId = crypto.randomUUID();
61
- authenticatedMemberships = [{workspaceId, role: 'admin'}];
61
+ authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
62
62
  app = await createApp({
63
63
  auth: [
64
64
  fakeUserAuth,
@@ -109,7 +109,13 @@ describe('manual registration token routes', () => {
109
109
  });
110
110
 
111
111
  it('returns 403 when the user is not a workspace member', async () => {
112
- authenticatedMemberships = [{workspaceId: crypto.randomUUID(), role: 'admin'}];
112
+ authenticatedMemberships = [
113
+ {
114
+ workspaceId: crypto.randomUUID(),
115
+ role: 'admin',
116
+ workspaceStatus: 'active',
117
+ },
118
+ ];
113
119
 
114
120
  const res = await app.inject({
115
121
  method: 'GET',
@@ -45,7 +45,7 @@ describe('provisioner token routes', () => {
45
45
  beforeEach(async () => {
46
46
  await closeApp();
47
47
  workspaceId = crypto.randomUUID();
48
- authenticatedMemberships = [{workspaceId, role: 'admin'}];
48
+ authenticatedMemberships = [{workspaceId, role: 'admin', workspaceStatus: 'active'}];
49
49
  app = await createApp({
50
50
  auth: [fakeUserAuth, createProvisionerTokenAuthMethod()],
51
51
  routes: provisionerRoutes,
@@ -74,7 +74,13 @@ describe('provisioner token routes', () => {
74
74
  });
75
75
 
76
76
  it('returns 403 when the user is not a workspace member', async () => {
77
- authenticatedMemberships = [{workspaceId: crypto.randomUUID(), role: 'admin'}];
77
+ authenticatedMemberships = [
78
+ {
79
+ workspaceId: crypto.randomUUID(),
80
+ role: 'admin',
81
+ workspaceStatus: 'active',
82
+ },
83
+ ];
78
84
 
79
85
  const res = await app.inject({
80
86
  method: 'GET',