@mintlify/models 0.0.263 → 0.0.267
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/entities/orgType.d.ts +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types/authorization/resource.d.ts +4 -6
- package/dist/types/authorization/resource.js +3 -17
- package/dist/types/index.d.ts +3 -2
- package/dist/types/index.js +3 -2
- package/dist/types/stytchRbacPolicy.d.ts +11 -0
- package/dist/types/stytchRbacPolicy.js +402 -0
- package/package.json +2 -2
|
@@ -2,17 +2,15 @@
|
|
|
2
2
|
* When adding a new Resource/Action here, remember to add it
|
|
3
3
|
* to Stytch as well!
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
export
|
|
7
|
-
export declare const
|
|
8
|
-
export declare const DEPLOYMENT_RESOURCES: readonly ["deployment", "deployment.customDomain", "deployment.basePath", "deployment.gitSource", "deployment.auth", "deployment.personalization"];
|
|
9
|
-
export declare const ALL_RESOURCES: readonly ["org", "org.apiKey", "org.billing", "org.auditLogs", "user", "user.role", "deployment", "deployment.customDomain", "deployment.basePath", "deployment.gitSource", "deployment.auth", "deployment.personalization"];
|
|
5
|
+
import { ACTIONS, ORG_RESOURCES, USER_RESOURCES, DEPLOYMENT_RESOURCES, type Permission } from '../stytchRbacPolicy.js';
|
|
6
|
+
export type { Permission };
|
|
7
|
+
export declare const ALL_RESOURCES: readonly ["org", "org.apiKey", "org.auditLogs", "org.billing", "org.deployments", "org.editorPermissions", "org.gitlab", "org.growthData", "org.members", "org.securityContact", "org.sso", "user", "discord.integration", "github.integration", "gitlab.integration", "user.role", "agent", "autopilot", "deployment", "deployment.agents", "deployment.analytics", "deployment.assistant", "deployment.auth", "deployment.basePath", "deployment.customDomain", "deployment.discoveryApiKey", "deployment.endUserAuth", "deployment.gitSource", "deployment.history", "deployment.pdf", "deployment.personalization", "deployment.preview", "deployment.quota", "deployment.slack", "deployment.sourceChecks", "deployment.translations", "deployment.trial", "deployment.usage", "git.content", "git.write", "slack.integration"];
|
|
10
8
|
export type OrgResource = (typeof ORG_RESOURCES)[number];
|
|
11
9
|
export type UserResource = (typeof USER_RESOURCES)[number];
|
|
12
10
|
export type DeploymentResource = (typeof DEPLOYMENT_RESOURCES)[number];
|
|
13
11
|
export type Resource = (typeof ALL_RESOURCES)[number];
|
|
14
12
|
export type Action = (typeof ACTIONS)[number];
|
|
15
|
-
export type Permission = `${Resource}.${Action}`;
|
|
16
13
|
export declare const validResourceSet: Set<string>;
|
|
17
14
|
export declare const validActionSet: Set<string>;
|
|
15
|
+
export declare const validPermissionSet: Set<string>;
|
|
18
16
|
export declare function isValidPermission(permission: string): permission is Permission;
|
|
@@ -2,17 +2,7 @@
|
|
|
2
2
|
* When adding a new Resource/Action here, remember to add it
|
|
3
3
|
* to Stytch as well!
|
|
4
4
|
*/
|
|
5
|
-
|
|
6
|
-
export const ORG_RESOURCES = ['org', 'org.apiKey', 'org.billing', 'org.auditLogs'];
|
|
7
|
-
export const USER_RESOURCES = ['user', 'user.role'];
|
|
8
|
-
export const DEPLOYMENT_RESOURCES = [
|
|
9
|
-
'deployment',
|
|
10
|
-
'deployment.customDomain',
|
|
11
|
-
'deployment.basePath',
|
|
12
|
-
'deployment.gitSource',
|
|
13
|
-
'deployment.auth',
|
|
14
|
-
'deployment.personalization',
|
|
15
|
-
];
|
|
5
|
+
import { ACTIONS, ORG_RESOURCES, USER_RESOURCES, DEPLOYMENT_RESOURCES, ALL_PERMISSIONS, } from '../stytchRbacPolicy.js';
|
|
16
6
|
export const ALL_RESOURCES = [
|
|
17
7
|
...ORG_RESOURCES,
|
|
18
8
|
...USER_RESOURCES,
|
|
@@ -20,11 +10,7 @@ export const ALL_RESOURCES = [
|
|
|
20
10
|
];
|
|
21
11
|
export const validResourceSet = new Set(ALL_RESOURCES);
|
|
22
12
|
export const validActionSet = new Set(ACTIONS);
|
|
13
|
+
export const validPermissionSet = new Set(ALL_PERMISSIONS);
|
|
23
14
|
export function isValidPermission(permission) {
|
|
24
|
-
|
|
25
|
-
if (parts.length < 2)
|
|
26
|
-
return false;
|
|
27
|
-
const action = parts.pop();
|
|
28
|
-
const resource = parts.join('.');
|
|
29
|
-
return validResourceSet.has(resource) && validActionSet.has(action);
|
|
15
|
+
return validPermissionSet.has(permission);
|
|
30
16
|
}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { ApiPlaygroundDisplayType, apiPlaygroundDisplayTypes, ResolvedApiPlaygro
|
|
|
2
2
|
import { ApiPlaygroundResponseType } from './apiPlaygroundResponseType.js';
|
|
3
3
|
import { ApiPlaygroundResultType } from './apiPlaygroundResultType.js';
|
|
4
4
|
import { TierId, TierIds, TierConfig, ASSISTANT_TIERS, ASSISTANT_TIER_OVERAGE_PRICE_PER_CREDIT } from './assistantTier.js';
|
|
5
|
-
import {
|
|
5
|
+
import { ALL_RESOURCES, OrgResource, UserResource, DeploymentResource, Resource, Action, Permission, validResourceSet, validActionSet, validPermissionSet, isValidPermission } from './authorization/resource.js';
|
|
6
6
|
import { Role, roles, roleIsMintlifyRole } from './authorization/role.js';
|
|
7
7
|
import { ConfigType, configTypes } from './configType.js';
|
|
8
8
|
import { PrimaryChart, PopularPages, Referrals, Feedback, DashboardAnalytics, TotalMetric } from './dashboardAnalytics.js';
|
|
@@ -22,7 +22,8 @@ import { PageMetaTags, NATIVE_METADATA_TAG_KEYS_SET } from './pageMetaTags.js';
|
|
|
22
22
|
import { PageType } from './pageType.js';
|
|
23
23
|
import { QueueUpdateStatus, queueUpdateStatuses } from './queue.js';
|
|
24
24
|
import { StarterQuestionType, Translation } from './starterQuestionsType.js';
|
|
25
|
+
import { ACTIONS, ORG_RESOURCES, USER_RESOURCES, DEPLOYMENT_RESOURCES, ALL_PERMISSIONS, ROLE_PERMISSIONS } from './stytchRbacPolicy.js';
|
|
25
26
|
import { UsageType } from './usageType.js';
|
|
26
27
|
import { UserMetadata, UserWithMetadata } from './userMetadata.js';
|
|
27
28
|
export type { ApiPlaygroundResponseType, ApiPlaygroundResultType, ApiPlaygroundDisplayType, ResolvedApiPlaygroundDisplayType, TierId, TierConfig, EditContext, GitBranchesResponse, GithubInstallationType, GitlabInstallationType, DiscordInstallationType, GrowthDataType, InkeepType, OpenApiFile, OpenApiMetadata, PageMetaTags, UsageType, UserMetadata, UserWithMetadata, PrimaryChart, PopularPages, Referrals, Feedback, DashboardAnalytics, TotalMetric, ConfigType, EntitlementConfiguration, ExportPdfHistory, ExportFormat, ExportOptions, QueueUpdateStatus, StarterQuestionType, Translation, CodeSnippetFeedbackSubmission, ContextualFeedbackSubmission, CodeSnippetFeedback, ContextualFeedback, UserFeedback, UserFeedbackData, FeedbackSource, FeedbackState, PageType, Role, OrgResource, UserResource, DeploymentResource, Resource, Action, Permission, };
|
|
28
|
-
export { apiPlaygroundDisplayTypes, configTypes, queueUpdateStatuses, exportFormats, feedbackSources, feedbackStates, roles, roleIsMintlifyRole, ACTIONS, ORG_RESOURCES, USER_RESOURCES, DEPLOYMENT_RESOURCES, ALL_RESOURCES, validResourceSet, validActionSet, isValidPermission, NATIVE_METADATA_TAG_KEYS_SET, TierIds, ASSISTANT_TIERS, ASSISTANT_TIER_OVERAGE_PRICE_PER_CREDIT, };
|
|
29
|
+
export { apiPlaygroundDisplayTypes, configTypes, queueUpdateStatuses, exportFormats, feedbackSources, feedbackStates, roles, roleIsMintlifyRole, ACTIONS, ORG_RESOURCES, USER_RESOURCES, DEPLOYMENT_RESOURCES, ALL_RESOURCES, ALL_PERMISSIONS, ROLE_PERMISSIONS, validResourceSet, validActionSet, validPermissionSet, isValidPermission, NATIVE_METADATA_TAG_KEYS_SET, TierIds, ASSISTANT_TIERS, ASSISTANT_TIER_OVERAGE_PRICE_PER_CREDIT, };
|
package/dist/types/index.js
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { apiPlaygroundDisplayTypes, } from './apiPlaygroundDisplayType.js';
|
|
2
2
|
import { TierIds, ASSISTANT_TIERS, ASSISTANT_TIER_OVERAGE_PRICE_PER_CREDIT, } from './assistantTier.js';
|
|
3
|
-
import {
|
|
3
|
+
import { ALL_RESOURCES, validResourceSet, validActionSet, validPermissionSet, isValidPermission, } from './authorization/resource.js';
|
|
4
4
|
import { roles, roleIsMintlifyRole } from './authorization/role.js';
|
|
5
5
|
import { configTypes } from './configType.js';
|
|
6
6
|
import { exportFormats, } from './exportPdfHistory.js';
|
|
7
7
|
import { feedbackSources, feedbackStates, } from './feedback.js';
|
|
8
8
|
import { NATIVE_METADATA_TAG_KEYS_SET } from './pageMetaTags.js';
|
|
9
9
|
import { queueUpdateStatuses } from './queue.js';
|
|
10
|
+
import { ACTIONS, ORG_RESOURCES, USER_RESOURCES, DEPLOYMENT_RESOURCES, ALL_PERMISSIONS, ROLE_PERMISSIONS, } from './stytchRbacPolicy.js';
|
|
10
11
|
export { apiPlaygroundDisplayTypes, configTypes, queueUpdateStatuses, exportFormats, feedbackSources, feedbackStates,
|
|
11
12
|
// Authorization constants and functions
|
|
12
|
-
roles, roleIsMintlifyRole, ACTIONS, ORG_RESOURCES, USER_RESOURCES, DEPLOYMENT_RESOURCES, ALL_RESOURCES, validResourceSet, validActionSet, isValidPermission, NATIVE_METADATA_TAG_KEYS_SET, TierIds, ASSISTANT_TIERS, ASSISTANT_TIER_OVERAGE_PRICE_PER_CREDIT, };
|
|
13
|
+
roles, roleIsMintlifyRole, ACTIONS, ORG_RESOURCES, USER_RESOURCES, DEPLOYMENT_RESOURCES, ALL_RESOURCES, ALL_PERMISSIONS, ROLE_PERMISSIONS, validResourceSet, validActionSet, validPermissionSet, isValidPermission, NATIVE_METADATA_TAG_KEYS_SET, TierIds, ASSISTANT_TIERS, ASSISTANT_TIER_OVERAGE_PRICE_PER_CREDIT, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const ACTIONS: readonly ["create", "delete", "read", "update", "upsert"];
|
|
2
|
+
export declare const ORG_RESOURCES: readonly ["org", "org.apiKey", "org.auditLogs", "org.billing", "org.deployments", "org.editorPermissions", "org.gitlab", "org.growthData", "org.members", "org.securityContact", "org.sso"];
|
|
3
|
+
export declare const USER_RESOURCES: readonly ["user", "discord.integration", "github.integration", "gitlab.integration", "user.role"];
|
|
4
|
+
export declare const DEPLOYMENT_RESOURCES: readonly ["agent", "autopilot", "deployment", "deployment.agents", "deployment.analytics", "deployment.assistant", "deployment.auth", "deployment.basePath", "deployment.customDomain", "deployment.discoveryApiKey", "deployment.endUserAuth", "deployment.gitSource", "deployment.history", "deployment.pdf", "deployment.personalization", "deployment.preview", "deployment.quota", "deployment.slack", "deployment.sourceChecks", "deployment.translations", "deployment.trial", "deployment.usage", "git.content", "git.write", "slack.integration"];
|
|
5
|
+
export declare const ALL_PERMISSIONS: readonly ["agent.create", "agent.read", "agent.update", "autopilot.create", "autopilot.delete", "autopilot.read", "autopilot.update", "deployment.agents.read", "deployment.analytics.delete", "deployment.analytics.read", "deployment.analytics.update", "deployment.assistant.create", "deployment.assistant.delete", "deployment.assistant.read", "deployment.assistant.update", "deployment.auth.create", "deployment.auth.delete", "deployment.auth.read", "deployment.auth.update", "deployment.auth.upsert", "deployment.basePath.create", "deployment.basePath.delete", "deployment.basePath.read", "deployment.basePath.update", "deployment.basePath.upsert", "deployment.create", "deployment.customDomain.create", "deployment.customDomain.delete", "deployment.customDomain.read", "deployment.customDomain.update", "deployment.customDomain.upsert", "deployment.delete", "deployment.discoveryApiKey.create", "deployment.discoveryApiKey.delete", "deployment.discoveryApiKey.read", "deployment.endUserAuth.read", "deployment.gitSource.create", "deployment.gitSource.delete", "deployment.gitSource.read", "deployment.gitSource.update", "deployment.gitSource.upsert", "deployment.history.read", "deployment.pdf.create", "deployment.pdf.delete", "deployment.pdf.read", "deployment.personalization.create", "deployment.personalization.delete", "deployment.personalization.read", "deployment.personalization.update", "deployment.personalization.upsert", "deployment.preview.create", "deployment.preview.read", "deployment.preview.update", "deployment.quota.read", "deployment.quota.update", "deployment.read", "deployment.slack.read", "deployment.sourceChecks.read", "deployment.sourceChecks.update", "deployment.translations.create", "deployment.translations.read", "deployment.translations.update", "deployment.trial.read", "deployment.update", "deployment.upsert", "deployment.usage.read", "discord.integration.create", "discord.integration.delete", "discord.integration.read", "discord.integration.update", "git.content.read", "git.write.create", "git.write.delete", "git.write.read", "git.write.update", "github.integration.create", "github.integration.delete", "github.integration.read", "gitlab.integration.read", "org.apiKey.create", "org.apiKey.delete", "org.apiKey.read", "org.auditLogs.read", "org.billing.read", "org.billing.update", "org.delete", "org.deployments.read", "org.editorPermissions.read", "org.editorPermissions.update", "org.gitlab.create", "org.gitlab.read", "org.gitlab.update", "org.growthData.update", "org.members.create", "org.members.read", "org.read", "org.securityContact.delete", "org.securityContact.read", "org.securityContact.upsert", "org.sso.create", "org.sso.delete", "org.sso.read", "org.sso.update", "org.update", "slack.integration.create", "slack.integration.delete", "slack.integration.read", "slack.integration.update", "user.delete", "user.read", "user.role.create", "user.role.delete", "user.role.read", "user.role.update", "user.update"];
|
|
6
|
+
export type Permission = (typeof ALL_PERMISSIONS)[number];
|
|
7
|
+
export declare const ROLE_PERMISSIONS: {
|
|
8
|
+
admin: Set<"agent.create" | "agent.read" | "agent.update" | "autopilot.create" | "autopilot.delete" | "autopilot.read" | "autopilot.update" | "deployment.agents.read" | "deployment.analytics.delete" | "deployment.analytics.read" | "deployment.analytics.update" | "deployment.assistant.create" | "deployment.assistant.delete" | "deployment.assistant.read" | "deployment.assistant.update" | "deployment.auth.create" | "deployment.auth.delete" | "deployment.auth.read" | "deployment.auth.update" | "deployment.auth.upsert" | "deployment.basePath.create" | "deployment.basePath.delete" | "deployment.basePath.read" | "deployment.basePath.update" | "deployment.basePath.upsert" | "deployment.create" | "deployment.customDomain.create" | "deployment.customDomain.delete" | "deployment.customDomain.read" | "deployment.customDomain.update" | "deployment.customDomain.upsert" | "deployment.delete" | "deployment.discoveryApiKey.create" | "deployment.discoveryApiKey.delete" | "deployment.discoveryApiKey.read" | "deployment.endUserAuth.read" | "deployment.gitSource.create" | "deployment.gitSource.delete" | "deployment.gitSource.read" | "deployment.gitSource.update" | "deployment.gitSource.upsert" | "deployment.history.read" | "deployment.pdf.create" | "deployment.pdf.delete" | "deployment.pdf.read" | "deployment.personalization.create" | "deployment.personalization.delete" | "deployment.personalization.read" | "deployment.personalization.update" | "deployment.personalization.upsert" | "deployment.preview.create" | "deployment.preview.read" | "deployment.preview.update" | "deployment.quota.read" | "deployment.quota.update" | "deployment.read" | "deployment.slack.read" | "deployment.sourceChecks.read" | "deployment.sourceChecks.update" | "deployment.translations.create" | "deployment.translations.read" | "deployment.translations.update" | "deployment.trial.read" | "deployment.update" | "deployment.upsert" | "deployment.usage.read" | "discord.integration.create" | "discord.integration.delete" | "discord.integration.read" | "discord.integration.update" | "git.content.read" | "git.write.create" | "git.write.delete" | "git.write.read" | "git.write.update" | "github.integration.create" | "github.integration.delete" | "github.integration.read" | "gitlab.integration.read" | "org.apiKey.create" | "org.apiKey.delete" | "org.apiKey.read" | "org.auditLogs.read" | "org.billing.read" | "org.billing.update" | "org.delete" | "org.deployments.read" | "org.editorPermissions.read" | "org.editorPermissions.update" | "org.gitlab.create" | "org.gitlab.read" | "org.gitlab.update" | "org.growthData.update" | "org.members.create" | "org.members.read" | "org.read" | "org.securityContact.delete" | "org.securityContact.read" | "org.securityContact.upsert" | "org.sso.create" | "org.sso.delete" | "org.sso.read" | "org.sso.update" | "org.update" | "slack.integration.create" | "slack.integration.delete" | "slack.integration.read" | "slack.integration.update" | "user.delete" | "user.read" | "user.role.create" | "user.role.delete" | "user.role.read" | "user.role.update" | "user.update">;
|
|
9
|
+
editor: Set<"agent.create" | "agent.read" | "agent.update" | "autopilot.create" | "autopilot.delete" | "autopilot.read" | "autopilot.update" | "deployment.agents.read" | "deployment.analytics.delete" | "deployment.analytics.read" | "deployment.analytics.update" | "deployment.assistant.create" | "deployment.assistant.delete" | "deployment.assistant.read" | "deployment.assistant.update" | "deployment.auth.create" | "deployment.auth.delete" | "deployment.auth.read" | "deployment.auth.update" | "deployment.auth.upsert" | "deployment.basePath.create" | "deployment.basePath.delete" | "deployment.basePath.read" | "deployment.basePath.update" | "deployment.basePath.upsert" | "deployment.create" | "deployment.customDomain.create" | "deployment.customDomain.delete" | "deployment.customDomain.read" | "deployment.customDomain.update" | "deployment.customDomain.upsert" | "deployment.delete" | "deployment.discoveryApiKey.create" | "deployment.discoveryApiKey.delete" | "deployment.discoveryApiKey.read" | "deployment.endUserAuth.read" | "deployment.gitSource.create" | "deployment.gitSource.delete" | "deployment.gitSource.read" | "deployment.gitSource.update" | "deployment.gitSource.upsert" | "deployment.history.read" | "deployment.pdf.create" | "deployment.pdf.delete" | "deployment.pdf.read" | "deployment.personalization.create" | "deployment.personalization.delete" | "deployment.personalization.read" | "deployment.personalization.update" | "deployment.personalization.upsert" | "deployment.preview.create" | "deployment.preview.read" | "deployment.preview.update" | "deployment.quota.read" | "deployment.quota.update" | "deployment.read" | "deployment.slack.read" | "deployment.sourceChecks.read" | "deployment.sourceChecks.update" | "deployment.translations.create" | "deployment.translations.read" | "deployment.translations.update" | "deployment.trial.read" | "deployment.update" | "deployment.upsert" | "deployment.usage.read" | "discord.integration.create" | "discord.integration.delete" | "discord.integration.read" | "discord.integration.update" | "git.content.read" | "git.write.create" | "git.write.delete" | "git.write.read" | "git.write.update" | "github.integration.create" | "github.integration.delete" | "github.integration.read" | "gitlab.integration.read" | "org.apiKey.create" | "org.apiKey.delete" | "org.apiKey.read" | "org.auditLogs.read" | "org.billing.read" | "org.billing.update" | "org.delete" | "org.deployments.read" | "org.editorPermissions.read" | "org.editorPermissions.update" | "org.gitlab.create" | "org.gitlab.read" | "org.gitlab.update" | "org.growthData.update" | "org.members.create" | "org.members.read" | "org.read" | "org.securityContact.delete" | "org.securityContact.read" | "org.securityContact.upsert" | "org.sso.create" | "org.sso.delete" | "org.sso.read" | "org.sso.update" | "org.update" | "slack.integration.create" | "slack.integration.delete" | "slack.integration.read" | "slack.integration.update" | "user.delete" | "user.read" | "user.role.create" | "user.role.delete" | "user.role.read" | "user.role.update" | "user.update">;
|
|
10
|
+
viewer: Set<"agent.create" | "agent.read" | "agent.update" | "autopilot.create" | "autopilot.delete" | "autopilot.read" | "autopilot.update" | "deployment.agents.read" | "deployment.analytics.delete" | "deployment.analytics.read" | "deployment.analytics.update" | "deployment.assistant.create" | "deployment.assistant.delete" | "deployment.assistant.read" | "deployment.assistant.update" | "deployment.auth.create" | "deployment.auth.delete" | "deployment.auth.read" | "deployment.auth.update" | "deployment.auth.upsert" | "deployment.basePath.create" | "deployment.basePath.delete" | "deployment.basePath.read" | "deployment.basePath.update" | "deployment.basePath.upsert" | "deployment.create" | "deployment.customDomain.create" | "deployment.customDomain.delete" | "deployment.customDomain.read" | "deployment.customDomain.update" | "deployment.customDomain.upsert" | "deployment.delete" | "deployment.discoveryApiKey.create" | "deployment.discoveryApiKey.delete" | "deployment.discoveryApiKey.read" | "deployment.endUserAuth.read" | "deployment.gitSource.create" | "deployment.gitSource.delete" | "deployment.gitSource.read" | "deployment.gitSource.update" | "deployment.gitSource.upsert" | "deployment.history.read" | "deployment.pdf.create" | "deployment.pdf.delete" | "deployment.pdf.read" | "deployment.personalization.create" | "deployment.personalization.delete" | "deployment.personalization.read" | "deployment.personalization.update" | "deployment.personalization.upsert" | "deployment.preview.create" | "deployment.preview.read" | "deployment.preview.update" | "deployment.quota.read" | "deployment.quota.update" | "deployment.read" | "deployment.slack.read" | "deployment.sourceChecks.read" | "deployment.sourceChecks.update" | "deployment.translations.create" | "deployment.translations.read" | "deployment.translations.update" | "deployment.trial.read" | "deployment.update" | "deployment.upsert" | "deployment.usage.read" | "discord.integration.create" | "discord.integration.delete" | "discord.integration.read" | "discord.integration.update" | "git.content.read" | "git.write.create" | "git.write.delete" | "git.write.read" | "git.write.update" | "github.integration.create" | "github.integration.delete" | "github.integration.read" | "gitlab.integration.read" | "org.apiKey.create" | "org.apiKey.delete" | "org.apiKey.read" | "org.auditLogs.read" | "org.billing.read" | "org.billing.update" | "org.delete" | "org.deployments.read" | "org.editorPermissions.read" | "org.editorPermissions.update" | "org.gitlab.create" | "org.gitlab.read" | "org.gitlab.update" | "org.growthData.update" | "org.members.create" | "org.members.read" | "org.read" | "org.securityContact.delete" | "org.securityContact.read" | "org.securityContact.upsert" | "org.sso.create" | "org.sso.delete" | "org.sso.read" | "org.sso.update" | "org.update" | "slack.integration.create" | "slack.integration.delete" | "slack.integration.read" | "slack.integration.update" | "user.delete" | "user.read" | "user.role.create" | "user.role.delete" | "user.role.read" | "user.role.update" | "user.update">;
|
|
11
|
+
};
|
|
@@ -0,0 +1,402 @@
|
|
|
1
|
+
// This file is autogenerated with 'yarn update-stytch-types'. It will overwrite any changes you've made here.
|
|
2
|
+
export const ACTIONS = ['create', 'delete', 'read', 'update', 'upsert'];
|
|
3
|
+
export const ORG_RESOURCES = [
|
|
4
|
+
'org',
|
|
5
|
+
'org.apiKey',
|
|
6
|
+
'org.auditLogs',
|
|
7
|
+
'org.billing',
|
|
8
|
+
'org.deployments',
|
|
9
|
+
'org.editorPermissions',
|
|
10
|
+
'org.gitlab',
|
|
11
|
+
'org.growthData',
|
|
12
|
+
'org.members',
|
|
13
|
+
'org.securityContact',
|
|
14
|
+
'org.sso',
|
|
15
|
+
];
|
|
16
|
+
export const USER_RESOURCES = [
|
|
17
|
+
'user',
|
|
18
|
+
'discord.integration',
|
|
19
|
+
'github.integration',
|
|
20
|
+
'gitlab.integration',
|
|
21
|
+
'user.role',
|
|
22
|
+
];
|
|
23
|
+
export const DEPLOYMENT_RESOURCES = [
|
|
24
|
+
'agent',
|
|
25
|
+
'autopilot',
|
|
26
|
+
'deployment',
|
|
27
|
+
'deployment.agents',
|
|
28
|
+
'deployment.analytics',
|
|
29
|
+
'deployment.assistant',
|
|
30
|
+
'deployment.auth',
|
|
31
|
+
'deployment.basePath',
|
|
32
|
+
'deployment.customDomain',
|
|
33
|
+
'deployment.discoveryApiKey',
|
|
34
|
+
'deployment.endUserAuth',
|
|
35
|
+
'deployment.gitSource',
|
|
36
|
+
'deployment.history',
|
|
37
|
+
'deployment.pdf',
|
|
38
|
+
'deployment.personalization',
|
|
39
|
+
'deployment.preview',
|
|
40
|
+
'deployment.quota',
|
|
41
|
+
'deployment.slack',
|
|
42
|
+
'deployment.sourceChecks',
|
|
43
|
+
'deployment.translations',
|
|
44
|
+
'deployment.trial',
|
|
45
|
+
'deployment.usage',
|
|
46
|
+
'git.content',
|
|
47
|
+
'git.write',
|
|
48
|
+
'slack.integration',
|
|
49
|
+
];
|
|
50
|
+
export const ALL_PERMISSIONS = [
|
|
51
|
+
'agent.create',
|
|
52
|
+
'agent.read',
|
|
53
|
+
'agent.update',
|
|
54
|
+
'autopilot.create',
|
|
55
|
+
'autopilot.delete',
|
|
56
|
+
'autopilot.read',
|
|
57
|
+
'autopilot.update',
|
|
58
|
+
'deployment.agents.read',
|
|
59
|
+
'deployment.analytics.delete',
|
|
60
|
+
'deployment.analytics.read',
|
|
61
|
+
'deployment.analytics.update',
|
|
62
|
+
'deployment.assistant.create',
|
|
63
|
+
'deployment.assistant.delete',
|
|
64
|
+
'deployment.assistant.read',
|
|
65
|
+
'deployment.assistant.update',
|
|
66
|
+
'deployment.auth.create',
|
|
67
|
+
'deployment.auth.delete',
|
|
68
|
+
'deployment.auth.read',
|
|
69
|
+
'deployment.auth.update',
|
|
70
|
+
'deployment.auth.upsert',
|
|
71
|
+
'deployment.basePath.create',
|
|
72
|
+
'deployment.basePath.delete',
|
|
73
|
+
'deployment.basePath.read',
|
|
74
|
+
'deployment.basePath.update',
|
|
75
|
+
'deployment.basePath.upsert',
|
|
76
|
+
'deployment.create',
|
|
77
|
+
'deployment.customDomain.create',
|
|
78
|
+
'deployment.customDomain.delete',
|
|
79
|
+
'deployment.customDomain.read',
|
|
80
|
+
'deployment.customDomain.update',
|
|
81
|
+
'deployment.customDomain.upsert',
|
|
82
|
+
'deployment.delete',
|
|
83
|
+
'deployment.discoveryApiKey.create',
|
|
84
|
+
'deployment.discoveryApiKey.delete',
|
|
85
|
+
'deployment.discoveryApiKey.read',
|
|
86
|
+
'deployment.endUserAuth.read',
|
|
87
|
+
'deployment.gitSource.create',
|
|
88
|
+
'deployment.gitSource.delete',
|
|
89
|
+
'deployment.gitSource.read',
|
|
90
|
+
'deployment.gitSource.update',
|
|
91
|
+
'deployment.gitSource.upsert',
|
|
92
|
+
'deployment.history.read',
|
|
93
|
+
'deployment.pdf.create',
|
|
94
|
+
'deployment.pdf.delete',
|
|
95
|
+
'deployment.pdf.read',
|
|
96
|
+
'deployment.personalization.create',
|
|
97
|
+
'deployment.personalization.delete',
|
|
98
|
+
'deployment.personalization.read',
|
|
99
|
+
'deployment.personalization.update',
|
|
100
|
+
'deployment.personalization.upsert',
|
|
101
|
+
'deployment.preview.create',
|
|
102
|
+
'deployment.preview.read',
|
|
103
|
+
'deployment.preview.update',
|
|
104
|
+
'deployment.quota.read',
|
|
105
|
+
'deployment.quota.update',
|
|
106
|
+
'deployment.read',
|
|
107
|
+
'deployment.slack.read',
|
|
108
|
+
'deployment.sourceChecks.read',
|
|
109
|
+
'deployment.sourceChecks.update',
|
|
110
|
+
'deployment.translations.create',
|
|
111
|
+
'deployment.translations.read',
|
|
112
|
+
'deployment.translations.update',
|
|
113
|
+
'deployment.trial.read',
|
|
114
|
+
'deployment.update',
|
|
115
|
+
'deployment.upsert',
|
|
116
|
+
'deployment.usage.read',
|
|
117
|
+
'discord.integration.create',
|
|
118
|
+
'discord.integration.delete',
|
|
119
|
+
'discord.integration.read',
|
|
120
|
+
'discord.integration.update',
|
|
121
|
+
'git.content.read',
|
|
122
|
+
'git.write.create',
|
|
123
|
+
'git.write.delete',
|
|
124
|
+
'git.write.read',
|
|
125
|
+
'git.write.update',
|
|
126
|
+
'github.integration.create',
|
|
127
|
+
'github.integration.delete',
|
|
128
|
+
'github.integration.read',
|
|
129
|
+
'gitlab.integration.read',
|
|
130
|
+
'org.apiKey.create',
|
|
131
|
+
'org.apiKey.delete',
|
|
132
|
+
'org.apiKey.read',
|
|
133
|
+
'org.auditLogs.read',
|
|
134
|
+
'org.billing.read',
|
|
135
|
+
'org.billing.update',
|
|
136
|
+
'org.delete',
|
|
137
|
+
'org.deployments.read',
|
|
138
|
+
'org.editorPermissions.read',
|
|
139
|
+
'org.editorPermissions.update',
|
|
140
|
+
'org.gitlab.create',
|
|
141
|
+
'org.gitlab.read',
|
|
142
|
+
'org.gitlab.update',
|
|
143
|
+
'org.growthData.update',
|
|
144
|
+
'org.members.create',
|
|
145
|
+
'org.members.read',
|
|
146
|
+
'org.read',
|
|
147
|
+
'org.securityContact.delete',
|
|
148
|
+
'org.securityContact.read',
|
|
149
|
+
'org.securityContact.upsert',
|
|
150
|
+
'org.sso.create',
|
|
151
|
+
'org.sso.delete',
|
|
152
|
+
'org.sso.read',
|
|
153
|
+
'org.sso.update',
|
|
154
|
+
'org.update',
|
|
155
|
+
'slack.integration.create',
|
|
156
|
+
'slack.integration.delete',
|
|
157
|
+
'slack.integration.read',
|
|
158
|
+
'slack.integration.update',
|
|
159
|
+
'user.delete',
|
|
160
|
+
'user.read',
|
|
161
|
+
'user.role.create',
|
|
162
|
+
'user.role.delete',
|
|
163
|
+
'user.role.read',
|
|
164
|
+
'user.role.update',
|
|
165
|
+
'user.update',
|
|
166
|
+
];
|
|
167
|
+
// Permissions are cascaded: admin has editor+viewer, editor has viewer
|
|
168
|
+
export const ROLE_PERMISSIONS = {
|
|
169
|
+
admin: new Set([
|
|
170
|
+
'agent.create',
|
|
171
|
+
'agent.read',
|
|
172
|
+
'agent.update',
|
|
173
|
+
'autopilot.create',
|
|
174
|
+
'autopilot.delete',
|
|
175
|
+
'autopilot.read',
|
|
176
|
+
'autopilot.update',
|
|
177
|
+
'deployment.agents.read',
|
|
178
|
+
'deployment.analytics.delete',
|
|
179
|
+
'deployment.analytics.read',
|
|
180
|
+
'deployment.analytics.update',
|
|
181
|
+
'deployment.assistant.create',
|
|
182
|
+
'deployment.assistant.delete',
|
|
183
|
+
'deployment.assistant.read',
|
|
184
|
+
'deployment.assistant.update',
|
|
185
|
+
'deployment.auth.create',
|
|
186
|
+
'deployment.auth.delete',
|
|
187
|
+
'deployment.auth.read',
|
|
188
|
+
'deployment.auth.update',
|
|
189
|
+
'deployment.auth.upsert',
|
|
190
|
+
'deployment.basePath.create',
|
|
191
|
+
'deployment.basePath.delete',
|
|
192
|
+
'deployment.basePath.read',
|
|
193
|
+
'deployment.basePath.update',
|
|
194
|
+
'deployment.basePath.upsert',
|
|
195
|
+
'deployment.create',
|
|
196
|
+
'deployment.customDomain.create',
|
|
197
|
+
'deployment.customDomain.delete',
|
|
198
|
+
'deployment.customDomain.read',
|
|
199
|
+
'deployment.customDomain.update',
|
|
200
|
+
'deployment.customDomain.upsert',
|
|
201
|
+
'deployment.delete',
|
|
202
|
+
'deployment.discoveryApiKey.create',
|
|
203
|
+
'deployment.discoveryApiKey.delete',
|
|
204
|
+
'deployment.discoveryApiKey.read',
|
|
205
|
+
'deployment.endUserAuth.read',
|
|
206
|
+
'deployment.gitSource.create',
|
|
207
|
+
'deployment.gitSource.delete',
|
|
208
|
+
'deployment.gitSource.read',
|
|
209
|
+
'deployment.gitSource.update',
|
|
210
|
+
'deployment.gitSource.upsert',
|
|
211
|
+
'deployment.history.read',
|
|
212
|
+
'deployment.pdf.create',
|
|
213
|
+
'deployment.pdf.delete',
|
|
214
|
+
'deployment.pdf.read',
|
|
215
|
+
'deployment.personalization.create',
|
|
216
|
+
'deployment.personalization.delete',
|
|
217
|
+
'deployment.personalization.read',
|
|
218
|
+
'deployment.personalization.update',
|
|
219
|
+
'deployment.personalization.upsert',
|
|
220
|
+
'deployment.preview.create',
|
|
221
|
+
'deployment.preview.read',
|
|
222
|
+
'deployment.preview.update',
|
|
223
|
+
'deployment.quota.read',
|
|
224
|
+
'deployment.quota.update',
|
|
225
|
+
'deployment.read',
|
|
226
|
+
'deployment.slack.read',
|
|
227
|
+
'deployment.sourceChecks.read',
|
|
228
|
+
'deployment.sourceChecks.update',
|
|
229
|
+
'deployment.translations.create',
|
|
230
|
+
'deployment.translations.read',
|
|
231
|
+
'deployment.translations.update',
|
|
232
|
+
'deployment.trial.read',
|
|
233
|
+
'deployment.update',
|
|
234
|
+
'deployment.upsert',
|
|
235
|
+
'deployment.usage.read',
|
|
236
|
+
'discord.integration.create',
|
|
237
|
+
'discord.integration.delete',
|
|
238
|
+
'discord.integration.read',
|
|
239
|
+
'discord.integration.update',
|
|
240
|
+
'git.content.read',
|
|
241
|
+
'git.write.create',
|
|
242
|
+
'git.write.delete',
|
|
243
|
+
'git.write.read',
|
|
244
|
+
'git.write.update',
|
|
245
|
+
'github.integration.create',
|
|
246
|
+
'github.integration.delete',
|
|
247
|
+
'github.integration.read',
|
|
248
|
+
'gitlab.integration.read',
|
|
249
|
+
'org.apiKey.create',
|
|
250
|
+
'org.apiKey.delete',
|
|
251
|
+
'org.apiKey.read',
|
|
252
|
+
'org.auditLogs.read',
|
|
253
|
+
'org.billing.read',
|
|
254
|
+
'org.billing.update',
|
|
255
|
+
'org.delete',
|
|
256
|
+
'org.deployments.read',
|
|
257
|
+
'org.editorPermissions.read',
|
|
258
|
+
'org.editorPermissions.update',
|
|
259
|
+
'org.gitlab.create',
|
|
260
|
+
'org.gitlab.read',
|
|
261
|
+
'org.gitlab.update',
|
|
262
|
+
'org.growthData.update',
|
|
263
|
+
'org.members.create',
|
|
264
|
+
'org.members.read',
|
|
265
|
+
'org.read',
|
|
266
|
+
'org.securityContact.delete',
|
|
267
|
+
'org.securityContact.read',
|
|
268
|
+
'org.securityContact.upsert',
|
|
269
|
+
'org.sso.create',
|
|
270
|
+
'org.sso.delete',
|
|
271
|
+
'org.sso.read',
|
|
272
|
+
'org.sso.update',
|
|
273
|
+
'org.update',
|
|
274
|
+
'slack.integration.create',
|
|
275
|
+
'slack.integration.delete',
|
|
276
|
+
'slack.integration.read',
|
|
277
|
+
'slack.integration.update',
|
|
278
|
+
'user.delete',
|
|
279
|
+
'user.read',
|
|
280
|
+
'user.role.create',
|
|
281
|
+
'user.role.delete',
|
|
282
|
+
'user.role.read',
|
|
283
|
+
'user.role.update',
|
|
284
|
+
'user.update',
|
|
285
|
+
]),
|
|
286
|
+
editor: new Set([
|
|
287
|
+
'agent.create',
|
|
288
|
+
'agent.read',
|
|
289
|
+
'agent.update',
|
|
290
|
+
'autopilot.create',
|
|
291
|
+
'autopilot.delete',
|
|
292
|
+
'autopilot.read',
|
|
293
|
+
'autopilot.update',
|
|
294
|
+
'deployment.agents.read',
|
|
295
|
+
'deployment.analytics.delete',
|
|
296
|
+
'deployment.analytics.read',
|
|
297
|
+
'deployment.analytics.update',
|
|
298
|
+
'deployment.assistant.create',
|
|
299
|
+
'deployment.assistant.delete',
|
|
300
|
+
'deployment.assistant.read',
|
|
301
|
+
'deployment.assistant.update',
|
|
302
|
+
'deployment.auth.create',
|
|
303
|
+
'deployment.auth.delete',
|
|
304
|
+
'deployment.auth.read',
|
|
305
|
+
'deployment.auth.update',
|
|
306
|
+
'deployment.create',
|
|
307
|
+
'deployment.customDomain.read',
|
|
308
|
+
'deployment.discoveryApiKey.create',
|
|
309
|
+
'deployment.discoveryApiKey.delete',
|
|
310
|
+
'deployment.discoveryApiKey.read',
|
|
311
|
+
'deployment.endUserAuth.read',
|
|
312
|
+
'deployment.history.read',
|
|
313
|
+
'deployment.pdf.create',
|
|
314
|
+
'deployment.pdf.delete',
|
|
315
|
+
'deployment.pdf.read',
|
|
316
|
+
'deployment.preview.create',
|
|
317
|
+
'deployment.preview.read',
|
|
318
|
+
'deployment.preview.update',
|
|
319
|
+
'deployment.quota.read',
|
|
320
|
+
'deployment.read',
|
|
321
|
+
'deployment.slack.read',
|
|
322
|
+
'deployment.sourceChecks.read',
|
|
323
|
+
'deployment.sourceChecks.update',
|
|
324
|
+
'deployment.translations.create',
|
|
325
|
+
'deployment.translations.read',
|
|
326
|
+
'deployment.translations.update',
|
|
327
|
+
'deployment.trial.read',
|
|
328
|
+
'deployment.update',
|
|
329
|
+
'deployment.usage.read',
|
|
330
|
+
'discord.integration.create',
|
|
331
|
+
'discord.integration.delete',
|
|
332
|
+
'discord.integration.read',
|
|
333
|
+
'discord.integration.update',
|
|
334
|
+
'git.content.read',
|
|
335
|
+
'git.write.create',
|
|
336
|
+
'git.write.delete',
|
|
337
|
+
'git.write.read',
|
|
338
|
+
'git.write.update',
|
|
339
|
+
'github.integration.create',
|
|
340
|
+
'github.integration.delete',
|
|
341
|
+
'github.integration.read',
|
|
342
|
+
'gitlab.integration.read',
|
|
343
|
+
'org.apiKey.create',
|
|
344
|
+
'org.apiKey.delete',
|
|
345
|
+
'org.apiKey.read',
|
|
346
|
+
'org.billing.read',
|
|
347
|
+
'org.deployments.read',
|
|
348
|
+
'org.editorPermissions.read',
|
|
349
|
+
'org.gitlab.create',
|
|
350
|
+
'org.gitlab.read',
|
|
351
|
+
'org.gitlab.update',
|
|
352
|
+
'org.growthData.update',
|
|
353
|
+
'org.members.create',
|
|
354
|
+
'org.members.read',
|
|
355
|
+
'org.read',
|
|
356
|
+
'org.update',
|
|
357
|
+
'slack.integration.create',
|
|
358
|
+
'slack.integration.delete',
|
|
359
|
+
'slack.integration.read',
|
|
360
|
+
'slack.integration.update',
|
|
361
|
+
'user.read',
|
|
362
|
+
'user.role.create',
|
|
363
|
+
'user.update',
|
|
364
|
+
]),
|
|
365
|
+
viewer: new Set([
|
|
366
|
+
'agent.read',
|
|
367
|
+
'autopilot.read',
|
|
368
|
+
'deployment.agents.read',
|
|
369
|
+
'deployment.analytics.read',
|
|
370
|
+
'deployment.assistant.read',
|
|
371
|
+
'deployment.auth.read',
|
|
372
|
+
'deployment.customDomain.read',
|
|
373
|
+
'deployment.discoveryApiKey.read',
|
|
374
|
+
'deployment.endUserAuth.read',
|
|
375
|
+
'deployment.history.read',
|
|
376
|
+
'deployment.pdf.create',
|
|
377
|
+
'deployment.pdf.read',
|
|
378
|
+
'deployment.preview.read',
|
|
379
|
+
'deployment.quota.read',
|
|
380
|
+
'deployment.read',
|
|
381
|
+
'deployment.slack.read',
|
|
382
|
+
'deployment.sourceChecks.read',
|
|
383
|
+
'deployment.translations.read',
|
|
384
|
+
'deployment.trial.read',
|
|
385
|
+
'deployment.usage.read',
|
|
386
|
+
'discord.integration.read',
|
|
387
|
+
'git.content.read',
|
|
388
|
+
'github.integration.read',
|
|
389
|
+
'gitlab.integration.read',
|
|
390
|
+
'org.apiKey.read',
|
|
391
|
+
'org.billing.read',
|
|
392
|
+
'org.deployments.read',
|
|
393
|
+
'org.editorPermissions.read',
|
|
394
|
+
'org.gitlab.read',
|
|
395
|
+
'org.growthData.update',
|
|
396
|
+
'org.members.read',
|
|
397
|
+
'org.read',
|
|
398
|
+
'slack.integration.read',
|
|
399
|
+
'user.read',
|
|
400
|
+
'user.update',
|
|
401
|
+
]),
|
|
402
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mintlify/models",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.267",
|
|
4
4
|
"description": "Mintlify models",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=18.0.0"
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"rimraf": "5.0.1",
|
|
55
55
|
"typescript": "5.5.3"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "854fdc0eb8d8500777c1daaa9bc21541e70b5bac"
|
|
58
58
|
}
|