@trigger.dev/plugins 0.0.0-prerelease-20260506134321 → 0.0.0-prerelease-20260508090504
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/dist/index.cjs +12 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +11 -24
- package/dist/index.d.ts +11 -24
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +4 -1
package/dist/index.cjs
CHANGED
|
@@ -1,4 +1,16 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var gitBranch = require('@trigger.dev/core/v3/utils/gitBranch');
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
Object.defineProperty(exports, "isValidGitBranchName", {
|
|
8
|
+
enumerable: true,
|
|
9
|
+
get: function () { return gitBranch.isValidGitBranchName; }
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "sanitizeBranchName", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function () { return gitBranch.sanitizeBranchName; }
|
|
14
|
+
});
|
|
3
15
|
//# sourceMappingURL=index.cjs.map
|
|
4
16
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs"}
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.cjs","sourcesContent":[]}
|
package/dist/index.d.cts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { AuthenticatedEnvironment } from '@trigger.dev/core/v3/auth/environment';
|
|
2
|
+
export { AuthenticatedEnvironment } from '@trigger.dev/core/v3/auth/environment';
|
|
3
|
+
export { isValidGitBranchName, sanitizeBranchName } from '@trigger.dev/core/v3/utils/gitBranch';
|
|
4
|
+
|
|
1
5
|
/**
|
|
2
6
|
* Plugin-owned metadata for a built-in system role. The plugin returns
|
|
3
7
|
* these in canonical order (highest authority first) so the dashboard
|
|
@@ -53,26 +57,9 @@ type RbacResource = {
|
|
|
53
57
|
id?: string;
|
|
54
58
|
[key: string]: unknown;
|
|
55
59
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
type: string;
|
|
60
|
-
apiKey: string;
|
|
61
|
-
pkApiKey: string;
|
|
62
|
-
organizationId: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
organization: {
|
|
65
|
-
id: string;
|
|
66
|
-
slug: string;
|
|
67
|
-
title: string;
|
|
68
|
-
};
|
|
69
|
-
project: {
|
|
70
|
-
id: string;
|
|
71
|
-
slug: string;
|
|
72
|
-
name: string;
|
|
73
|
-
externalRef: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
60
|
+
|
|
61
|
+
/** @deprecated Renamed to `AuthenticatedEnvironment`. Kept as alias for transitional code. */
|
|
62
|
+
type RbacEnvironment = AuthenticatedEnvironment;
|
|
76
63
|
type RbacUser = {
|
|
77
64
|
id: string;
|
|
78
65
|
email: string;
|
|
@@ -94,7 +81,7 @@ type BearerAuthResult = {
|
|
|
94
81
|
error: string;
|
|
95
82
|
} | {
|
|
96
83
|
ok: true;
|
|
97
|
-
environment:
|
|
84
|
+
environment: AuthenticatedEnvironment;
|
|
98
85
|
subject: RbacSubject;
|
|
99
86
|
ability: RbacAbility;
|
|
100
87
|
jwt?: {
|
|
@@ -129,6 +116,7 @@ interface RoleBaseAccessController {
|
|
|
129
116
|
allowJWT?: boolean;
|
|
130
117
|
}): Promise<BearerAuthResult>;
|
|
131
118
|
authenticateSession(request: Request, context: {
|
|
119
|
+
userId: string | null;
|
|
132
120
|
organizationId?: string;
|
|
133
121
|
projectId?: string;
|
|
134
122
|
}): Promise<SessionAuthResult>;
|
|
@@ -143,6 +131,7 @@ interface RoleBaseAccessController {
|
|
|
143
131
|
allowJWT?: boolean;
|
|
144
132
|
}): Promise<BearerAuthResult>;
|
|
145
133
|
authenticateAuthorizeSession(request: Request, context: {
|
|
134
|
+
userId: string | null;
|
|
146
135
|
organizationId?: string;
|
|
147
136
|
projectId?: string;
|
|
148
137
|
}, check: {
|
|
@@ -204,9 +193,7 @@ type RoleAssignmentResult = {
|
|
|
204
193
|
error: string;
|
|
205
194
|
};
|
|
206
195
|
interface RoleBasedAccessControlPlugin {
|
|
207
|
-
create(
|
|
208
|
-
getSessionUserId: (request: Request) => Promise<string | null>;
|
|
209
|
-
}): RoleBaseAccessController | Promise<RoleBaseAccessController>;
|
|
196
|
+
create(): RoleBaseAccessController | Promise<RoleBaseAccessController>;
|
|
210
197
|
}
|
|
211
198
|
|
|
212
199
|
export type { BearerAuthResult, PatAuthResult, Permission, RbacAbility, RbacEnvironment, RbacResource, RbacSubject, RbacUser, Role, RoleAssignmentResult, RoleBaseAccessController, RoleBasedAccessControlPlugin, RoleMutationResult, SessionAuthResult, SystemRole };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import { AuthenticatedEnvironment } from '@trigger.dev/core/v3/auth/environment';
|
|
2
|
+
export { AuthenticatedEnvironment } from '@trigger.dev/core/v3/auth/environment';
|
|
3
|
+
export { isValidGitBranchName, sanitizeBranchName } from '@trigger.dev/core/v3/utils/gitBranch';
|
|
4
|
+
|
|
1
5
|
/**
|
|
2
6
|
* Plugin-owned metadata for a built-in system role. The plugin returns
|
|
3
7
|
* these in canonical order (highest authority first) so the dashboard
|
|
@@ -53,26 +57,9 @@ type RbacResource = {
|
|
|
53
57
|
id?: string;
|
|
54
58
|
[key: string]: unknown;
|
|
55
59
|
};
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
type: string;
|
|
60
|
-
apiKey: string;
|
|
61
|
-
pkApiKey: string;
|
|
62
|
-
organizationId: string;
|
|
63
|
-
projectId: string;
|
|
64
|
-
organization: {
|
|
65
|
-
id: string;
|
|
66
|
-
slug: string;
|
|
67
|
-
title: string;
|
|
68
|
-
};
|
|
69
|
-
project: {
|
|
70
|
-
id: string;
|
|
71
|
-
slug: string;
|
|
72
|
-
name: string;
|
|
73
|
-
externalRef: string;
|
|
74
|
-
};
|
|
75
|
-
};
|
|
60
|
+
|
|
61
|
+
/** @deprecated Renamed to `AuthenticatedEnvironment`. Kept as alias for transitional code. */
|
|
62
|
+
type RbacEnvironment = AuthenticatedEnvironment;
|
|
76
63
|
type RbacUser = {
|
|
77
64
|
id: string;
|
|
78
65
|
email: string;
|
|
@@ -94,7 +81,7 @@ type BearerAuthResult = {
|
|
|
94
81
|
error: string;
|
|
95
82
|
} | {
|
|
96
83
|
ok: true;
|
|
97
|
-
environment:
|
|
84
|
+
environment: AuthenticatedEnvironment;
|
|
98
85
|
subject: RbacSubject;
|
|
99
86
|
ability: RbacAbility;
|
|
100
87
|
jwt?: {
|
|
@@ -129,6 +116,7 @@ interface RoleBaseAccessController {
|
|
|
129
116
|
allowJWT?: boolean;
|
|
130
117
|
}): Promise<BearerAuthResult>;
|
|
131
118
|
authenticateSession(request: Request, context: {
|
|
119
|
+
userId: string | null;
|
|
132
120
|
organizationId?: string;
|
|
133
121
|
projectId?: string;
|
|
134
122
|
}): Promise<SessionAuthResult>;
|
|
@@ -143,6 +131,7 @@ interface RoleBaseAccessController {
|
|
|
143
131
|
allowJWT?: boolean;
|
|
144
132
|
}): Promise<BearerAuthResult>;
|
|
145
133
|
authenticateAuthorizeSession(request: Request, context: {
|
|
134
|
+
userId: string | null;
|
|
146
135
|
organizationId?: string;
|
|
147
136
|
projectId?: string;
|
|
148
137
|
}, check: {
|
|
@@ -204,9 +193,7 @@ type RoleAssignmentResult = {
|
|
|
204
193
|
error: string;
|
|
205
194
|
};
|
|
206
195
|
interface RoleBasedAccessControlPlugin {
|
|
207
|
-
create(
|
|
208
|
-
getSessionUserId: (request: Request) => Promise<string | null>;
|
|
209
|
-
}): RoleBaseAccessController | Promise<RoleBaseAccessController>;
|
|
196
|
+
create(): RoleBaseAccessController | Promise<RoleBaseAccessController>;
|
|
210
197
|
}
|
|
211
198
|
|
|
212
199
|
export type { BearerAuthResult, PatAuthResult, Permission, RbacAbility, RbacEnvironment, RbacResource, RbacSubject, RbacUser, Role, RoleAssignmentResult, RoleBaseAccessController, RoleBasedAccessControlPlugin, RoleMutationResult, SessionAuthResult, SystemRole };
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js"}
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"index.js","sourcesContent":[]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@trigger.dev/plugins",
|
|
3
|
-
"version": "0.0.0-prerelease-
|
|
3
|
+
"version": "0.0.0-prerelease-20260508090504",
|
|
4
4
|
"description": "Plugin contracts and interfaces for Trigger.dev",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -15,6 +15,9 @@
|
|
|
15
15
|
"files": [
|
|
16
16
|
"dist"
|
|
17
17
|
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@trigger.dev/core": "0.0.0-prerelease-20260508090504"
|
|
20
|
+
},
|
|
18
21
|
"devDependencies": {
|
|
19
22
|
"@types/node": "^20.14.14",
|
|
20
23
|
"rimraf": "6.0.1",
|