@n8n/stores 2.38.0 → 2.39.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/dist/cloudPlan.store.d.cts +64 -64
- package/dist/rbac.store.cjs +1 -0
- package/dist/rbac.store.cjs.map +1 -1
- package/dist/rbac.store.d.cts +33 -27
- package/dist/rbac.store.d.mts +33 -27
- package/dist/rbac.store.mjs +1 -0
- package/dist/rbac.store.mjs.map +1 -1
- package/dist/roles.store.d.cts +21 -21
- package/dist/roles.store.d.mts +21 -21
- package/dist/settings.store.d.cts +289 -244
- package/dist/settings.store.d.mts +289 -244
- package/dist/settings2.store.cjs +2 -0
- package/dist/settings2.store.cjs.map +1 -1
- package/dist/settings2.store.mjs +2 -0
- package/dist/settings2.store.mjs.map +1 -1
- package/dist/useAgentRequestStore.d.cts +6 -6
- package/dist/useRootStore.d.cts +75 -75
- package/dist/useRootStore.d.mts +75 -75
- package/dist/users.store.d.cts +55 -55
- package/dist/users.store.d.mts +51 -51
- package/dist/versions.store.d.cts +30 -30
- package/dist/versions.store.d.mts +28 -28
- package/package.json +15 -15
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as vue422 from "vue";
|
|
2
2
|
import * as pinia7 from "pinia";
|
|
3
3
|
import { Cloud, InstanceUsage } from "@n8n/rest-api-client/api/cloudPlans";
|
|
4
4
|
|
|
@@ -56,17 +56,17 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
56
56
|
} | null;
|
|
57
57
|
loadingPlan: boolean;
|
|
58
58
|
};
|
|
59
|
-
usageLeft:
|
|
59
|
+
usageLeft: vue422.ComputedRef<{
|
|
60
60
|
workflowsLeft: number;
|
|
61
61
|
executionsLeft: number;
|
|
62
62
|
}>;
|
|
63
|
-
trialDaysLeft:
|
|
64
|
-
trialTimeLeft:
|
|
63
|
+
trialDaysLeft: vue422.ComputedRef<number>;
|
|
64
|
+
trialTimeLeft: vue422.ComputedRef<{
|
|
65
65
|
count: number;
|
|
66
66
|
unit: "days" | "hours" | "minutes";
|
|
67
67
|
}>;
|
|
68
|
-
userIsTrialing:
|
|
69
|
-
currentPlanData:
|
|
68
|
+
userIsTrialing: vue422.ComputedRef<boolean>;
|
|
69
|
+
currentPlanData: vue422.ComputedRef<{
|
|
70
70
|
planId: number;
|
|
71
71
|
monthlyExecutionsLimit: number;
|
|
72
72
|
activeWorkflowsLimit: number;
|
|
@@ -103,15 +103,15 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
103
103
|
} | undefined;
|
|
104
104
|
licenseFeatures?: Record<string, number> | undefined;
|
|
105
105
|
} | null>;
|
|
106
|
-
currentUsageData:
|
|
106
|
+
currentUsageData: vue422.ComputedRef<{
|
|
107
107
|
timeframe?: string | undefined;
|
|
108
108
|
executions: number;
|
|
109
109
|
activeWorkflows: number;
|
|
110
110
|
} | null>;
|
|
111
|
-
trialExpired:
|
|
112
|
-
allExecutionsUsed:
|
|
113
|
-
hasCloudPlan:
|
|
114
|
-
currentUserCloudInfo:
|
|
111
|
+
trialExpired: vue422.ComputedRef<boolean | undefined>;
|
|
112
|
+
allExecutionsUsed: vue422.ComputedRef<boolean>;
|
|
113
|
+
hasCloudPlan: vue422.ComputedRef<boolean>;
|
|
114
|
+
currentUserCloudInfo: vue422.Ref<{
|
|
115
115
|
confirmed: boolean;
|
|
116
116
|
username: string;
|
|
117
117
|
email: string;
|
|
@@ -144,10 +144,10 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
144
144
|
getAutoLoginCode: () => Promise<{
|
|
145
145
|
code: string;
|
|
146
146
|
}>;
|
|
147
|
-
selectedApps:
|
|
148
|
-
codingSkill:
|
|
149
|
-
shouldShowBanner:
|
|
150
|
-
bannerConfig:
|
|
147
|
+
selectedApps: vue422.ComputedRef<string[] | undefined>;
|
|
148
|
+
codingSkill: vue422.ComputedRef<number>;
|
|
149
|
+
shouldShowBanner: vue422.ComputedRef<boolean>;
|
|
150
|
+
bannerConfig: vue422.ComputedRef<{
|
|
151
151
|
timeLeft?: {
|
|
152
152
|
text?: string | undefined;
|
|
153
153
|
} | undefined;
|
|
@@ -164,14 +164,14 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
164
164
|
dismissible?: boolean | undefined;
|
|
165
165
|
forceShow?: boolean | undefined;
|
|
166
166
|
} | undefined>;
|
|
167
|
-
bannerForceShow:
|
|
168
|
-
isBannerDismissed:
|
|
169
|
-
bannerTimeLeft:
|
|
167
|
+
bannerForceShow: vue422.ComputedRef<boolean>;
|
|
168
|
+
isBannerDismissed: vue422.ComputedRef<boolean>;
|
|
169
|
+
bannerTimeLeft: vue422.ComputedRef<{
|
|
170
170
|
show: boolean;
|
|
171
171
|
text: string | undefined;
|
|
172
172
|
}>;
|
|
173
|
-
showExecutions:
|
|
174
|
-
bannerCta:
|
|
173
|
+
showExecutions: vue422.ComputedRef<boolean>;
|
|
174
|
+
bannerCta: vue422.ComputedRef<{
|
|
175
175
|
text: string;
|
|
176
176
|
icon: string;
|
|
177
177
|
size: "small" | "medium";
|
|
@@ -179,8 +179,8 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
179
179
|
variant: "success" | "solid" | "subtle" | "ghost" | "outline" | "destructive" | undefined;
|
|
180
180
|
href: string | undefined;
|
|
181
181
|
}>;
|
|
182
|
-
bannerIcon:
|
|
183
|
-
bannerDismissible:
|
|
182
|
+
bannerIcon: vue422.ComputedRef<string | undefined>;
|
|
183
|
+
bannerDismissible: vue422.ComputedRef<boolean>;
|
|
184
184
|
setIsInstanceOwner: (getter: () => boolean) => void;
|
|
185
185
|
}, "state" | "currentUserCloudInfo">, Pick<{
|
|
186
186
|
state: {
|
|
@@ -229,17 +229,17 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
229
229
|
} | null;
|
|
230
230
|
loadingPlan: boolean;
|
|
231
231
|
};
|
|
232
|
-
usageLeft:
|
|
232
|
+
usageLeft: vue422.ComputedRef<{
|
|
233
233
|
workflowsLeft: number;
|
|
234
234
|
executionsLeft: number;
|
|
235
235
|
}>;
|
|
236
|
-
trialDaysLeft:
|
|
237
|
-
trialTimeLeft:
|
|
236
|
+
trialDaysLeft: vue422.ComputedRef<number>;
|
|
237
|
+
trialTimeLeft: vue422.ComputedRef<{
|
|
238
238
|
count: number;
|
|
239
239
|
unit: "days" | "hours" | "minutes";
|
|
240
240
|
}>;
|
|
241
|
-
userIsTrialing:
|
|
242
|
-
currentPlanData:
|
|
241
|
+
userIsTrialing: vue422.ComputedRef<boolean>;
|
|
242
|
+
currentPlanData: vue422.ComputedRef<{
|
|
243
243
|
planId: number;
|
|
244
244
|
monthlyExecutionsLimit: number;
|
|
245
245
|
activeWorkflowsLimit: number;
|
|
@@ -276,15 +276,15 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
276
276
|
} | undefined;
|
|
277
277
|
licenseFeatures?: Record<string, number> | undefined;
|
|
278
278
|
} | null>;
|
|
279
|
-
currentUsageData:
|
|
279
|
+
currentUsageData: vue422.ComputedRef<{
|
|
280
280
|
timeframe?: string | undefined;
|
|
281
281
|
executions: number;
|
|
282
282
|
activeWorkflows: number;
|
|
283
283
|
} | null>;
|
|
284
|
-
trialExpired:
|
|
285
|
-
allExecutionsUsed:
|
|
286
|
-
hasCloudPlan:
|
|
287
|
-
currentUserCloudInfo:
|
|
284
|
+
trialExpired: vue422.ComputedRef<boolean | undefined>;
|
|
285
|
+
allExecutionsUsed: vue422.ComputedRef<boolean>;
|
|
286
|
+
hasCloudPlan: vue422.ComputedRef<boolean>;
|
|
287
|
+
currentUserCloudInfo: vue422.Ref<{
|
|
288
288
|
confirmed: boolean;
|
|
289
289
|
username: string;
|
|
290
290
|
email: string;
|
|
@@ -317,10 +317,10 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
317
317
|
getAutoLoginCode: () => Promise<{
|
|
318
318
|
code: string;
|
|
319
319
|
}>;
|
|
320
|
-
selectedApps:
|
|
321
|
-
codingSkill:
|
|
322
|
-
shouldShowBanner:
|
|
323
|
-
bannerConfig:
|
|
320
|
+
selectedApps: vue422.ComputedRef<string[] | undefined>;
|
|
321
|
+
codingSkill: vue422.ComputedRef<number>;
|
|
322
|
+
shouldShowBanner: vue422.ComputedRef<boolean>;
|
|
323
|
+
bannerConfig: vue422.ComputedRef<{
|
|
324
324
|
timeLeft?: {
|
|
325
325
|
text?: string | undefined;
|
|
326
326
|
} | undefined;
|
|
@@ -337,14 +337,14 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
337
337
|
dismissible?: boolean | undefined;
|
|
338
338
|
forceShow?: boolean | undefined;
|
|
339
339
|
} | undefined>;
|
|
340
|
-
bannerForceShow:
|
|
341
|
-
isBannerDismissed:
|
|
342
|
-
bannerTimeLeft:
|
|
340
|
+
bannerForceShow: vue422.ComputedRef<boolean>;
|
|
341
|
+
isBannerDismissed: vue422.ComputedRef<boolean>;
|
|
342
|
+
bannerTimeLeft: vue422.ComputedRef<{
|
|
343
343
|
show: boolean;
|
|
344
344
|
text: string | undefined;
|
|
345
345
|
}>;
|
|
346
|
-
showExecutions:
|
|
347
|
-
bannerCta:
|
|
346
|
+
showExecutions: vue422.ComputedRef<boolean>;
|
|
347
|
+
bannerCta: vue422.ComputedRef<{
|
|
348
348
|
text: string;
|
|
349
349
|
icon: string;
|
|
350
350
|
size: "small" | "medium";
|
|
@@ -352,8 +352,8 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
352
352
|
variant: "success" | "solid" | "subtle" | "ghost" | "outline" | "destructive" | undefined;
|
|
353
353
|
href: string | undefined;
|
|
354
354
|
}>;
|
|
355
|
-
bannerIcon:
|
|
356
|
-
bannerDismissible:
|
|
355
|
+
bannerIcon: vue422.ComputedRef<string | undefined>;
|
|
356
|
+
bannerDismissible: vue422.ComputedRef<boolean>;
|
|
357
357
|
setIsInstanceOwner: (getter: () => boolean) => void;
|
|
358
358
|
}, "userIsTrialing" | "bannerConfig" | "selectedApps" | "showExecutions" | "usageLeft" | "trialDaysLeft" | "trialTimeLeft" | "currentPlanData" | "currentUsageData" | "trialExpired" | "allExecutionsUsed" | "hasCloudPlan" | "codingSkill" | "shouldShowBanner" | "bannerForceShow" | "isBannerDismissed" | "bannerTimeLeft" | "bannerCta" | "bannerIcon" | "bannerDismissible">, Pick<{
|
|
359
359
|
state: {
|
|
@@ -402,17 +402,17 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
402
402
|
} | null;
|
|
403
403
|
loadingPlan: boolean;
|
|
404
404
|
};
|
|
405
|
-
usageLeft:
|
|
405
|
+
usageLeft: vue422.ComputedRef<{
|
|
406
406
|
workflowsLeft: number;
|
|
407
407
|
executionsLeft: number;
|
|
408
408
|
}>;
|
|
409
|
-
trialDaysLeft:
|
|
410
|
-
trialTimeLeft:
|
|
409
|
+
trialDaysLeft: vue422.ComputedRef<number>;
|
|
410
|
+
trialTimeLeft: vue422.ComputedRef<{
|
|
411
411
|
count: number;
|
|
412
412
|
unit: "days" | "hours" | "minutes";
|
|
413
413
|
}>;
|
|
414
|
-
userIsTrialing:
|
|
415
|
-
currentPlanData:
|
|
414
|
+
userIsTrialing: vue422.ComputedRef<boolean>;
|
|
415
|
+
currentPlanData: vue422.ComputedRef<{
|
|
416
416
|
planId: number;
|
|
417
417
|
monthlyExecutionsLimit: number;
|
|
418
418
|
activeWorkflowsLimit: number;
|
|
@@ -449,15 +449,15 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
449
449
|
} | undefined;
|
|
450
450
|
licenseFeatures?: Record<string, number> | undefined;
|
|
451
451
|
} | null>;
|
|
452
|
-
currentUsageData:
|
|
452
|
+
currentUsageData: vue422.ComputedRef<{
|
|
453
453
|
timeframe?: string | undefined;
|
|
454
454
|
executions: number;
|
|
455
455
|
activeWorkflows: number;
|
|
456
456
|
} | null>;
|
|
457
|
-
trialExpired:
|
|
458
|
-
allExecutionsUsed:
|
|
459
|
-
hasCloudPlan:
|
|
460
|
-
currentUserCloudInfo:
|
|
457
|
+
trialExpired: vue422.ComputedRef<boolean | undefined>;
|
|
458
|
+
allExecutionsUsed: vue422.ComputedRef<boolean>;
|
|
459
|
+
hasCloudPlan: vue422.ComputedRef<boolean>;
|
|
460
|
+
currentUserCloudInfo: vue422.Ref<{
|
|
461
461
|
confirmed: boolean;
|
|
462
462
|
username: string;
|
|
463
463
|
email: string;
|
|
@@ -490,10 +490,10 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
490
490
|
getAutoLoginCode: () => Promise<{
|
|
491
491
|
code: string;
|
|
492
492
|
}>;
|
|
493
|
-
selectedApps:
|
|
494
|
-
codingSkill:
|
|
495
|
-
shouldShowBanner:
|
|
496
|
-
bannerConfig:
|
|
493
|
+
selectedApps: vue422.ComputedRef<string[] | undefined>;
|
|
494
|
+
codingSkill: vue422.ComputedRef<number>;
|
|
495
|
+
shouldShowBanner: vue422.ComputedRef<boolean>;
|
|
496
|
+
bannerConfig: vue422.ComputedRef<{
|
|
497
497
|
timeLeft?: {
|
|
498
498
|
text?: string | undefined;
|
|
499
499
|
} | undefined;
|
|
@@ -510,14 +510,14 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
510
510
|
dismissible?: boolean | undefined;
|
|
511
511
|
forceShow?: boolean | undefined;
|
|
512
512
|
} | undefined>;
|
|
513
|
-
bannerForceShow:
|
|
514
|
-
isBannerDismissed:
|
|
515
|
-
bannerTimeLeft:
|
|
513
|
+
bannerForceShow: vue422.ComputedRef<boolean>;
|
|
514
|
+
isBannerDismissed: vue422.ComputedRef<boolean>;
|
|
515
|
+
bannerTimeLeft: vue422.ComputedRef<{
|
|
516
516
|
show: boolean;
|
|
517
517
|
text: string | undefined;
|
|
518
518
|
}>;
|
|
519
|
-
showExecutions:
|
|
520
|
-
bannerCta:
|
|
519
|
+
showExecutions: vue422.ComputedRef<boolean>;
|
|
520
|
+
bannerCta: vue422.ComputedRef<{
|
|
521
521
|
text: string;
|
|
522
522
|
icon: string;
|
|
523
523
|
size: "small" | "medium";
|
|
@@ -525,8 +525,8 @@ declare const useCloudPlanStore: pinia7.StoreDefinition<"cloudPlan", Pick<{
|
|
|
525
525
|
variant: "success" | "solid" | "subtle" | "ghost" | "outline" | "destructive" | undefined;
|
|
526
526
|
href: string | undefined;
|
|
527
527
|
}>;
|
|
528
|
-
bannerIcon:
|
|
529
|
-
bannerDismissible:
|
|
528
|
+
bannerIcon: vue422.ComputedRef<string | undefined>;
|
|
529
|
+
bannerDismissible: vue422.ComputedRef<boolean>;
|
|
530
530
|
setIsInstanceOwner: (getter: () => boolean) => void;
|
|
531
531
|
}, "reset" | "initialize" | "generateCloudDashboardAutoLoginLink" | "getOwnerCurrentPlan" | "getInstanceCurrentUsage" | "checkForCloudPlanData" | "fetchUserCloudAccount" | "getAutoLoginCode" | "setIsInstanceOwner">>;
|
|
532
532
|
//#endregion
|
package/dist/rbac.store.cjs
CHANGED
package/dist/rbac.store.cjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rbac.store.cjs","names":["STORES"],"sources":["../src/rbac.store.ts"],"sourcesContent":["import type { Role } from '@n8n/api-types';\nimport { hasScope as genericHasScope } from '@n8n/permissions';\nimport type { ScopeOptions, Scope, Resource } from '@n8n/permissions';\nimport { defineStore } from 'pinia';\nimport { ref } from 'vue';\n\nimport { STORES } from './constants';\n\nexport const useRBACStore = defineStore(STORES.RBAC, () => {\n\tconst globalRoles = ref<Role[]>([]);\n\tconst rolesByProjectId = ref<Record<string, string[]>>({});\n\n\tconst globalScopes = ref<Scope[]>([]);\n\tconst scopesByProjectId = ref<Record<string, Scope[]>>({});\n\tconst scopesByResourceId = ref<Record<Resource, Record<string, Scope[]>>>({\n\t\tagent: {},\n\t\taiAssistant: {},\n\t\tworkflow: {},\n\t\ttag: {},\n\t\tannotationTag: {},\n\t\tuser: {},\n\t\tcredential: {},\n\t\tvariable: {},\n\t\tprojectVariable: {},\n\t\tsourceControl: {},\n\t\tgitConnection: {},\n\t\texternalSecretsProvider: {},\n\t\texternalSecret: {},\n\t\tproject: {},\n\t\torchestration: {},\n\t\tworkersView: {},\n\t\teventBusDestination: {},\n\t\tauditLogs: {},\n\t\tbanner: {},\n\t\tcommunity: {},\n\t\tcommunityPackage: {},\n\t\tldap: {},\n\t\tlicense: {},\n\t\tlogStreaming: {},\n\t\tsaml: {},\n\t\toidc: {},\n\t\tprovisioning: {},\n\t\tsecurityAudit: {},\n\t\tfolder: {},\n\t\tinsights: {},\n\t\tdataTable: {},\n\t\texecution: {},\n\t\ttestRun: {},\n\t\tworkflowTags: {},\n\t\trole: {},\n\t\tmcp: {},\n\t\tmcpApiKey: {},\n\t\tchatHub: {},\n\t\tchatHubAgent: {},\n\t\tbreakingChanges: {},\n\t\tapiKey: {},\n\t\tencryptionKey: {},\n\t\tcredentialResolver: {},\n\t\tinstanceAi: {},\n\t\tsecuritySettings: {},\n\t\troleMappingRule: {},\n\t\totel: {},\n\t});\n\n\tfunction addGlobalRole(role: Role) {\n\t\tif (!globalRoles.value.includes(role)) {\n\t\t\tglobalRoles.value.push(role);\n\t\t}\n\t}\n\n\tfunction hasRole(role: Role) {\n\t\treturn globalRoles.value.includes(role);\n\t}\n\n\tfunction addGlobalScope(scope: Scope) {\n\t\tif (!globalScopes.value.includes(scope)) {\n\t\t\tglobalScopes.value.push(scope);\n\t\t}\n\t}\n\n\tfunction setGlobalScopes(scopes: Scope[]) {\n\t\tglobalScopes.value = scopes;\n\t}\n\n\tfunction addProjectScope(\n\t\tscope: Scope,\n\t\tcontext: {\n\t\t\tprojectId: string;\n\t\t},\n\t) {\n\t\tif (!scopesByProjectId.value[context.projectId]) {\n\t\t\tscopesByProjectId.value[context.projectId] = [];\n\t\t}\n\n\t\tif (!scopesByProjectId.value[context.projectId].includes(scope)) {\n\t\t\tscopesByProjectId.value[context.projectId].push(scope);\n\t\t}\n\t}\n\n\tfunction addResourceScope(\n\t\tscope: Scope,\n\t\tcontext: {\n\t\t\tresourceType: Resource;\n\t\t\tresourceId: string;\n\t\t},\n\t) {\n\t\tconst scopesByResourceType = scopesByResourceId.value[context.resourceType];\n\t\tif (!scopesByResourceType[context.resourceId]) {\n\t\t\tscopesByResourceType[context.resourceId] = [];\n\t\t}\n\n\t\tif (!scopesByResourceType[context.resourceId].includes(scope)) {\n\t\t\tscopesByResourceType[context.resourceId].push(scope);\n\t\t}\n\t}\n\n\tfunction hasScope(\n\t\tscope: Scope | Scope[],\n\t\tcontext?: {\n\t\t\tresourceType?: Resource;\n\t\t\tresourceId?: string;\n\t\t\tprojectId?: string;\n\t\t},\n\t\toptions?: ScopeOptions,\n\t): boolean {\n\t\treturn genericHasScope(\n\t\t\tscope,\n\t\t\t{\n\t\t\t\tglobal: globalScopes.value,\n\t\t\t\tproject: context?.projectId ? scopesByProjectId.value[context.projectId] : [],\n\t\t\t\tresource:\n\t\t\t\t\tcontext?.resourceType && context?.resourceId\n\t\t\t\t\t\t? scopesByResourceId.value[context.resourceType][context.resourceId]\n\t\t\t\t\t\t: [],\n\t\t\t},\n\t\t\tundefined,\n\t\t\toptions,\n\t\t);\n\t}\n\n\treturn {\n\t\tglobalRoles,\n\t\trolesByProjectId,\n\t\tglobalScopes,\n\t\tscopesByProjectId,\n\t\tscopesByResourceId,\n\t\taddGlobalRole,\n\t\thasRole,\n\t\taddGlobalScope,\n\t\tsetGlobalScopes,\n\t\taddProjectScope,\n\t\taddResourceScope,\n\t\thasScope,\n\t};\n});\n"],"mappings":";;;;;;;AAQA,MAAa,sCAA2BA,yBAAO,YAAY;CAC1D,MAAM,2BAA0B,EAAE,CAAC;CACnC,MAAM,gCAAiD,EAAE,CAAC;CAE1D,MAAM,4BAA4B,EAAE,CAAC;CACrC,MAAM,iCAAiD,EAAE,CAAC;CAC1D,MAAM,kCAAoE;EACzE,OAAO,EAAE;EACT,aAAa,EAAE;EACf,UAAU,EAAE;EACZ,KAAK,EAAE;EACP,eAAe,EAAE;EACjB,MAAM,EAAE;EACR,YAAY,EAAE;EACd,UAAU,EAAE;EACZ,iBAAiB,EAAE;EACnB,eAAe,EAAE;EACjB,eAAe,EAAE;EACjB,yBAAyB,EAAE;EAC3B,gBAAgB,EAAE;EAClB,SAAS,EAAE;EACX,eAAe,EAAE;EACjB,aAAa,EAAE;EACf,qBAAqB,EAAE;EACvB,WAAW,EAAE;EACb,QAAQ,EAAE;EACV,WAAW,EAAE;EACb,kBAAkB,EAAE;EACpB,MAAM,EAAE;EACR,SAAS,EAAE;EACX,cAAc,EAAE;EAChB,MAAM,EAAE;EACR,MAAM,EAAE;EACR,cAAc,EAAE;EAChB,eAAe,EAAE;EACjB,QAAQ,EAAE;EACV,UAAU,EAAE;EACZ,WAAW,EAAE;EACb,WAAW,EAAE;EACb,SAAS,EAAE;EACX,cAAc,EAAE;EAChB,MAAM,EAAE;EACR,KAAK,EAAE;EACP,WAAW,EAAE;EACb,SAAS,EAAE;EACX,cAAc,EAAE;EAChB,iBAAiB,EAAE;EACnB,QAAQ,EAAE;EACV,eAAe,EAAE;EACjB,oBAAoB,EAAE;EACtB,YAAY,EAAE;EACd,kBAAkB,EAAE;EACpB,iBAAiB,EAAE;EACnB,MAAM,EAAE;EACR,CAAC;CAEF,SAAS,cAAc,MAAY;AAClC,MAAI,CAAC,YAAY,MAAM,SAAS,KAAK,CACpC,aAAY,MAAM,KAAK,KAAK;;CAI9B,SAAS,QAAQ,MAAY;AAC5B,SAAO,YAAY,MAAM,SAAS,KAAK;;CAGxC,SAAS,eAAe,OAAc;AACrC,MAAI,CAAC,aAAa,MAAM,SAAS,MAAM,CACtC,cAAa,MAAM,KAAK,MAAM;;CAIhC,SAAS,gBAAgB,QAAiB;AACzC,eAAa,QAAQ;;CAGtB,SAAS,gBACR,OACA,SAGC;AACD,MAAI,CAAC,kBAAkB,MAAM,QAAQ,WACpC,mBAAkB,MAAM,QAAQ,aAAa,EAAE;AAGhD,MAAI,CAAC,kBAAkB,MAAM,QAAQ,WAAW,SAAS,MAAM,CAC9D,mBAAkB,MAAM,QAAQ,WAAW,KAAK,MAAM;;CAIxD,SAAS,iBACR,OACA,SAIC;EACD,MAAM,uBAAuB,mBAAmB,MAAM,QAAQ;AAC9D,MAAI,CAAC,qBAAqB,QAAQ,YACjC,sBAAqB,QAAQ,cAAc,EAAE;AAG9C,MAAI,CAAC,qBAAqB,QAAQ,YAAY,SAAS,MAAM,CAC5D,sBAAqB,QAAQ,YAAY,KAAK,MAAM;;CAItD,SAAS,SACR,OACA,SAKA,SACU;AACV,yCACC,OACA;GACC,QAAQ,aAAa;GACrB,SAAS,SAAS,YAAY,kBAAkB,MAAM,QAAQ,aAAa,EAAE;GAC7E,UACC,SAAS,gBAAgB,SAAS,aAC/B,mBAAmB,MAAM,QAAQ,cAAc,QAAQ,cACvD,EAAE;GACN,EACD,QACA,QACA;;AAGF,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|
|
1
|
+
{"version":3,"file":"rbac.store.cjs","names":["STORES"],"sources":["../src/rbac.store.ts"],"sourcesContent":["import type { Role } from '@n8n/api-types';\nimport { hasScope as genericHasScope } from '@n8n/permissions';\nimport type { ScopeOptions, Scope, Resource } from '@n8n/permissions';\nimport { defineStore } from 'pinia';\nimport { ref } from 'vue';\n\nimport { STORES } from './constants';\n\nexport const useRBACStore = defineStore(STORES.RBAC, () => {\n\tconst globalRoles = ref<Role[]>([]);\n\tconst rolesByProjectId = ref<Record<string, string[]>>({});\n\n\tconst globalScopes = ref<Scope[]>([]);\n\tconst scopesByProjectId = ref<Record<string, Scope[]>>({});\n\tconst scopesByResourceId = ref<Record<Resource, Record<string, Scope[]>>>({\n\t\tagent: {},\n\t\taiAssistant: {},\n\t\tworkflow: {},\n\t\ttag: {},\n\t\tannotationTag: {},\n\t\tuser: {},\n\t\tcredential: {},\n\t\tvariable: {},\n\t\tprojectVariable: {},\n\t\tsourceControl: {},\n\t\tgitConnection: {},\n\t\texternalSecretsProvider: {},\n\t\texternalSecret: {},\n\t\tproject: {},\n\t\torchestration: {},\n\t\tworkersView: {},\n\t\teventBusDestination: {},\n\t\tauditLogs: {},\n\t\tbanner: {},\n\t\tcommunity: {},\n\t\tcommunityPackage: {},\n\t\tldap: {},\n\t\tlicense: {},\n\t\tlogStreaming: {},\n\t\tnodeTypePolicy: {},\n\t\tsaml: {},\n\t\toidc: {},\n\t\tprovisioning: {},\n\t\tsecurityAudit: {},\n\t\tfolder: {},\n\t\tinsights: {},\n\t\tdataTable: {},\n\t\texecution: {},\n\t\ttestRun: {},\n\t\tworkflowTags: {},\n\t\trole: {},\n\t\tmcp: {},\n\t\tmcpApiKey: {},\n\t\tchatHub: {},\n\t\tchatHubAgent: {},\n\t\tbreakingChanges: {},\n\t\tapiKey: {},\n\t\tencryptionKey: {},\n\t\tcredentialResolver: {},\n\t\tinstanceAi: {},\n\t\tsecuritySettings: {},\n\t\troleMappingRule: {},\n\t\totel: {},\n\t});\n\n\tfunction addGlobalRole(role: Role) {\n\t\tif (!globalRoles.value.includes(role)) {\n\t\t\tglobalRoles.value.push(role);\n\t\t}\n\t}\n\n\tfunction hasRole(role: Role) {\n\t\treturn globalRoles.value.includes(role);\n\t}\n\n\tfunction addGlobalScope(scope: Scope) {\n\t\tif (!globalScopes.value.includes(scope)) {\n\t\t\tglobalScopes.value.push(scope);\n\t\t}\n\t}\n\n\tfunction setGlobalScopes(scopes: Scope[]) {\n\t\tglobalScopes.value = scopes;\n\t}\n\n\tfunction addProjectScope(\n\t\tscope: Scope,\n\t\tcontext: {\n\t\t\tprojectId: string;\n\t\t},\n\t) {\n\t\tif (!scopesByProjectId.value[context.projectId]) {\n\t\t\tscopesByProjectId.value[context.projectId] = [];\n\t\t}\n\n\t\tif (!scopesByProjectId.value[context.projectId].includes(scope)) {\n\t\t\tscopesByProjectId.value[context.projectId].push(scope);\n\t\t}\n\t}\n\n\tfunction addResourceScope(\n\t\tscope: Scope,\n\t\tcontext: {\n\t\t\tresourceType: Resource;\n\t\t\tresourceId: string;\n\t\t},\n\t) {\n\t\tconst scopesByResourceType = scopesByResourceId.value[context.resourceType];\n\t\tif (!scopesByResourceType[context.resourceId]) {\n\t\t\tscopesByResourceType[context.resourceId] = [];\n\t\t}\n\n\t\tif (!scopesByResourceType[context.resourceId].includes(scope)) {\n\t\t\tscopesByResourceType[context.resourceId].push(scope);\n\t\t}\n\t}\n\n\tfunction hasScope(\n\t\tscope: Scope | Scope[],\n\t\tcontext?: {\n\t\t\tresourceType?: Resource;\n\t\t\tresourceId?: string;\n\t\t\tprojectId?: string;\n\t\t},\n\t\toptions?: ScopeOptions,\n\t): boolean {\n\t\treturn genericHasScope(\n\t\t\tscope,\n\t\t\t{\n\t\t\t\tglobal: globalScopes.value,\n\t\t\t\tproject: context?.projectId ? scopesByProjectId.value[context.projectId] : [],\n\t\t\t\tresource:\n\t\t\t\t\tcontext?.resourceType && context?.resourceId\n\t\t\t\t\t\t? scopesByResourceId.value[context.resourceType][context.resourceId]\n\t\t\t\t\t\t: [],\n\t\t\t},\n\t\t\tundefined,\n\t\t\toptions,\n\t\t);\n\t}\n\n\treturn {\n\t\tglobalRoles,\n\t\trolesByProjectId,\n\t\tglobalScopes,\n\t\tscopesByProjectId,\n\t\tscopesByResourceId,\n\t\taddGlobalRole,\n\t\thasRole,\n\t\taddGlobalScope,\n\t\tsetGlobalScopes,\n\t\taddProjectScope,\n\t\taddResourceScope,\n\t\thasScope,\n\t};\n});\n"],"mappings":";;;;;;;AAQA,MAAa,sCAA2BA,yBAAO,YAAY;CAC1D,MAAM,2BAA0B,EAAE,CAAC;CACnC,MAAM,gCAAiD,EAAE,CAAC;CAE1D,MAAM,4BAA4B,EAAE,CAAC;CACrC,MAAM,iCAAiD,EAAE,CAAC;CAC1D,MAAM,kCAAoE;EACzE,OAAO,EAAE;EACT,aAAa,EAAE;EACf,UAAU,EAAE;EACZ,KAAK,EAAE;EACP,eAAe,EAAE;EACjB,MAAM,EAAE;EACR,YAAY,EAAE;EACd,UAAU,EAAE;EACZ,iBAAiB,EAAE;EACnB,eAAe,EAAE;EACjB,eAAe,EAAE;EACjB,yBAAyB,EAAE;EAC3B,gBAAgB,EAAE;EAClB,SAAS,EAAE;EACX,eAAe,EAAE;EACjB,aAAa,EAAE;EACf,qBAAqB,EAAE;EACvB,WAAW,EAAE;EACb,QAAQ,EAAE;EACV,WAAW,EAAE;EACb,kBAAkB,EAAE;EACpB,MAAM,EAAE;EACR,SAAS,EAAE;EACX,cAAc,EAAE;EAChB,gBAAgB,EAAE;EAClB,MAAM,EAAE;EACR,MAAM,EAAE;EACR,cAAc,EAAE;EAChB,eAAe,EAAE;EACjB,QAAQ,EAAE;EACV,UAAU,EAAE;EACZ,WAAW,EAAE;EACb,WAAW,EAAE;EACb,SAAS,EAAE;EACX,cAAc,EAAE;EAChB,MAAM,EAAE;EACR,KAAK,EAAE;EACP,WAAW,EAAE;EACb,SAAS,EAAE;EACX,cAAc,EAAE;EAChB,iBAAiB,EAAE;EACnB,QAAQ,EAAE;EACV,eAAe,EAAE;EACjB,oBAAoB,EAAE;EACtB,YAAY,EAAE;EACd,kBAAkB,EAAE;EACpB,iBAAiB,EAAE;EACnB,MAAM,EAAE;EACR,CAAC;CAEF,SAAS,cAAc,MAAY;AAClC,MAAI,CAAC,YAAY,MAAM,SAAS,KAAK,CACpC,aAAY,MAAM,KAAK,KAAK;;CAI9B,SAAS,QAAQ,MAAY;AAC5B,SAAO,YAAY,MAAM,SAAS,KAAK;;CAGxC,SAAS,eAAe,OAAc;AACrC,MAAI,CAAC,aAAa,MAAM,SAAS,MAAM,CACtC,cAAa,MAAM,KAAK,MAAM;;CAIhC,SAAS,gBAAgB,QAAiB;AACzC,eAAa,QAAQ;;CAGtB,SAAS,gBACR,OACA,SAGC;AACD,MAAI,CAAC,kBAAkB,MAAM,QAAQ,WACpC,mBAAkB,MAAM,QAAQ,aAAa,EAAE;AAGhD,MAAI,CAAC,kBAAkB,MAAM,QAAQ,WAAW,SAAS,MAAM,CAC9D,mBAAkB,MAAM,QAAQ,WAAW,KAAK,MAAM;;CAIxD,SAAS,iBACR,OACA,SAIC;EACD,MAAM,uBAAuB,mBAAmB,MAAM,QAAQ;AAC9D,MAAI,CAAC,qBAAqB,QAAQ,YACjC,sBAAqB,QAAQ,cAAc,EAAE;AAG9C,MAAI,CAAC,qBAAqB,QAAQ,YAAY,SAAS,MAAM,CAC5D,sBAAqB,QAAQ,YAAY,KAAK,MAAM;;CAItD,SAAS,SACR,OACA,SAKA,SACU;AACV,yCACC,OACA;GACC,QAAQ,aAAa;GACrB,SAAS,SAAS,YAAY,kBAAkB,MAAM,QAAQ,aAAa,EAAE;GAC7E,UACC,SAAS,gBAAgB,SAAS,aAC/B,mBAAmB,MAAM,QAAQ,cAAc,QAAQ,cACvD,EAAE;GACN,EACD,QACA,QACA;;AAGF,QAAO;EACN;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA"}
|
package/dist/rbac.store.d.cts
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import * as
|
|
1
|
+
import * as vue407 from "vue";
|
|
2
|
+
import * as pinia6 from "pinia";
|
|
3
3
|
import { Role } from "@n8n/api-types";
|
|
4
4
|
import { Resource, Scope, ScopeOptions } from "@n8n/permissions";
|
|
5
5
|
|
|
6
6
|
//#region src/rbac.store.d.ts
|
|
7
|
-
declare const useRBACStore:
|
|
8
|
-
globalRoles:
|
|
9
|
-
rolesByProjectId:
|
|
10
|
-
globalScopes:
|
|
11
|
-
scopesByProjectId:
|
|
12
|
-
scopesByResourceId:
|
|
7
|
+
declare const useRBACStore: pinia6.StoreDefinition<"rbac", Pick<{
|
|
8
|
+
globalRoles: vue407.Ref<Role[], Role[]>;
|
|
9
|
+
rolesByProjectId: vue407.Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
10
|
+
globalScopes: vue407.Ref<Scope[], Scope[]>;
|
|
11
|
+
scopesByProjectId: vue407.Ref<Record<string, Scope[]>, Record<string, Scope[]>>;
|
|
12
|
+
scopesByResourceId: vue407.Ref<{
|
|
13
13
|
chatHub: Record<string, Scope[]>;
|
|
14
14
|
logStreaming: Record<string, Scope[]>;
|
|
15
15
|
aiAssistant: Record<string, Scope[]>;
|
|
@@ -25,6 +25,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
25
25
|
mcp: Record<string, Scope[]>;
|
|
26
26
|
otel: Record<string, Scope[]>;
|
|
27
27
|
role: Record<string, Scope[]>;
|
|
28
|
+
apiKey: Record<string, Scope[]>;
|
|
28
29
|
agent: Record<string, Scope[]>;
|
|
29
30
|
annotationTag: Record<string, Scope[]>;
|
|
30
31
|
banner: Record<string, Scope[]>;
|
|
@@ -33,6 +34,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
33
34
|
externalSecretsProvider: Record<string, Scope[]>;
|
|
34
35
|
externalSecret: Record<string, Scope[]>;
|
|
35
36
|
eventBusDestination: Record<string, Scope[]>;
|
|
37
|
+
nodeTypePolicy: Record<string, Scope[]>;
|
|
36
38
|
orchestration: Record<string, Scope[]>;
|
|
37
39
|
project: Record<string, Scope[]>;
|
|
38
40
|
securityAudit: Record<string, Scope[]>;
|
|
@@ -52,12 +54,11 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
52
54
|
mcpApiKey: Record<string, Scope[]>;
|
|
53
55
|
chatHubAgent: Record<string, Scope[]>;
|
|
54
56
|
breakingChanges: Record<string, Scope[]>;
|
|
55
|
-
apiKey: Record<string, Scope[]>;
|
|
56
57
|
encryptionKey: Record<string, Scope[]>;
|
|
57
58
|
credentialResolver: Record<string, Scope[]>;
|
|
58
59
|
instanceAi: Record<string, Scope[]>;
|
|
59
60
|
roleMappingRule: Record<string, Scope[]>;
|
|
60
|
-
}, Record<"chatHub" | "logStreaming" | "aiAssistant" | "license" | "ldap" | "saml" | "oidc" | "sourceControl" | "auditLogs" | "provisioning" | "community" | "insights" | "mcp" | "otel" | "role" | "agent" | "annotationTag" | "banner" | "communityPackage" | "credential" | "externalSecretsProvider" | "externalSecret" | "eventBusDestination" | "orchestration" | "project" | "securityAudit" | "securitySettings" | "gitConnection" | "tag" | "user" | "variable" | "projectVariable" | "workersView" | "workflow" | "folder" | "dataTable" | "execution" | "testRun" | "workflowTags" | "mcpApiKey" | "chatHubAgent" | "breakingChanges" | "
|
|
61
|
+
}, Record<"chatHub" | "logStreaming" | "aiAssistant" | "license" | "ldap" | "saml" | "oidc" | "sourceControl" | "auditLogs" | "provisioning" | "community" | "insights" | "mcp" | "otel" | "role" | "apiKey" | "agent" | "annotationTag" | "banner" | "communityPackage" | "credential" | "externalSecretsProvider" | "externalSecret" | "eventBusDestination" | "nodeTypePolicy" | "orchestration" | "project" | "securityAudit" | "securitySettings" | "gitConnection" | "tag" | "user" | "variable" | "projectVariable" | "workersView" | "workflow" | "folder" | "dataTable" | "execution" | "testRun" | "workflowTags" | "mcpApiKey" | "chatHubAgent" | "breakingChanges" | "encryptionKey" | "credentialResolver" | "instanceAi" | "roleMappingRule", Record<string, Scope[]>> | {
|
|
61
62
|
chatHub: Record<string, Scope[]>;
|
|
62
63
|
logStreaming: Record<string, Scope[]>;
|
|
63
64
|
aiAssistant: Record<string, Scope[]>;
|
|
@@ -73,6 +74,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
73
74
|
mcp: Record<string, Scope[]>;
|
|
74
75
|
otel: Record<string, Scope[]>;
|
|
75
76
|
role: Record<string, Scope[]>;
|
|
77
|
+
apiKey: Record<string, Scope[]>;
|
|
76
78
|
agent: Record<string, Scope[]>;
|
|
77
79
|
annotationTag: Record<string, Scope[]>;
|
|
78
80
|
banner: Record<string, Scope[]>;
|
|
@@ -81,6 +83,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
81
83
|
externalSecretsProvider: Record<string, Scope[]>;
|
|
82
84
|
externalSecret: Record<string, Scope[]>;
|
|
83
85
|
eventBusDestination: Record<string, Scope[]>;
|
|
86
|
+
nodeTypePolicy: Record<string, Scope[]>;
|
|
84
87
|
orchestration: Record<string, Scope[]>;
|
|
85
88
|
project: Record<string, Scope[]>;
|
|
86
89
|
securityAudit: Record<string, Scope[]>;
|
|
@@ -100,7 +103,6 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
100
103
|
mcpApiKey: Record<string, Scope[]>;
|
|
101
104
|
chatHubAgent: Record<string, Scope[]>;
|
|
102
105
|
breakingChanges: Record<string, Scope[]>;
|
|
103
|
-
apiKey: Record<string, Scope[]>;
|
|
104
106
|
encryptionKey: Record<string, Scope[]>;
|
|
105
107
|
credentialResolver: Record<string, Scope[]>;
|
|
106
108
|
instanceAi: Record<string, Scope[]>;
|
|
@@ -123,11 +125,11 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
123
125
|
projectId?: string;
|
|
124
126
|
}, options?: ScopeOptions) => boolean;
|
|
125
127
|
}, "globalRoles" | "rolesByProjectId" | "globalScopes" | "scopesByProjectId" | "scopesByResourceId">, Pick<{
|
|
126
|
-
globalRoles:
|
|
127
|
-
rolesByProjectId:
|
|
128
|
-
globalScopes:
|
|
129
|
-
scopesByProjectId:
|
|
130
|
-
scopesByResourceId:
|
|
128
|
+
globalRoles: vue407.Ref<Role[], Role[]>;
|
|
129
|
+
rolesByProjectId: vue407.Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
130
|
+
globalScopes: vue407.Ref<Scope[], Scope[]>;
|
|
131
|
+
scopesByProjectId: vue407.Ref<Record<string, Scope[]>, Record<string, Scope[]>>;
|
|
132
|
+
scopesByResourceId: vue407.Ref<{
|
|
131
133
|
chatHub: Record<string, Scope[]>;
|
|
132
134
|
logStreaming: Record<string, Scope[]>;
|
|
133
135
|
aiAssistant: Record<string, Scope[]>;
|
|
@@ -143,6 +145,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
143
145
|
mcp: Record<string, Scope[]>;
|
|
144
146
|
otel: Record<string, Scope[]>;
|
|
145
147
|
role: Record<string, Scope[]>;
|
|
148
|
+
apiKey: Record<string, Scope[]>;
|
|
146
149
|
agent: Record<string, Scope[]>;
|
|
147
150
|
annotationTag: Record<string, Scope[]>;
|
|
148
151
|
banner: Record<string, Scope[]>;
|
|
@@ -151,6 +154,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
151
154
|
externalSecretsProvider: Record<string, Scope[]>;
|
|
152
155
|
externalSecret: Record<string, Scope[]>;
|
|
153
156
|
eventBusDestination: Record<string, Scope[]>;
|
|
157
|
+
nodeTypePolicy: Record<string, Scope[]>;
|
|
154
158
|
orchestration: Record<string, Scope[]>;
|
|
155
159
|
project: Record<string, Scope[]>;
|
|
156
160
|
securityAudit: Record<string, Scope[]>;
|
|
@@ -170,12 +174,11 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
170
174
|
mcpApiKey: Record<string, Scope[]>;
|
|
171
175
|
chatHubAgent: Record<string, Scope[]>;
|
|
172
176
|
breakingChanges: Record<string, Scope[]>;
|
|
173
|
-
apiKey: Record<string, Scope[]>;
|
|
174
177
|
encryptionKey: Record<string, Scope[]>;
|
|
175
178
|
credentialResolver: Record<string, Scope[]>;
|
|
176
179
|
instanceAi: Record<string, Scope[]>;
|
|
177
180
|
roleMappingRule: Record<string, Scope[]>;
|
|
178
|
-
}, Record<"chatHub" | "logStreaming" | "aiAssistant" | "license" | "ldap" | "saml" | "oidc" | "sourceControl" | "auditLogs" | "provisioning" | "community" | "insights" | "mcp" | "otel" | "role" | "agent" | "annotationTag" | "banner" | "communityPackage" | "credential" | "externalSecretsProvider" | "externalSecret" | "eventBusDestination" | "orchestration" | "project" | "securityAudit" | "securitySettings" | "gitConnection" | "tag" | "user" | "variable" | "projectVariable" | "workersView" | "workflow" | "folder" | "dataTable" | "execution" | "testRun" | "workflowTags" | "mcpApiKey" | "chatHubAgent" | "breakingChanges" | "
|
|
181
|
+
}, Record<"chatHub" | "logStreaming" | "aiAssistant" | "license" | "ldap" | "saml" | "oidc" | "sourceControl" | "auditLogs" | "provisioning" | "community" | "insights" | "mcp" | "otel" | "role" | "apiKey" | "agent" | "annotationTag" | "banner" | "communityPackage" | "credential" | "externalSecretsProvider" | "externalSecret" | "eventBusDestination" | "nodeTypePolicy" | "orchestration" | "project" | "securityAudit" | "securitySettings" | "gitConnection" | "tag" | "user" | "variable" | "projectVariable" | "workersView" | "workflow" | "folder" | "dataTable" | "execution" | "testRun" | "workflowTags" | "mcpApiKey" | "chatHubAgent" | "breakingChanges" | "encryptionKey" | "credentialResolver" | "instanceAi" | "roleMappingRule", Record<string, Scope[]>> | {
|
|
179
182
|
chatHub: Record<string, Scope[]>;
|
|
180
183
|
logStreaming: Record<string, Scope[]>;
|
|
181
184
|
aiAssistant: Record<string, Scope[]>;
|
|
@@ -191,6 +194,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
191
194
|
mcp: Record<string, Scope[]>;
|
|
192
195
|
otel: Record<string, Scope[]>;
|
|
193
196
|
role: Record<string, Scope[]>;
|
|
197
|
+
apiKey: Record<string, Scope[]>;
|
|
194
198
|
agent: Record<string, Scope[]>;
|
|
195
199
|
annotationTag: Record<string, Scope[]>;
|
|
196
200
|
banner: Record<string, Scope[]>;
|
|
@@ -199,6 +203,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
199
203
|
externalSecretsProvider: Record<string, Scope[]>;
|
|
200
204
|
externalSecret: Record<string, Scope[]>;
|
|
201
205
|
eventBusDestination: Record<string, Scope[]>;
|
|
206
|
+
nodeTypePolicy: Record<string, Scope[]>;
|
|
202
207
|
orchestration: Record<string, Scope[]>;
|
|
203
208
|
project: Record<string, Scope[]>;
|
|
204
209
|
securityAudit: Record<string, Scope[]>;
|
|
@@ -218,7 +223,6 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
218
223
|
mcpApiKey: Record<string, Scope[]>;
|
|
219
224
|
chatHubAgent: Record<string, Scope[]>;
|
|
220
225
|
breakingChanges: Record<string, Scope[]>;
|
|
221
|
-
apiKey: Record<string, Scope[]>;
|
|
222
226
|
encryptionKey: Record<string, Scope[]>;
|
|
223
227
|
credentialResolver: Record<string, Scope[]>;
|
|
224
228
|
instanceAi: Record<string, Scope[]>;
|
|
@@ -241,11 +245,11 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
241
245
|
projectId?: string;
|
|
242
246
|
}, options?: ScopeOptions) => boolean;
|
|
243
247
|
}, never>, Pick<{
|
|
244
|
-
globalRoles:
|
|
245
|
-
rolesByProjectId:
|
|
246
|
-
globalScopes:
|
|
247
|
-
scopesByProjectId:
|
|
248
|
-
scopesByResourceId:
|
|
248
|
+
globalRoles: vue407.Ref<Role[], Role[]>;
|
|
249
|
+
rolesByProjectId: vue407.Ref<Record<string, string[]>, Record<string, string[]>>;
|
|
250
|
+
globalScopes: vue407.Ref<Scope[], Scope[]>;
|
|
251
|
+
scopesByProjectId: vue407.Ref<Record<string, Scope[]>, Record<string, Scope[]>>;
|
|
252
|
+
scopesByResourceId: vue407.Ref<{
|
|
249
253
|
chatHub: Record<string, Scope[]>;
|
|
250
254
|
logStreaming: Record<string, Scope[]>;
|
|
251
255
|
aiAssistant: Record<string, Scope[]>;
|
|
@@ -261,6 +265,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
261
265
|
mcp: Record<string, Scope[]>;
|
|
262
266
|
otel: Record<string, Scope[]>;
|
|
263
267
|
role: Record<string, Scope[]>;
|
|
268
|
+
apiKey: Record<string, Scope[]>;
|
|
264
269
|
agent: Record<string, Scope[]>;
|
|
265
270
|
annotationTag: Record<string, Scope[]>;
|
|
266
271
|
banner: Record<string, Scope[]>;
|
|
@@ -269,6 +274,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
269
274
|
externalSecretsProvider: Record<string, Scope[]>;
|
|
270
275
|
externalSecret: Record<string, Scope[]>;
|
|
271
276
|
eventBusDestination: Record<string, Scope[]>;
|
|
277
|
+
nodeTypePolicy: Record<string, Scope[]>;
|
|
272
278
|
orchestration: Record<string, Scope[]>;
|
|
273
279
|
project: Record<string, Scope[]>;
|
|
274
280
|
securityAudit: Record<string, Scope[]>;
|
|
@@ -288,12 +294,11 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
288
294
|
mcpApiKey: Record<string, Scope[]>;
|
|
289
295
|
chatHubAgent: Record<string, Scope[]>;
|
|
290
296
|
breakingChanges: Record<string, Scope[]>;
|
|
291
|
-
apiKey: Record<string, Scope[]>;
|
|
292
297
|
encryptionKey: Record<string, Scope[]>;
|
|
293
298
|
credentialResolver: Record<string, Scope[]>;
|
|
294
299
|
instanceAi: Record<string, Scope[]>;
|
|
295
300
|
roleMappingRule: Record<string, Scope[]>;
|
|
296
|
-
}, Record<"chatHub" | "logStreaming" | "aiAssistant" | "license" | "ldap" | "saml" | "oidc" | "sourceControl" | "auditLogs" | "provisioning" | "community" | "insights" | "mcp" | "otel" | "role" | "agent" | "annotationTag" | "banner" | "communityPackage" | "credential" | "externalSecretsProvider" | "externalSecret" | "eventBusDestination" | "orchestration" | "project" | "securityAudit" | "securitySettings" | "gitConnection" | "tag" | "user" | "variable" | "projectVariable" | "workersView" | "workflow" | "folder" | "dataTable" | "execution" | "testRun" | "workflowTags" | "mcpApiKey" | "chatHubAgent" | "breakingChanges" | "
|
|
301
|
+
}, Record<"chatHub" | "logStreaming" | "aiAssistant" | "license" | "ldap" | "saml" | "oidc" | "sourceControl" | "auditLogs" | "provisioning" | "community" | "insights" | "mcp" | "otel" | "role" | "apiKey" | "agent" | "annotationTag" | "banner" | "communityPackage" | "credential" | "externalSecretsProvider" | "externalSecret" | "eventBusDestination" | "nodeTypePolicy" | "orchestration" | "project" | "securityAudit" | "securitySettings" | "gitConnection" | "tag" | "user" | "variable" | "projectVariable" | "workersView" | "workflow" | "folder" | "dataTable" | "execution" | "testRun" | "workflowTags" | "mcpApiKey" | "chatHubAgent" | "breakingChanges" | "encryptionKey" | "credentialResolver" | "instanceAi" | "roleMappingRule", Record<string, Scope[]>> | {
|
|
297
302
|
chatHub: Record<string, Scope[]>;
|
|
298
303
|
logStreaming: Record<string, Scope[]>;
|
|
299
304
|
aiAssistant: Record<string, Scope[]>;
|
|
@@ -309,6 +314,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
309
314
|
mcp: Record<string, Scope[]>;
|
|
310
315
|
otel: Record<string, Scope[]>;
|
|
311
316
|
role: Record<string, Scope[]>;
|
|
317
|
+
apiKey: Record<string, Scope[]>;
|
|
312
318
|
agent: Record<string, Scope[]>;
|
|
313
319
|
annotationTag: Record<string, Scope[]>;
|
|
314
320
|
banner: Record<string, Scope[]>;
|
|
@@ -317,6 +323,7 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
317
323
|
externalSecretsProvider: Record<string, Scope[]>;
|
|
318
324
|
externalSecret: Record<string, Scope[]>;
|
|
319
325
|
eventBusDestination: Record<string, Scope[]>;
|
|
326
|
+
nodeTypePolicy: Record<string, Scope[]>;
|
|
320
327
|
orchestration: Record<string, Scope[]>;
|
|
321
328
|
project: Record<string, Scope[]>;
|
|
322
329
|
securityAudit: Record<string, Scope[]>;
|
|
@@ -336,7 +343,6 @@ declare const useRBACStore: pinia0.StoreDefinition<"rbac", Pick<{
|
|
|
336
343
|
mcpApiKey: Record<string, Scope[]>;
|
|
337
344
|
chatHubAgent: Record<string, Scope[]>;
|
|
338
345
|
breakingChanges: Record<string, Scope[]>;
|
|
339
|
-
apiKey: Record<string, Scope[]>;
|
|
340
346
|
encryptionKey: Record<string, Scope[]>;
|
|
341
347
|
credentialResolver: Record<string, Scope[]>;
|
|
342
348
|
instanceAi: Record<string, Scope[]>;
|