@sudobility/types 1.9.44 → 1.9.46
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 +220 -50
- package/dist/index.d.ts +44 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +220 -50
- package/dist/index.js.map +1 -1
- package/dist/types/entity/entity.cjs +2 -2
- package/dist/types/entity/entity.d.ts +4 -4
- package/dist/types/entity/entity.d.ts.map +1 -1
- package/dist/types/entity/entity.js +2 -2
- package/dist/types/entity/entity.js.map +1 -1
- package/dist/types/entity/permissions.cjs +8 -8
- package/dist/types/entity/permissions.d.ts +17 -0
- package/dist/types/entity/permissions.d.ts.map +1 -1
- package/dist/types/entity/permissions.js +8 -8
- package/dist/types/entity/permissions.js.map +1 -1
- package/dist/types/entity/requests.d.ts +3 -3
- package/dist/utils/async-helpers.cjs +6 -6
- package/dist/utils/async-helpers.js +6 -6
- package/dist/utils/async-helpers.js.map +1 -1
- package/package.json +1 -1
- package/dist/types/blockchain/index.cjs +0 -18
- package/dist/types/blockchain/index.d.ts +0 -4
- package/dist/types/blockchain/index.d.ts.map +0 -1
- package/dist/types/blockchain/index.js +0 -18
- package/dist/types/blockchain/index.js.map +0 -1
- package/dist/types/business/index.cjs +0 -33
- package/dist/types/business/index.d.ts +0 -4
- package/dist/types/business/index.d.ts.map +0 -1
- package/dist/types/business/index.js +0 -33
- package/dist/types/business/index.js.map +0 -1
- package/dist/types/config/index.cjs +0 -6
- package/dist/types/config/index.d.ts +0 -4
- package/dist/types/config/index.d.ts.map +0 -1
- package/dist/types/config/index.js +0 -6
- package/dist/types/config/index.js.map +0 -1
- package/dist/types/entity/index.cjs +0 -29
- package/dist/types/entity/index.d.ts +0 -9
- package/dist/types/entity/index.d.ts.map +0 -1
- package/dist/types/entity/index.js +0 -29
- package/dist/types/entity/index.js.map +0 -1
- package/dist/types/index.cjs +0 -31
- package/dist/types/index.d.ts +0 -8
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -31
- package/dist/types/index.js.map +0 -1
- package/dist/types/infrastructure/index.cjs +0 -16
- package/dist/types/infrastructure/index.d.ts +0 -9
- package/dist/types/infrastructure/index.d.ts.map +0 -1
- package/dist/types/infrastructure/index.js +0 -16
- package/dist/types/infrastructure/index.js.map +0 -1
- package/dist/types/subscription/index.cjs +0 -19
- package/dist/types/subscription/index.d.ts +0 -2
- package/dist/types/subscription/index.d.ts.map +0 -1
- package/dist/types/subscription/index.js +0 -19
- package/dist/types/subscription/index.js.map +0 -1
- package/dist/utils/auth/index.cjs +0 -14
- package/dist/utils/auth/index.d.ts +0 -2
- package/dist/utils/auth/index.d.ts.map +0 -1
- package/dist/utils/auth/index.js +0 -14
- package/dist/utils/auth/index.js.map +0 -1
- package/dist/utils/blockchain/index.cjs +0 -28
- package/dist/utils/blockchain/index.d.ts +0 -6
- package/dist/utils/blockchain/index.d.ts.map +0 -1
- package/dist/utils/blockchain/index.js +0 -28
- package/dist/utils/blockchain/index.js.map +0 -1
- package/dist/utils/constants/index.cjs +0 -29
- package/dist/utils/constants/index.d.ts +0 -7
- package/dist/utils/constants/index.d.ts.map +0 -1
- package/dist/utils/constants/index.js +0 -29
- package/dist/utils/constants/index.js.map +0 -1
- package/dist/utils/formatting/index.cjs +0 -37
- package/dist/utils/formatting/index.d.ts +0 -4
- package/dist/utils/formatting/index.d.ts.map +0 -1
- package/dist/utils/formatting/index.js +0 -37
- package/dist/utils/formatting/index.js.map +0 -1
- package/dist/utils/index.cjs +0 -28
- package/dist/utils/index.d.ts +0 -12
- package/dist/utils/index.d.ts.map +0 -1
- package/dist/utils/index.js +0 -28
- package/dist/utils/index.js.map +0 -1
- package/dist/utils/logging/index.cjs +0 -16
- package/dist/utils/logging/index.d.ts +0 -5
- package/dist/utils/logging/index.d.ts.map +0 -1
- package/dist/utils/logging/index.js +0 -16
- package/dist/utils/logging/index.js.map +0 -1
- package/dist/utils/url/index.cjs +0 -13
- package/dist/utils/url/index.d.ts +0 -5
- package/dist/utils/url/index.d.ts.map +0 -1
- package/dist/utils/url/index.js +0 -13
- package/dist/utils/url/index.js.map +0 -1
- package/dist/utils/validation/index.cjs +0 -25
- package/dist/utils/validation/index.d.ts +0 -5
- package/dist/utils/validation/index.d.ts.map +0 -1
- package/dist/utils/validation/index.js +0 -25
- package/dist/utils/validation/index.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -9,55 +9,225 @@
|
|
|
9
9
|
* @version 1.0.0
|
|
10
10
|
* @license MIT
|
|
11
11
|
*/
|
|
12
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
13
|
-
if (k2 === undefined) k2 = k;
|
|
14
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
15
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
16
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
17
|
-
}
|
|
18
|
-
Object.defineProperty(o, k2, desc);
|
|
19
|
-
}) : (function(o, m, k, k2) {
|
|
20
|
-
if (k2 === undefined) k2 = k;
|
|
21
|
-
o[k2] = m[k];
|
|
22
|
-
}));
|
|
23
|
-
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
24
|
-
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
25
|
-
};
|
|
26
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
-
exports.ProcessedEventName = exports.ContractType = exports.StorageType = exports.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
//
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
Object.defineProperty(exports, "
|
|
37
|
-
Object.defineProperty(exports, "
|
|
38
|
-
Object.defineProperty(exports, "
|
|
39
|
-
Object.defineProperty(exports, "
|
|
40
|
-
Object.defineProperty(exports, "
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
Object.defineProperty(exports, "
|
|
45
|
-
Object.defineProperty(exports, "
|
|
46
|
-
Object.defineProperty(exports, "
|
|
47
|
-
Object.defineProperty(exports, "
|
|
48
|
-
Object.defineProperty(exports, "
|
|
49
|
-
Object.defineProperty(exports, "
|
|
50
|
-
Object.defineProperty(exports, "
|
|
51
|
-
Object.defineProperty(exports, "
|
|
52
|
-
Object.defineProperty(exports, "
|
|
53
|
-
|
|
54
|
-
Object.defineProperty(exports, "
|
|
55
|
-
Object.defineProperty(exports, "
|
|
56
|
-
|
|
57
|
-
Object.defineProperty(exports, "
|
|
58
|
-
Object.defineProperty(exports, "
|
|
59
|
-
|
|
60
|
-
Object.defineProperty(exports, "
|
|
61
|
-
Object.defineProperty(exports, "
|
|
62
|
-
Object.defineProperty(exports, "
|
|
13
|
+
exports.MANAGER_PERMISSIONS = exports.OWNER_PERMISSIONS = exports.InvitationStatus = exports.EntityRole = exports.EntityType = exports.RateLimitPeriodType = exports.WalletType = exports.NetworkError = exports.ProcessedEventName = exports.ContractType = exports.AnalyticsEventBuilder = exports.AnalyticsEvent = exports.StorageType = exports.validateMessage = exports.validateDomain = exports.validateAmount = exports.validateAddress = exports.isSolanaRecipient = exports.isSolanaAddress = exports.isEvmRecipient = exports.isEvmAddress = exports.TransactionStatus = exports.PROTOCOL_CONSTANTS = exports.MessageType = exports.isWalletVerified = exports.isWalletConnected = exports.getWalletConnectionState = exports.Theme = exports.SubscriptionAction = exports.SortOrder = exports.RequestStatus = exports.PlatformType = exports.NotificationType = exports.MobileView = exports.MediumView = exports.InfoType = exports.FontSize = exports.FeatureFlag = exports.ErrorType = exports.EmailValidationState = exports.EmailSortCriteria = exports.EmailComposeType = exports.EmailAddressType = exports.EmailAction = exports.Currency = exports.ConnectionType = exports.ConnectionState = exports.ChainType = exports.Chain = exports.AuthStatus = void 0;
|
|
14
|
+
exports.USDC_DECIMALS = exports.CLAIM_PERIOD_DAYS = exports.isValidNonce = exports.isAuthStatusConnected = exports.isAuthExpired = exports.getAuthStatusText = exports.generateNonce = exports.generateAuthMessage = exports.extractNonceFromMessage = exports.canAccessProtectedFeatures = exports.validateEventArgs = exports.normalizeAddress = exports.isZeroAddress = exports.isTestNet = exports.formatBigInt = exports.createUserMultiChainId = exports.createMultiChainId = exports.createDelegationId = exports.createChainStatsId = exports.parseEmailAddress = exports.isValidWalletAddress = exports.isValidSignature = exports.isSNSName = exports.isENSName = exports.getChainDisplayName = exports.getAddressType = exports.formatWalletAddress = exports.AddressType = exports.validateArray = exports.parseJson = exports.optional = exports.isValidDate = exports.isUrl = exports.isSuccessResponse = exports.isString = exports.isObject = exports.isNumber = exports.isNullish = exports.isErrorResponse = exports.isEmail = exports.isBoolean = exports.isArray = exports.isApiResponse = exports.hasRequiredProperties = exports.createValidator = exports.createAssertion = exports.Web3UsernameValidator = exports.hasPermission = exports.getPermissionsForRole = exports.MEMBER_PERMISSIONS = void 0;
|
|
15
|
+
exports.storageLogger = exports.ensLogger = exports.contractLogger = exports.apiLogger = exports.authLogger = exports.logger = exports.LogLevel = exports.STATUS_VALUES = exports.Z_INDEX = exports.ANIMATION = exports.NETWORK_IDS = exports.WALLET_NAMES = exports.CONTACT_INFO = exports.ROUTES = exports.SUCCESS_MESSAGES = exports.ERROR_MESSAGES = exports.TIME_FORMAT = exports.SUBSCRIPTION_TIERS = exports.EMAIL_CONFIG = exports.STORAGE_KEYS = exports.CHAIN_TYPE = exports.AUTH_STATUS = exports.API_RETRY_DELAY = exports.API_RETRY_ATTEMPTS = exports.API_TIMEOUT = exports.truncate = exports.toTitleCase = exports.toSnakeCase = exports.toKebabCase = exports.toCamelCase = exports.stripHtml = exports.randomString = exports.pluralize = exports.normalizeWhitespace = exports.isNotBlank = exports.isBlank = exports.getInitials = exports.formatNumber = exports.formatBytes = exports.escapeHtml = exports.capitalize = exports.parseDate = exports.isDateInRange = exports.formatTimestamp = exports.formatRelativeTime = exports.formatEmailDate = exports.addHours = exports.addDays = exports.parseUSDC = exports.formatUSDC = void 0;
|
|
16
|
+
exports.debounceAsync = exports.clearExpiredCache = exports.withCache = exports.withTimeout = exports.safeParallel = exports.withLoadingState = exports.safeAsync = exports.parseSearchParams = exports.searchParamsToString = exports.createSearchParams = exports.createURLSearchParams = void 0;
|
|
17
|
+
// ============================================================================
|
|
18
|
+
// TYPES - Business
|
|
19
|
+
// ============================================================================
|
|
20
|
+
// Enums
|
|
21
|
+
var enums_1 = require("./types/business/enums");
|
|
22
|
+
Object.defineProperty(exports, "AuthStatus", { enumerable: true, get: function () { return enums_1.AuthStatus; } });
|
|
23
|
+
Object.defineProperty(exports, "Chain", { enumerable: true, get: function () { return enums_1.Chain; } });
|
|
24
|
+
Object.defineProperty(exports, "ChainType", { enumerable: true, get: function () { return enums_1.ChainType; } });
|
|
25
|
+
Object.defineProperty(exports, "ConnectionState", { enumerable: true, get: function () { return enums_1.ConnectionState; } });
|
|
26
|
+
Object.defineProperty(exports, "ConnectionType", { enumerable: true, get: function () { return enums_1.ConnectionType; } });
|
|
27
|
+
Object.defineProperty(exports, "Currency", { enumerable: true, get: function () { return enums_1.Currency; } });
|
|
28
|
+
Object.defineProperty(exports, "EmailAction", { enumerable: true, get: function () { return enums_1.EmailAction; } });
|
|
29
|
+
Object.defineProperty(exports, "EmailAddressType", { enumerable: true, get: function () { return enums_1.EmailAddressType; } });
|
|
30
|
+
Object.defineProperty(exports, "EmailComposeType", { enumerable: true, get: function () { return enums_1.EmailComposeType; } });
|
|
31
|
+
Object.defineProperty(exports, "EmailSortCriteria", { enumerable: true, get: function () { return enums_1.EmailSortCriteria; } });
|
|
32
|
+
Object.defineProperty(exports, "EmailValidationState", { enumerable: true, get: function () { return enums_1.EmailValidationState; } });
|
|
33
|
+
Object.defineProperty(exports, "ErrorType", { enumerable: true, get: function () { return enums_1.ErrorType; } });
|
|
34
|
+
Object.defineProperty(exports, "FeatureFlag", { enumerable: true, get: function () { return enums_1.FeatureFlag; } });
|
|
35
|
+
Object.defineProperty(exports, "FontSize", { enumerable: true, get: function () { return enums_1.FontSize; } });
|
|
36
|
+
Object.defineProperty(exports, "InfoType", { enumerable: true, get: function () { return enums_1.InfoType; } });
|
|
37
|
+
Object.defineProperty(exports, "MediumView", { enumerable: true, get: function () { return enums_1.MediumView; } });
|
|
38
|
+
Object.defineProperty(exports, "MobileView", { enumerable: true, get: function () { return enums_1.MobileView; } });
|
|
39
|
+
Object.defineProperty(exports, "NotificationType", { enumerable: true, get: function () { return enums_1.NotificationType; } });
|
|
40
|
+
Object.defineProperty(exports, "PlatformType", { enumerable: true, get: function () { return enums_1.PlatformType; } });
|
|
41
|
+
Object.defineProperty(exports, "RequestStatus", { enumerable: true, get: function () { return enums_1.RequestStatus; } });
|
|
42
|
+
Object.defineProperty(exports, "SortOrder", { enumerable: true, get: function () { return enums_1.SortOrder; } });
|
|
43
|
+
Object.defineProperty(exports, "SubscriptionAction", { enumerable: true, get: function () { return enums_1.SubscriptionAction; } });
|
|
44
|
+
Object.defineProperty(exports, "Theme", { enumerable: true, get: function () { return enums_1.Theme; } });
|
|
45
|
+
var wallet_status_1 = require("./types/business/wallet-status");
|
|
46
|
+
Object.defineProperty(exports, "getWalletConnectionState", { enumerable: true, get: function () { return wallet_status_1.getWalletConnectionState; } });
|
|
47
|
+
Object.defineProperty(exports, "isWalletConnected", { enumerable: true, get: function () { return wallet_status_1.isWalletConnected; } });
|
|
48
|
+
Object.defineProperty(exports, "isWalletVerified", { enumerable: true, get: function () { return wallet_status_1.isWalletVerified; } });
|
|
49
|
+
var common_1 = require("./types/blockchain/common");
|
|
50
|
+
Object.defineProperty(exports, "MessageType", { enumerable: true, get: function () { return common_1.MessageType; } });
|
|
51
|
+
Object.defineProperty(exports, "PROTOCOL_CONSTANTS", { enumerable: true, get: function () { return common_1.PROTOCOL_CONSTANTS; } });
|
|
52
|
+
Object.defineProperty(exports, "TransactionStatus", { enumerable: true, get: function () { return common_1.TransactionStatus; } });
|
|
53
|
+
Object.defineProperty(exports, "isEvmAddress", { enumerable: true, get: function () { return common_1.isEvmAddress; } });
|
|
54
|
+
Object.defineProperty(exports, "isEvmRecipient", { enumerable: true, get: function () { return common_1.isEvmRecipient; } });
|
|
55
|
+
Object.defineProperty(exports, "isSolanaAddress", { enumerable: true, get: function () { return common_1.isSolanaAddress; } });
|
|
56
|
+
Object.defineProperty(exports, "isSolanaRecipient", { enumerable: true, get: function () { return common_1.isSolanaRecipient; } });
|
|
57
|
+
var validation_1 = require("./types/blockchain/validation");
|
|
58
|
+
Object.defineProperty(exports, "validateAddress", { enumerable: true, get: function () { return validation_1.validateAddress; } });
|
|
59
|
+
Object.defineProperty(exports, "validateAmount", { enumerable: true, get: function () { return validation_1.validateAmount; } });
|
|
60
|
+
Object.defineProperty(exports, "validateDomain", { enumerable: true, get: function () { return validation_1.validateDomain; } });
|
|
61
|
+
Object.defineProperty(exports, "validateMessage", { enumerable: true, get: function () { return validation_1.validateMessage; } });
|
|
62
|
+
var environment_1 = require("./types/config/environment");
|
|
63
|
+
Object.defineProperty(exports, "StorageType", { enumerable: true, get: function () { return environment_1.StorageType; } });
|
|
64
|
+
var analytics_1 = require("./types/infrastructure/analytics");
|
|
65
|
+
Object.defineProperty(exports, "AnalyticsEvent", { enumerable: true, get: function () { return analytics_1.AnalyticsEvent; } });
|
|
66
|
+
Object.defineProperty(exports, "AnalyticsEventBuilder", { enumerable: true, get: function () { return analytics_1.AnalyticsEventBuilder; } });
|
|
67
|
+
var api_1 = require("./types/infrastructure/api");
|
|
68
|
+
Object.defineProperty(exports, "ContractType", { enumerable: true, get: function () { return api_1.ContractType; } });
|
|
69
|
+
Object.defineProperty(exports, "ProcessedEventName", { enumerable: true, get: function () { return api_1.ProcessedEventName; } });
|
|
70
|
+
var network_1 = require("./types/infrastructure/network");
|
|
71
|
+
Object.defineProperty(exports, "NetworkError", { enumerable: true, get: function () { return network_1.NetworkError; } });
|
|
72
|
+
// Wallet
|
|
73
|
+
var wallet_1 = require("./types/infrastructure/wallet");
|
|
74
|
+
Object.defineProperty(exports, "WalletType", { enumerable: true, get: function () { return wallet_1.WalletType; } });
|
|
75
|
+
var rate_limits_1 = require("./types/subscription/rate-limits");
|
|
76
|
+
Object.defineProperty(exports, "RateLimitPeriodType", { enumerable: true, get: function () { return rate_limits_1.RateLimitPeriodType; } });
|
|
77
|
+
// ============================================================================
|
|
78
|
+
// TYPES - Entity
|
|
79
|
+
// ============================================================================
|
|
80
|
+
// Core entity types
|
|
81
|
+
var entity_1 = require("./types/entity/entity");
|
|
82
|
+
Object.defineProperty(exports, "EntityType", { enumerable: true, get: function () { return entity_1.EntityType; } });
|
|
83
|
+
Object.defineProperty(exports, "EntityRole", { enumerable: true, get: function () { return entity_1.EntityRole; } });
|
|
84
|
+
Object.defineProperty(exports, "InvitationStatus", { enumerable: true, get: function () { return entity_1.InvitationStatus; } });
|
|
85
|
+
var permissions_1 = require("./types/entity/permissions");
|
|
86
|
+
Object.defineProperty(exports, "OWNER_PERMISSIONS", { enumerable: true, get: function () { return permissions_1.OWNER_PERMISSIONS; } });
|
|
87
|
+
Object.defineProperty(exports, "MANAGER_PERMISSIONS", { enumerable: true, get: function () { return permissions_1.MANAGER_PERMISSIONS; } });
|
|
88
|
+
Object.defineProperty(exports, "MEMBER_PERMISSIONS", { enumerable: true, get: function () { return permissions_1.MEMBER_PERMISSIONS; } });
|
|
89
|
+
Object.defineProperty(exports, "getPermissionsForRole", { enumerable: true, get: function () { return permissions_1.getPermissionsForRole; } });
|
|
90
|
+
Object.defineProperty(exports, "hasPermission", { enumerable: true, get: function () { return permissions_1.hasPermission; } });
|
|
91
|
+
var web3_username_validator_1 = require("./utils/validation/web3-username-validator");
|
|
92
|
+
Object.defineProperty(exports, "Web3UsernameValidator", { enumerable: true, get: function () { return web3_username_validator_1.Web3UsernameValidator; } });
|
|
93
|
+
var type_validation_1 = require("./utils/validation/type-validation");
|
|
94
|
+
Object.defineProperty(exports, "createAssertion", { enumerable: true, get: function () { return type_validation_1.createAssertion; } });
|
|
95
|
+
Object.defineProperty(exports, "createValidator", { enumerable: true, get: function () { return type_validation_1.createValidator; } });
|
|
96
|
+
Object.defineProperty(exports, "hasRequiredProperties", { enumerable: true, get: function () { return type_validation_1.hasRequiredProperties; } });
|
|
97
|
+
Object.defineProperty(exports, "isApiResponse", { enumerable: true, get: function () { return type_validation_1.isApiResponse; } });
|
|
98
|
+
Object.defineProperty(exports, "isArray", { enumerable: true, get: function () { return type_validation_1.isArray; } });
|
|
99
|
+
Object.defineProperty(exports, "isBoolean", { enumerable: true, get: function () { return type_validation_1.isBoolean; } });
|
|
100
|
+
Object.defineProperty(exports, "isEmail", { enumerable: true, get: function () { return type_validation_1.isEmail; } });
|
|
101
|
+
Object.defineProperty(exports, "isErrorResponse", { enumerable: true, get: function () { return type_validation_1.isErrorResponse; } });
|
|
102
|
+
Object.defineProperty(exports, "isNullish", { enumerable: true, get: function () { return type_validation_1.isNullish; } });
|
|
103
|
+
Object.defineProperty(exports, "isNumber", { enumerable: true, get: function () { return type_validation_1.isNumber; } });
|
|
104
|
+
Object.defineProperty(exports, "isObject", { enumerable: true, get: function () { return type_validation_1.isObject; } });
|
|
105
|
+
Object.defineProperty(exports, "isString", { enumerable: true, get: function () { return type_validation_1.isString; } });
|
|
106
|
+
Object.defineProperty(exports, "isSuccessResponse", { enumerable: true, get: function () { return type_validation_1.isSuccessResponse; } });
|
|
107
|
+
Object.defineProperty(exports, "isUrl", { enumerable: true, get: function () { return type_validation_1.isUrl; } });
|
|
108
|
+
Object.defineProperty(exports, "isValidDate", { enumerable: true, get: function () { return type_validation_1.isValidDate; } });
|
|
109
|
+
Object.defineProperty(exports, "optional", { enumerable: true, get: function () { return type_validation_1.optional; } });
|
|
110
|
+
Object.defineProperty(exports, "parseJson", { enumerable: true, get: function () { return type_validation_1.parseJson; } });
|
|
111
|
+
Object.defineProperty(exports, "validateArray", { enumerable: true, get: function () { return type_validation_1.validateArray; } });
|
|
112
|
+
var address_1 = require("./utils/blockchain/address");
|
|
113
|
+
Object.defineProperty(exports, "AddressType", { enumerable: true, get: function () { return address_1.AddressType; } });
|
|
114
|
+
Object.defineProperty(exports, "formatWalletAddress", { enumerable: true, get: function () { return address_1.formatWalletAddress; } });
|
|
115
|
+
Object.defineProperty(exports, "getAddressType", { enumerable: true, get: function () { return address_1.getAddressType; } });
|
|
116
|
+
Object.defineProperty(exports, "getChainDisplayName", { enumerable: true, get: function () { return address_1.getChainDisplayName; } });
|
|
117
|
+
Object.defineProperty(exports, "isENSName", { enumerable: true, get: function () { return address_1.isENSName; } });
|
|
118
|
+
Object.defineProperty(exports, "isSNSName", { enumerable: true, get: function () { return address_1.isSNSName; } });
|
|
119
|
+
Object.defineProperty(exports, "isValidSignature", { enumerable: true, get: function () { return address_1.isValidSignature; } });
|
|
120
|
+
Object.defineProperty(exports, "isValidWalletAddress", { enumerable: true, get: function () { return address_1.isValidWalletAddress; } });
|
|
121
|
+
Object.defineProperty(exports, "parseEmailAddress", { enumerable: true, get: function () { return address_1.parseEmailAddress; } });
|
|
122
|
+
var event_helpers_1 = require("./utils/blockchain/event-helpers");
|
|
123
|
+
Object.defineProperty(exports, "createChainStatsId", { enumerable: true, get: function () { return event_helpers_1.createChainStatsId; } });
|
|
124
|
+
Object.defineProperty(exports, "createDelegationId", { enumerable: true, get: function () { return event_helpers_1.createDelegationId; } });
|
|
125
|
+
Object.defineProperty(exports, "createMultiChainId", { enumerable: true, get: function () { return event_helpers_1.createMultiChainId; } });
|
|
126
|
+
Object.defineProperty(exports, "createUserMultiChainId", { enumerable: true, get: function () { return event_helpers_1.createUserMultiChainId; } });
|
|
127
|
+
Object.defineProperty(exports, "formatBigInt", { enumerable: true, get: function () { return event_helpers_1.formatBigInt; } });
|
|
128
|
+
Object.defineProperty(exports, "isTestNet", { enumerable: true, get: function () { return event_helpers_1.isTestNet; } });
|
|
129
|
+
Object.defineProperty(exports, "isZeroAddress", { enumerable: true, get: function () { return event_helpers_1.isZeroAddress; } });
|
|
130
|
+
Object.defineProperty(exports, "normalizeAddress", { enumerable: true, get: function () { return event_helpers_1.normalizeAddress; } });
|
|
131
|
+
Object.defineProperty(exports, "validateEventArgs", { enumerable: true, get: function () { return event_helpers_1.validateEventArgs; } });
|
|
132
|
+
// ============================================================================
|
|
133
|
+
// UTILS - Auth
|
|
134
|
+
// ============================================================================
|
|
135
|
+
var auth_1 = require("./utils/auth/auth");
|
|
136
|
+
Object.defineProperty(exports, "canAccessProtectedFeatures", { enumerable: true, get: function () { return auth_1.canAccessProtectedFeatures; } });
|
|
137
|
+
Object.defineProperty(exports, "extractNonceFromMessage", { enumerable: true, get: function () { return auth_1.extractNonceFromMessage; } });
|
|
138
|
+
Object.defineProperty(exports, "generateAuthMessage", { enumerable: true, get: function () { return auth_1.generateAuthMessage; } });
|
|
139
|
+
Object.defineProperty(exports, "generateNonce", { enumerable: true, get: function () { return auth_1.generateNonce; } });
|
|
140
|
+
Object.defineProperty(exports, "getAuthStatusText", { enumerable: true, get: function () { return auth_1.getAuthStatusText; } });
|
|
141
|
+
Object.defineProperty(exports, "isAuthExpired", { enumerable: true, get: function () { return auth_1.isAuthExpired; } });
|
|
142
|
+
Object.defineProperty(exports, "isAuthStatusConnected", { enumerable: true, get: function () { return auth_1.isAuthStatusConnected; } });
|
|
143
|
+
Object.defineProperty(exports, "isValidNonce", { enumerable: true, get: function () { return auth_1.isValidNonce; } });
|
|
144
|
+
// ============================================================================
|
|
145
|
+
// UTILS - Formatting
|
|
146
|
+
// ============================================================================
|
|
147
|
+
// Currency
|
|
148
|
+
var currency_1 = require("./utils/formatting/currency");
|
|
149
|
+
Object.defineProperty(exports, "CLAIM_PERIOD_DAYS", { enumerable: true, get: function () { return currency_1.CLAIM_PERIOD_DAYS; } });
|
|
150
|
+
Object.defineProperty(exports, "USDC_DECIMALS", { enumerable: true, get: function () { return currency_1.USDC_DECIMALS; } });
|
|
151
|
+
Object.defineProperty(exports, "formatUSDC", { enumerable: true, get: function () { return currency_1.formatUSDC; } });
|
|
152
|
+
Object.defineProperty(exports, "parseUSDC", { enumerable: true, get: function () { return currency_1.parseUSDC; } });
|
|
153
|
+
// Date
|
|
154
|
+
var date_1 = require("./utils/formatting/date");
|
|
155
|
+
Object.defineProperty(exports, "addDays", { enumerable: true, get: function () { return date_1.addDays; } });
|
|
156
|
+
Object.defineProperty(exports, "addHours", { enumerable: true, get: function () { return date_1.addHours; } });
|
|
157
|
+
Object.defineProperty(exports, "formatEmailDate", { enumerable: true, get: function () { return date_1.formatEmailDate; } });
|
|
158
|
+
Object.defineProperty(exports, "formatRelativeTime", { enumerable: true, get: function () { return date_1.formatRelativeTime; } });
|
|
159
|
+
Object.defineProperty(exports, "formatTimestamp", { enumerable: true, get: function () { return date_1.formatTimestamp; } });
|
|
160
|
+
Object.defineProperty(exports, "isDateInRange", { enumerable: true, get: function () { return date_1.isDateInRange; } });
|
|
161
|
+
Object.defineProperty(exports, "parseDate", { enumerable: true, get: function () { return date_1.parseDate; } });
|
|
162
|
+
// String
|
|
163
|
+
var string_1 = require("./utils/formatting/string");
|
|
164
|
+
Object.defineProperty(exports, "capitalize", { enumerable: true, get: function () { return string_1.capitalize; } });
|
|
165
|
+
Object.defineProperty(exports, "escapeHtml", { enumerable: true, get: function () { return string_1.escapeHtml; } });
|
|
166
|
+
Object.defineProperty(exports, "formatBytes", { enumerable: true, get: function () { return string_1.formatBytes; } });
|
|
167
|
+
Object.defineProperty(exports, "formatNumber", { enumerable: true, get: function () { return string_1.formatNumber; } });
|
|
168
|
+
Object.defineProperty(exports, "getInitials", { enumerable: true, get: function () { return string_1.getInitials; } });
|
|
169
|
+
Object.defineProperty(exports, "isBlank", { enumerable: true, get: function () { return string_1.isBlank; } });
|
|
170
|
+
Object.defineProperty(exports, "isNotBlank", { enumerable: true, get: function () { return string_1.isNotBlank; } });
|
|
171
|
+
Object.defineProperty(exports, "normalizeWhitespace", { enumerable: true, get: function () { return string_1.normalizeWhitespace; } });
|
|
172
|
+
Object.defineProperty(exports, "pluralize", { enumerable: true, get: function () { return string_1.pluralize; } });
|
|
173
|
+
Object.defineProperty(exports, "randomString", { enumerable: true, get: function () { return string_1.randomString; } });
|
|
174
|
+
Object.defineProperty(exports, "stripHtml", { enumerable: true, get: function () { return string_1.stripHtml; } });
|
|
175
|
+
Object.defineProperty(exports, "toCamelCase", { enumerable: true, get: function () { return string_1.toCamelCase; } });
|
|
176
|
+
Object.defineProperty(exports, "toKebabCase", { enumerable: true, get: function () { return string_1.toKebabCase; } });
|
|
177
|
+
Object.defineProperty(exports, "toSnakeCase", { enumerable: true, get: function () { return string_1.toSnakeCase; } });
|
|
178
|
+
Object.defineProperty(exports, "toTitleCase", { enumerable: true, get: function () { return string_1.toTitleCase; } });
|
|
179
|
+
Object.defineProperty(exports, "truncate", { enumerable: true, get: function () { return string_1.truncate; } });
|
|
180
|
+
// ============================================================================
|
|
181
|
+
// UTILS - Constants
|
|
182
|
+
// ============================================================================
|
|
183
|
+
var application_1 = require("./utils/constants/application");
|
|
184
|
+
Object.defineProperty(exports, "API_TIMEOUT", { enumerable: true, get: function () { return application_1.API_TIMEOUT; } });
|
|
185
|
+
Object.defineProperty(exports, "API_RETRY_ATTEMPTS", { enumerable: true, get: function () { return application_1.API_RETRY_ATTEMPTS; } });
|
|
186
|
+
Object.defineProperty(exports, "API_RETRY_DELAY", { enumerable: true, get: function () { return application_1.API_RETRY_DELAY; } });
|
|
187
|
+
Object.defineProperty(exports, "AUTH_STATUS", { enumerable: true, get: function () { return application_1.AUTH_STATUS; } });
|
|
188
|
+
Object.defineProperty(exports, "CHAIN_TYPE", { enumerable: true, get: function () { return application_1.CHAIN_TYPE; } });
|
|
189
|
+
Object.defineProperty(exports, "STORAGE_KEYS", { enumerable: true, get: function () { return application_1.STORAGE_KEYS; } });
|
|
190
|
+
Object.defineProperty(exports, "EMAIL_CONFIG", { enumerable: true, get: function () { return application_1.EMAIL_CONFIG; } });
|
|
191
|
+
Object.defineProperty(exports, "SUBSCRIPTION_TIERS", { enumerable: true, get: function () { return application_1.SUBSCRIPTION_TIERS; } });
|
|
192
|
+
Object.defineProperty(exports, "TIME_FORMAT", { enumerable: true, get: function () { return application_1.TIME_FORMAT; } });
|
|
193
|
+
Object.defineProperty(exports, "ERROR_MESSAGES", { enumerable: true, get: function () { return application_1.ERROR_MESSAGES; } });
|
|
194
|
+
Object.defineProperty(exports, "SUCCESS_MESSAGES", { enumerable: true, get: function () { return application_1.SUCCESS_MESSAGES; } });
|
|
195
|
+
Object.defineProperty(exports, "ROUTES", { enumerable: true, get: function () { return application_1.ROUTES; } });
|
|
196
|
+
Object.defineProperty(exports, "CONTACT_INFO", { enumerable: true, get: function () { return application_1.CONTACT_INFO; } });
|
|
197
|
+
Object.defineProperty(exports, "WALLET_NAMES", { enumerable: true, get: function () { return application_1.WALLET_NAMES; } });
|
|
198
|
+
Object.defineProperty(exports, "NETWORK_IDS", { enumerable: true, get: function () { return application_1.NETWORK_IDS; } });
|
|
199
|
+
Object.defineProperty(exports, "ANIMATION", { enumerable: true, get: function () { return application_1.ANIMATION; } });
|
|
200
|
+
Object.defineProperty(exports, "Z_INDEX", { enumerable: true, get: function () { return application_1.Z_INDEX; } });
|
|
201
|
+
var status_values_1 = require("./utils/constants/status-values");
|
|
202
|
+
Object.defineProperty(exports, "STATUS_VALUES", { enumerable: true, get: function () { return status_values_1.STATUS_VALUES; } });
|
|
203
|
+
// ============================================================================
|
|
204
|
+
// UTILS - Logging
|
|
205
|
+
// ============================================================================
|
|
206
|
+
var logger_1 = require("./utils/logging/logger");
|
|
207
|
+
Object.defineProperty(exports, "LogLevel", { enumerable: true, get: function () { return logger_1.LogLevel; } });
|
|
208
|
+
Object.defineProperty(exports, "logger", { enumerable: true, get: function () { return logger_1.logger; } });
|
|
209
|
+
Object.defineProperty(exports, "authLogger", { enumerable: true, get: function () { return logger_1.authLogger; } });
|
|
210
|
+
Object.defineProperty(exports, "apiLogger", { enumerable: true, get: function () { return logger_1.apiLogger; } });
|
|
211
|
+
Object.defineProperty(exports, "contractLogger", { enumerable: true, get: function () { return logger_1.contractLogger; } });
|
|
212
|
+
Object.defineProperty(exports, "ensLogger", { enumerable: true, get: function () { return logger_1.ensLogger; } });
|
|
213
|
+
Object.defineProperty(exports, "storageLogger", { enumerable: true, get: function () { return logger_1.storageLogger; } });
|
|
214
|
+
// ============================================================================
|
|
215
|
+
// UTILS - URL
|
|
216
|
+
// ============================================================================
|
|
217
|
+
var url_params_1 = require("./utils/url/url-params");
|
|
218
|
+
Object.defineProperty(exports, "createURLSearchParams", { enumerable: true, get: function () { return url_params_1.createURLSearchParams; } });
|
|
219
|
+
Object.defineProperty(exports, "createSearchParams", { enumerable: true, get: function () { return url_params_1.createSearchParams; } });
|
|
220
|
+
Object.defineProperty(exports, "searchParamsToString", { enumerable: true, get: function () { return url_params_1.searchParamsToString; } });
|
|
221
|
+
Object.defineProperty(exports, "parseSearchParams", { enumerable: true, get: function () { return url_params_1.parseSearchParams; } });
|
|
222
|
+
// ============================================================================
|
|
223
|
+
// UTILS - Async Helpers
|
|
224
|
+
// ============================================================================
|
|
225
|
+
var async_helpers_1 = require("./utils/async-helpers");
|
|
226
|
+
Object.defineProperty(exports, "safeAsync", { enumerable: true, get: function () { return async_helpers_1.safeAsync; } });
|
|
227
|
+
Object.defineProperty(exports, "withLoadingState", { enumerable: true, get: function () { return async_helpers_1.withLoadingState; } });
|
|
228
|
+
Object.defineProperty(exports, "safeParallel", { enumerable: true, get: function () { return async_helpers_1.safeParallel; } });
|
|
229
|
+
Object.defineProperty(exports, "withTimeout", { enumerable: true, get: function () { return async_helpers_1.withTimeout; } });
|
|
230
|
+
Object.defineProperty(exports, "withCache", { enumerable: true, get: function () { return async_helpers_1.withCache; } });
|
|
231
|
+
Object.defineProperty(exports, "clearExpiredCache", { enumerable: true, get: function () { return async_helpers_1.clearExpiredCache; } });
|
|
232
|
+
Object.defineProperty(exports, "debounceAsync", { enumerable: true, get: function () { return async_helpers_1.debounceAsync; } });
|
|
63
233
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;;;;;;AAoBH,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E,QAAQ;AACR,gDAwBgC;AAvB9B,mGAAA,UAAU,OAAA;AACV,8FAAA,KAAK,OAAA;AACL,kGAAA,SAAS,OAAA;AACT,wGAAA,eAAe,OAAA;AACf,uGAAA,cAAc,OAAA;AACd,iGAAA,QAAQ,OAAA;AACR,oGAAA,WAAW,OAAA;AACX,yGAAA,gBAAgB,OAAA;AAChB,yGAAA,gBAAgB,OAAA;AAChB,0GAAA,iBAAiB,OAAA;AACjB,6GAAA,oBAAoB,OAAA;AACpB,kGAAA,SAAS,OAAA;AACT,oGAAA,WAAW,OAAA;AACX,iGAAA,QAAQ,OAAA;AACR,iGAAA,QAAQ,OAAA;AACR,mGAAA,UAAU,OAAA;AACV,mGAAA,UAAU,OAAA;AACV,yGAAA,gBAAgB,OAAA;AAChB,qGAAA,YAAY,OAAA;AACZ,sGAAA,aAAa,OAAA;AACb,kGAAA,SAAS,OAAA;AACT,2GAAA,kBAAkB,OAAA;AAClB,8FAAA,KAAK,OAAA;AAKP,gEAIwC;AAHtC,yHAAA,wBAAwB,OAAA;AACxB,kHAAA,iBAAiB,OAAA;AACjB,iHAAA,gBAAgB,OAAA;AAuBlB,oDAQmC;AAPjC,qGAAA,WAAW,OAAA;AACX,4GAAA,kBAAkB,OAAA;AAClB,2GAAA,iBAAiB,OAAA;AACjB,sGAAA,YAAY,OAAA;AACZ,wGAAA,cAAc,OAAA;AACd,yGAAA,eAAe,OAAA;AACf,2GAAA,iBAAiB,OAAA;AAGnB,4DAKuC;AAJrC,6GAAA,eAAe,OAAA;AACf,4GAAA,cAAc,OAAA;AACd,4GAAA,cAAc,O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AACxB,+EAA+E;AAE/E,uDAS+B;AAR7B,0GAAA,SAAS,OAAA;AACT,iHAAA,gBAAgB,OAAA;AAChB,6GAAA,YAAY,OAAA;AACZ,4GAAA,WAAW,OAAA;AACX,0GAAA,SAAS,OAAA;AACT,kHAAA,iBAAiB,OAAA;AACjB,8GAAA,aAAa,OAAA"}
|
|
@@ -22,7 +22,7 @@ var EntityType;
|
|
|
22
22
|
* Role of a user within an entity.
|
|
23
23
|
* Determines permissions for various operations.
|
|
24
24
|
* - OWNER: Only for organizations. Full access including user management.
|
|
25
|
-
* -
|
|
25
|
+
* - MANAGER: Can manage projects and endpoints. Used for personal entities.
|
|
26
26
|
* - MEMBER: Read-only access to projects and endpoints.
|
|
27
27
|
*/
|
|
28
28
|
var EntityRole;
|
|
@@ -30,7 +30,7 @@ var EntityRole;
|
|
|
30
30
|
/** Organization owner: full access including invite users, change roles, manage projects/endpoints */
|
|
31
31
|
EntityRole["OWNER"] = "owner";
|
|
32
32
|
/** Can manage projects and endpoints, but cannot manage users. Default role for personal entities. */
|
|
33
|
-
EntityRole["
|
|
33
|
+
EntityRole["MANAGER"] = "manager";
|
|
34
34
|
/** Read-only access to projects and endpoints */
|
|
35
35
|
EntityRole["MEMBER"] = "member";
|
|
36
36
|
})(EntityRole || (exports.EntityRole = EntityRole = {}));
|
|
@@ -15,14 +15,14 @@ export declare enum EntityType {
|
|
|
15
15
|
* Role of a user within an entity.
|
|
16
16
|
* Determines permissions for various operations.
|
|
17
17
|
* - OWNER: Only for organizations. Full access including user management.
|
|
18
|
-
* -
|
|
18
|
+
* - MANAGER: Can manage projects and endpoints. Used for personal entities.
|
|
19
19
|
* - MEMBER: Read-only access to projects and endpoints.
|
|
20
20
|
*/
|
|
21
21
|
export declare enum EntityRole {
|
|
22
22
|
/** Organization owner: full access including invite users, change roles, manage projects/endpoints */
|
|
23
23
|
OWNER = "owner",
|
|
24
24
|
/** Can manage projects and endpoints, but cannot manage users. Default role for personal entities. */
|
|
25
|
-
|
|
25
|
+
MANAGER = "manager",
|
|
26
26
|
/** Read-only access to projects and endpoints */
|
|
27
27
|
MEMBER = "member"
|
|
28
28
|
}
|
|
@@ -42,7 +42,7 @@ export declare enum InvitationStatus {
|
|
|
42
42
|
/**
|
|
43
43
|
* An entity represents a workspace that can own projects and API keys.
|
|
44
44
|
* Can be either a personal workspace (one per user) or an organization (shared).
|
|
45
|
-
* - Personal entities: User has '
|
|
45
|
+
* - Personal entities: User has 'manager' role (no user management needed).
|
|
46
46
|
* - Organizations: Creator has 'owner' role (can manage users, projects, endpoints).
|
|
47
47
|
*/
|
|
48
48
|
export interface Entity {
|
|
@@ -93,7 +93,7 @@ export interface EntityMember {
|
|
|
93
93
|
entityId: string;
|
|
94
94
|
/** User who is a member (firebase_uid) */
|
|
95
95
|
userId: string;
|
|
96
|
-
/** User's role in the entity (owner,
|
|
96
|
+
/** User's role in the entity (owner, manager, member) */
|
|
97
97
|
role: EntityRole;
|
|
98
98
|
/** Whether this membership is active (false = soft deleted) */
|
|
99
99
|
isActive: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/types/entity/entity.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;;;GAIG;AACH,oBAAY,UAAU;IACpB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAC9B;AAED;;;;;;GAMG;AACH,oBAAY,UAAU;IACpB,sGAAsG;IACtG,KAAK,UAAU;IACf,sGAAsG;IACtG,
|
|
1
|
+
{"version":3,"file":"entity.d.ts","sourceRoot":"","sources":["../../../src/types/entity/entity.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH;;;;GAIG;AACH,oBAAY,UAAU;IACpB,QAAQ,aAAa;IACrB,YAAY,iBAAiB;CAC9B;AAED;;;;;;GAMG;AACH,oBAAY,UAAU;IACpB,sGAAsG;IACtG,KAAK,UAAU;IACf,sGAAsG;IACtG,OAAO,YAAY;IACnB,iDAAiD;IACjD,MA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,CAAC;IACjB,4CAA4C;IAC5C,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,+CAA+C;IAC/C,IAAI,CAAC,EAAE,gBAAgB,CAAC;CACzB;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,+BAA+B;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,yCAAyC;IACzC,QAAQ,EAAE,MAAM,CAAC;IACjB,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,6CAA6C;IAC7C,IAAI,EAAE,UAAU,CAAC;IACjB,uCAAuC;IACvC,MAAM,EAAE,gBAAgB,CAAC;IACzB,yCAAyC;IACzC,eAAe,EAAE,MAAM,CAAC;IACxB,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,6EAA6E;IAC7E,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,qCAAqC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,kDAAkD;IAClD,SAAS,CAAC,EAAE,gBAAgB,CAAC;CAC9B"}
|
|
@@ -22,7 +22,7 @@ var EntityType;
|
|
|
22
22
|
* Role of a user within an entity.
|
|
23
23
|
* Determines permissions for various operations.
|
|
24
24
|
* - OWNER: Only for organizations. Full access including user management.
|
|
25
|
-
* -
|
|
25
|
+
* - MANAGER: Can manage projects and endpoints. Used for personal entities.
|
|
26
26
|
* - MEMBER: Read-only access to projects and endpoints.
|
|
27
27
|
*/
|
|
28
28
|
var EntityRole;
|
|
@@ -30,7 +30,7 @@ var EntityRole;
|
|
|
30
30
|
/** Organization owner: full access including invite users, change roles, manage projects/endpoints */
|
|
31
31
|
EntityRole["OWNER"] = "owner";
|
|
32
32
|
/** Can manage projects and endpoints, but cannot manage users. Default role for personal entities. */
|
|
33
|
-
EntityRole["
|
|
33
|
+
EntityRole["MANAGER"] = "manager";
|
|
34
34
|
/** Read-only access to projects and endpoints */
|
|
35
35
|
EntityRole["MEMBER"] = "member";
|
|
36
36
|
})(EntityRole || (exports.EntityRole = EntityRole = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/types/entity/entity.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2CAA2C;AAC3C,QAAQ;AACR,2CAA2C;AAE3C;;;;GAIG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,2CAA6B,CAAA;AAC/B,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED;;;;;;GAMG;AACH,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,sGAAsG;IACtG,6BAAe,CAAA;IACf,sGAAsG;IACtG,
|
|
1
|
+
{"version":3,"file":"entity.js","sourceRoot":"","sources":["../../../src/types/entity/entity.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AAEH,2CAA2C;AAC3C,QAAQ;AACR,2CAA2C;AAE3C;;;;GAIG;AACH,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,mCAAqB,CAAA;IACrB,2CAA6B,CAAA;AAC/B,CAAC,EAHW,UAAU,0BAAV,UAAU,QAGrB;AAED;;;;;;GAMG;AACH,IAAY,UAOX;AAPD,WAAY,UAAU;IACpB,sGAAsG;IACtG,6BAAe,CAAA;IACf,sGAAsG;IACtG,iCAAmB,CAAA;IACnB,iDAAiD;IACjD,+BAAiB,CAAA;AACnB,CAAC,EAPW,UAAU,0BAAV,UAAU,QAOrB;AAED;;GAEG;AACH,IAAY,gBASX;AATD,WAAY,gBAAgB;IAC1B,yCAAyC;IACzC,uCAAmB,CAAA;IACnB,gDAAgD;IAChD,yCAAqB,CAAA;IACrB,yCAAyC;IACzC,yCAAqB,CAAA;IACrB,0DAA0D;IAC1D,uCAAmB,CAAA;AACrB,CAAC,EATW,gBAAgB,gCAAhB,gBAAgB,QAS3B"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @description Permission types and constants for role-based access control
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ROLE_PERMISSIONS = void 0;
|
|
7
|
+
exports.ROLE_PERMISSIONS = exports.MEMBER_PERMISSIONS = exports.MANAGER_PERMISSIONS = exports.OWNER_PERMISSIONS = void 0;
|
|
8
8
|
exports.getPermissionsForRole = getPermissionsForRole;
|
|
9
9
|
exports.hasPermission = hasPermission;
|
|
10
10
|
const entity_1 = require("./entity");
|
|
@@ -16,7 +16,7 @@ const entity_1 = require("./entity");
|
|
|
16
16
|
* Full access including user management, project and endpoint management.
|
|
17
17
|
* Organizations have exactly one owner; personal entities don't use this role.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
exports.OWNER_PERMISSIONS = {
|
|
20
20
|
canViewEntity: true,
|
|
21
21
|
canEditEntity: true,
|
|
22
22
|
canDeleteEntity: true,
|
|
@@ -29,11 +29,11 @@ const OWNER_PERMISSIONS = {
|
|
|
29
29
|
canViewApiKeys: true,
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* Permission set for the
|
|
32
|
+
* Permission set for the Manager role.
|
|
33
33
|
* Can manage projects and endpoints, but cannot manage users.
|
|
34
34
|
* This is the default role for personal entities.
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
exports.MANAGER_PERMISSIONS = {
|
|
37
37
|
canViewEntity: true,
|
|
38
38
|
canEditEntity: true,
|
|
39
39
|
canDeleteEntity: false,
|
|
@@ -49,7 +49,7 @@ const ADMIN_PERMISSIONS = {
|
|
|
49
49
|
* Permission set for the Member role.
|
|
50
50
|
* Read-only access to projects and endpoints.
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
exports.MEMBER_PERMISSIONS = {
|
|
53
53
|
canViewEntity: true,
|
|
54
54
|
canEditEntity: false,
|
|
55
55
|
canDeleteEntity: false,
|
|
@@ -66,9 +66,9 @@ const MEMBER_PERMISSIONS = {
|
|
|
66
66
|
* Used by permission checking utilities.
|
|
67
67
|
*/
|
|
68
68
|
exports.ROLE_PERMISSIONS = {
|
|
69
|
-
[entity_1.EntityRole.OWNER]: OWNER_PERMISSIONS,
|
|
70
|
-
[entity_1.EntityRole.
|
|
71
|
-
[entity_1.EntityRole.MEMBER]: MEMBER_PERMISSIONS,
|
|
69
|
+
[entity_1.EntityRole.OWNER]: exports.OWNER_PERMISSIONS,
|
|
70
|
+
[entity_1.EntityRole.MANAGER]: exports.MANAGER_PERMISSIONS,
|
|
71
|
+
[entity_1.EntityRole.MEMBER]: exports.MEMBER_PERMISSIONS,
|
|
72
72
|
};
|
|
73
73
|
// ========================================
|
|
74
74
|
// UTILITY FUNCTIONS
|
|
@@ -29,6 +29,23 @@ export interface EntityPermissions {
|
|
|
29
29
|
/** Can view and use API keys for invocations */
|
|
30
30
|
canViewApiKeys: boolean;
|
|
31
31
|
}
|
|
32
|
+
/**
|
|
33
|
+
* Permission set for the Owner role (organizations only).
|
|
34
|
+
* Full access including user management, project and endpoint management.
|
|
35
|
+
* Organizations have exactly one owner; personal entities don't use this role.
|
|
36
|
+
*/
|
|
37
|
+
export declare const OWNER_PERMISSIONS: EntityPermissions;
|
|
38
|
+
/**
|
|
39
|
+
* Permission set for the Manager role.
|
|
40
|
+
* Can manage projects and endpoints, but cannot manage users.
|
|
41
|
+
* This is the default role for personal entities.
|
|
42
|
+
*/
|
|
43
|
+
export declare const MANAGER_PERMISSIONS: EntityPermissions;
|
|
44
|
+
/**
|
|
45
|
+
* Permission set for the Member role.
|
|
46
|
+
* Read-only access to projects and endpoints.
|
|
47
|
+
*/
|
|
48
|
+
export declare const MEMBER_PERMISSIONS: EntityPermissions;
|
|
32
49
|
/**
|
|
33
50
|
* Maps each role to its permission set.
|
|
34
51
|
* Used by permission checking utilities.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../src/types/entity/permissions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMtC;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,2CAA2C;IAC3C,aAAa,EAAE,OAAO,CAAC;IACvB,gDAAgD;IAChD,aAAa,EAAE,OAAO,CAAC;IACvB,iDAAiD;IACjD,eAAe,EAAE,OAAO,CAAC;IACzB,mDAAmD;IACnD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,0CAA0C;IAC1C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,4CAA4C;IAC5C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,8BAA8B;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,0CAA0C;IAC1C,eAAe,EAAE,OAAO,CAAC;IACzB,4CAA4C;IAC5C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gDAAgD;IAChD,cAAc,EAAE,OAAO,CAAC;CACzB;
|
|
1
|
+
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../src/types/entity/permissions.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC;AAMtC;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,2CAA2C;IAC3C,aAAa,EAAE,OAAO,CAAC;IACvB,gDAAgD;IAChD,aAAa,EAAE,OAAO,CAAC;IACvB,iDAAiD;IACjD,eAAe,EAAE,OAAO,CAAC;IACzB,mDAAmD;IACnD,gBAAgB,EAAE,OAAO,CAAC;IAC1B,0CAA0C;IAC1C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,4CAA4C;IAC5C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,8BAA8B;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,0CAA0C;IAC1C,eAAe,EAAE,OAAO,CAAC;IACzB,4CAA4C;IAC5C,gBAAgB,EAAE,OAAO,CAAC;IAC1B,gDAAgD;IAChD,cAAc,EAAE,OAAO,CAAC;CACzB;AAMD;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,iBAW/B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,mBAAmB,EAAE,iBAWjC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,kBAAkB,EAAE,iBAWhC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,gBAAgB,EAAE,MAAM,CAAC,UAAU,EAAE,iBAAiB,CAIlE,CAAC;AAMF;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,UAAU,GAAG,iBAAiB,CAEzE;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAC3B,IAAI,EAAE,UAAU,EAChB,UAAU,EAAE,MAAM,iBAAiB,GAClC,OAAO,CAET"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @description Permission types and constants for role-based access control
|
|
5
5
|
*/
|
|
6
6
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
-
exports.ROLE_PERMISSIONS = void 0;
|
|
7
|
+
exports.ROLE_PERMISSIONS = exports.MEMBER_PERMISSIONS = exports.MANAGER_PERMISSIONS = exports.OWNER_PERMISSIONS = void 0;
|
|
8
8
|
exports.getPermissionsForRole = getPermissionsForRole;
|
|
9
9
|
exports.hasPermission = hasPermission;
|
|
10
10
|
const entity_1 = require("./entity");
|
|
@@ -16,7 +16,7 @@ const entity_1 = require("./entity");
|
|
|
16
16
|
* Full access including user management, project and endpoint management.
|
|
17
17
|
* Organizations have exactly one owner; personal entities don't use this role.
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
exports.OWNER_PERMISSIONS = {
|
|
20
20
|
canViewEntity: true,
|
|
21
21
|
canEditEntity: true,
|
|
22
22
|
canDeleteEntity: true,
|
|
@@ -29,11 +29,11 @@ const OWNER_PERMISSIONS = {
|
|
|
29
29
|
canViewApiKeys: true,
|
|
30
30
|
};
|
|
31
31
|
/**
|
|
32
|
-
* Permission set for the
|
|
32
|
+
* Permission set for the Manager role.
|
|
33
33
|
* Can manage projects and endpoints, but cannot manage users.
|
|
34
34
|
* This is the default role for personal entities.
|
|
35
35
|
*/
|
|
36
|
-
|
|
36
|
+
exports.MANAGER_PERMISSIONS = {
|
|
37
37
|
canViewEntity: true,
|
|
38
38
|
canEditEntity: true,
|
|
39
39
|
canDeleteEntity: false,
|
|
@@ -49,7 +49,7 @@ const ADMIN_PERMISSIONS = {
|
|
|
49
49
|
* Permission set for the Member role.
|
|
50
50
|
* Read-only access to projects and endpoints.
|
|
51
51
|
*/
|
|
52
|
-
|
|
52
|
+
exports.MEMBER_PERMISSIONS = {
|
|
53
53
|
canViewEntity: true,
|
|
54
54
|
canEditEntity: false,
|
|
55
55
|
canDeleteEntity: false,
|
|
@@ -66,9 +66,9 @@ const MEMBER_PERMISSIONS = {
|
|
|
66
66
|
* Used by permission checking utilities.
|
|
67
67
|
*/
|
|
68
68
|
exports.ROLE_PERMISSIONS = {
|
|
69
|
-
[entity_1.EntityRole.OWNER]: OWNER_PERMISSIONS,
|
|
70
|
-
[entity_1.EntityRole.
|
|
71
|
-
[entity_1.EntityRole.MEMBER]: MEMBER_PERMISSIONS,
|
|
69
|
+
[entity_1.EntityRole.OWNER]: exports.OWNER_PERMISSIONS,
|
|
70
|
+
[entity_1.EntityRole.MANAGER]: exports.MANAGER_PERMISSIONS,
|
|
71
|
+
[entity_1.EntityRole.MEMBER]: exports.MEMBER_PERMISSIONS,
|
|
72
72
|
};
|
|
73
73
|
// ========================================
|
|
74
74
|
// UTILITY FUNCTIONS
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../src/types/entity/permissions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA+GH,sDAEC;AAQD,sCAKC;AA5HD,qCAAsC;AAiCtC,2CAA2C;AAC3C,2BAA2B;AAC3B,2CAA2C;AAE3C;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"permissions.js","sourceRoot":"","sources":["../../../src/types/entity/permissions.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;AA+GH,sDAEC;AAQD,sCAKC;AA5HD,qCAAsC;AAiCtC,2CAA2C;AAC3C,2BAA2B;AAC3B,2CAA2C;AAE3C;;;;GAIG;AACU,QAAA,iBAAiB,GAAsB;IAClD,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,IAAI;CACrB,CAAC;AAEF;;;;GAIG;AACU,QAAA,mBAAmB,GAAsB;IACpD,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,IAAI;IACnB,eAAe,EAAE,KAAK;IACtB,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE,KAAK;IACvB,iBAAiB,EAAE,IAAI;IACvB,iBAAiB,EAAE,IAAI;IACvB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,IAAI;IACtB,cAAc,EAAE,IAAI;CACrB,CAAC;AAEF;;;GAGG;AACU,QAAA,kBAAkB,GAAsB;IACnD,aAAa,EAAE,IAAI;IACnB,aAAa,EAAE,KAAK;IACpB,eAAe,EAAE,KAAK;IACtB,gBAAgB,EAAE,KAAK;IACvB,gBAAgB,EAAE,KAAK;IACvB,iBAAiB,EAAE,KAAK;IACxB,iBAAiB,EAAE,KAAK;IACxB,eAAe,EAAE,IAAI;IACrB,gBAAgB,EAAE,KAAK;IACvB,cAAc,EAAE,IAAI;CACrB,CAAC;AAEF;;;GAGG;AACU,QAAA,gBAAgB,GAA0C;IACrE,CAAC,mBAAU,CAAC,KAAK,CAAC,EAAE,yBAAiB;IACrC,CAAC,mBAAU,CAAC,OAAO,CAAC,EAAE,2BAAmB;IACzC,CAAC,mBAAU,CAAC,MAAM,CAAC,EAAE,0BAAkB;CACxC,CAAC;AAEF,2CAA2C;AAC3C,oBAAoB;AACpB,2CAA2C;AAE3C;;;;GAIG;AACH,SAAgB,qBAAqB,CAAC,IAAgB;IACpD,OAAO,wBAAgB,CAAC,IAAI,CAAC,CAAC;AAChC,CAAC;AAED;;;;;GAKG;AACH,SAAgB,aAAa,CAC3B,IAAgB,EAChB,UAAmC;IAEnC,OAAO,wBAAgB,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC;AAC5C,CAAC"}
|
|
@@ -17,7 +17,7 @@ export interface CreateEntityRequest {
|
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
19
|
* Request to update an entity's details.
|
|
20
|
-
* Only
|
|
20
|
+
* Only owners and managers can update entity settings.
|
|
21
21
|
*/
|
|
22
22
|
export interface UpdateEntityRequest {
|
|
23
23
|
/** New display name */
|
|
@@ -31,7 +31,7 @@ export interface UpdateEntityRequest {
|
|
|
31
31
|
}
|
|
32
32
|
/**
|
|
33
33
|
* Request to update a member's role.
|
|
34
|
-
* Only
|
|
34
|
+
* Only owners can update member roles.
|
|
35
35
|
*/
|
|
36
36
|
export interface UpdateMemberRoleRequest {
|
|
37
37
|
/** New role for the member */
|
|
@@ -39,7 +39,7 @@ export interface UpdateMemberRoleRequest {
|
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
41
|
* Request to invite a user to join an entity.
|
|
42
|
-
* Only
|
|
42
|
+
* Only owners can send invitations.
|
|
43
43
|
*/
|
|
44
44
|
export interface InviteMemberRequest {
|
|
45
45
|
/** Email address of the user to invite */
|