@junobuild/errors 0.0.9 → 0.0.10-next-2025-05-20
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/browser/index.js +1 -1
- package/dist/browser/index.js.map +4 -4
- package/dist/node/index.mjs +1 -1
- package/dist/node/index.mjs.map +4 -4
- package/dist/types/constants/cdn.constants.d.ts +11 -0
- package/dist/types/constants/collections.constants.d.ts +7 -0
- package/dist/types/constants/satellite.constants.d.ts +21 -0
- package/dist/types/constants/shared.constants.d.ts +17 -0
- package/dist/types/index.d.ts +4 -1
- package/package.json +2 -2
- package/dist/browser/chunk-OVZBIFOY.js +0 -2
- package/dist/browser/chunk-OVZBIFOY.js.map +0 -7
- package/dist/browser/constants.js +0 -2
- package/dist/browser/constants.js.map +0 -7
- package/dist/types/constants.d.ts +0 -45
package/dist/browser/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{a as _}from"./chunk-VSLSQUON.js";var o="juno.error.proposals.cannot_submit",r="juno.error.proposals.cannot_submit_invalid_status",e="juno.error.proposals.cannot_commit",R="juno.error.proposals.cannot_commit_invalid_status",t="juno.error.proposals.invalid_hash",O="juno.error.proposals.unknown_type",E="juno.error.proposals.empty_content_chunks",n="juno.error.proposals.no_content_chunks_at_index",s="juno.error.proposals.empty_assets",N="juno.error.proposals.cannot_delete_assets",c="juno.error.proposals.cannot_delete_assets_invalid_status";var a="juno.collections.error.modify_reserved_collection",A="juno.collections.error.reserved_name",S="juno.collections.error.reserved_collection",p="juno.collections.error.rate_config_enabled",L="juno.collections.error.prefix_deletion",l="juno.collections.error.not_empty",u="juno.collections.error.not_found";var C="juno.error.no_timestamp_provided",D="juno.error.timestamp_outdated_or_future",d="juno.error.no_version_provided",I="juno.error.version_outdated_or_future",i="juno.datastore.error.cannot_write",x="juno.datastore.error.cannot_read",j="juno.storage.error.upload_not_allowed",J="juno.storage.error.set_not_allowed",P="juno.storage.error.cannot_commit_batch",m="juno.storage.error.asset_not_found",M="juno.storage.error.cannot_read_asset",f="juno.auth.error.not_admin_controller",F="juno.auth.error.invalid_origin",V="juno.auth.error.not_controller",v="juno.datastore.error.user.cannot_update",g="juno.datastore.error.user.invalid_data",G="juno.datastore.error.user.caller_key",y="juno.datastore.error.user.key_no_principal",Y="juno.datastore.error.user.not_allowed",h="juno.datastore.error.user.usage.change_limit_reached",H="juno.datastore.error.user.usage.invalid_data";var W="juno.error.controllers.max_number",b="juno.error.controllers.anonymous_not_allowed",B="juno.error.controllers.revoked_not_allowed",k="juno.error.memory.stable_exceeded",K="juno.error.memory.heap_exceeded",X="juno.error.cycles.deposit_balance_low",q="juno.error.cycles.deposit_failed",z="juno.error.canister.create_failed",Q="juno.error.canister.install_code_failed",Z="juno.error.segment.stop_failed",$="juno.error.segment.delete_failed",__="juno.error.cmc.call_ledger_failed",o_="juno.error.cmc.ledger_transfer_failed",r_="juno.error.cmc.top_up_failed",e_="juno.error.cmc.call_create_canister_failed",R_="juno.error.cmc.create_canister_failed",t_="juno.error.cmc.install_code_failed";export{F as JUNO_AUTH_ERROR_INVALID_ORIGIN,f as JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER,V as JUNO_AUTH_ERROR_NOT_CONTROLLER,l as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY,u as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND,L as JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED,a as JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION,p as JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED,S as JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION,A as JUNO_COLLECTIONS_ERROR_RESERVED_NAME,x as JUNO_DATASTORE_ERROR_CANNOT_READ,i as JUNO_DATASTORE_ERROR_CANNOT_WRITE,G as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,v as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,g as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,y as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,Y as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,h as JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED,H as JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA,z as JUNO_ERROR_CANISTER_CREATE_FAILED,Q as JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED,e_ as JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED,__ as JUNO_ERROR_CMC_CALL_LEDGER_FAILED,R_ as JUNO_ERROR_CMC_CREATE_CANISTER_FAILED,t_ as JUNO_ERROR_CMC_INSTALL_CODE_FAILED,o_ as JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED,r_ as JUNO_ERROR_CMC_TOP_UP_FAILED,b as JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED,W as JUNO_ERROR_CONTROLLERS_MAX_NUMBER,B as JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED,X as JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW,q as JUNO_ERROR_CYCLES_DEPOSIT_FAILED,K as JUNO_ERROR_MEMORY_HEAP_EXCEEDED,k as JUNO_ERROR_MEMORY_STABLE_EXCEEDED,C as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,d as JUNO_ERROR_NO_VERSION_PROVIDED,e as JUNO_ERROR_PROPOSALS_CANNOT_COMMIT,R as JUNO_ERROR_PROPOSALS_CANNOT_COMMIT_INVALID_STATUS,N as JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS,c as JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS_INVALID_STATUS,o as JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT,r as JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT_INVALID_STATUS,s as JUNO_ERROR_PROPOSALS_EMPTY_ASSETS,E as JUNO_ERROR_PROPOSALS_EMPTY_CONTENT_CHUNKS,t as JUNO_ERROR_PROPOSALS_INVALID_HASH,n as JUNO_ERROR_PROPOSALS_NOT_CONTENT_CHUNKS_AT_INDEX,O as JUNO_ERROR_PROPOSALS_UNKNOWN_TYPE,$ as JUNO_ERROR_SEGMENT_DELETE_FAILED,Z as JUNO_ERROR_SEGMENT_STOP_FAILED,D as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,I as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,m as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,P as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,M as JUNO_STORAGE_ERROR_CANNOT_READ_ASSET,J as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,j as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED,_ as isSatelliteError};
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": [],
|
|
4
|
-
"sourcesContent": [],
|
|
5
|
-
"mappings": "",
|
|
6
|
-
"names": []
|
|
3
|
+
"sources": ["../../src/constants/cdn.constants.ts", "../../src/constants/collections.constants.ts", "../../src/constants/satellite.constants.ts", "../../src/constants/shared.constants.ts"],
|
|
4
|
+
"sourcesContent": ["export const JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT = 'juno.error.proposals.cannot_submit';\nexport const JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT_INVALID_STATUS =\n 'juno.error.proposals.cannot_submit_invalid_status';\n\nexport const JUNO_ERROR_PROPOSALS_CANNOT_COMMIT = 'juno.error.proposals.cannot_commit';\nexport const JUNO_ERROR_PROPOSALS_CANNOT_COMMIT_INVALID_STATUS =\n 'juno.error.proposals.cannot_commit_invalid_status';\nexport const JUNO_ERROR_PROPOSALS_INVALID_HASH = 'juno.error.proposals.invalid_hash';\n\nexport const JUNO_ERROR_PROPOSALS_UNKNOWN_TYPE = 'juno.error.proposals.unknown_type';\n\nexport const JUNO_ERROR_PROPOSALS_EMPTY_CONTENT_CHUNKS =\n 'juno.error.proposals.empty_content_chunks';\nexport const JUNO_ERROR_PROPOSALS_NOT_CONTENT_CHUNKS_AT_INDEX =\n 'juno.error.proposals.no_content_chunks_at_index';\n\nexport const JUNO_ERROR_PROPOSALS_EMPTY_ASSETS = 'juno.error.proposals.empty_assets';\nexport const JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS =\n 'juno.error.proposals.cannot_delete_assets';\nexport const JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS_INVALID_STATUS =\n 'juno.error.proposals.cannot_delete_assets_invalid_status';\n", "export const JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION =\n 'juno.collections.error.modify_reserved_collection';\nexport const JUNO_COLLECTIONS_ERROR_RESERVED_NAME = 'juno.collections.error.reserved_name';\nexport const JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION =\n 'juno.collections.error.reserved_collection';\nexport const JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED =\n 'juno.collections.error.rate_config_enabled';\nexport const JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED =\n 'juno.collections.error.prefix_deletion';\nexport const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY = 'juno.collections.error.not_empty';\nexport const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND = 'juno.collections.error.not_found';\n", "export const JUNO_ERROR_NO_TIMESTAMP_PROVIDED = 'juno.error.no_timestamp_provided';\nexport const JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE = 'juno.error.timestamp_outdated_or_future';\nexport const JUNO_ERROR_NO_VERSION_PROVIDED = 'juno.error.no_version_provided';\nexport const JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE = 'juno.error.version_outdated_or_future';\n\nexport const JUNO_DATASTORE_ERROR_CANNOT_WRITE = 'juno.datastore.error.cannot_write';\nexport const JUNO_DATASTORE_ERROR_CANNOT_READ = 'juno.datastore.error.cannot_read';\n\nexport const JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED = 'juno.storage.error.upload_not_allowed';\nexport const JUNO_STORAGE_ERROR_SET_NOT_ALLOWED = 'juno.storage.error.set_not_allowed';\nexport const JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH = 'juno.storage.error.cannot_commit_batch';\nexport const JUNO_STORAGE_ERROR_ASSET_NOT_FOUND = 'juno.storage.error.asset_not_found';\nexport const JUNO_STORAGE_ERROR_CANNOT_READ_ASSET = 'juno.storage.error.cannot_read_asset';\n\nexport const JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER = 'juno.auth.error.not_admin_controller';\nexport const JUNO_AUTH_ERROR_INVALID_ORIGIN = 'juno.auth.error.invalid_origin';\nexport const JUNO_AUTH_ERROR_NOT_CONTROLLER = 'juno.auth.error.not_controller';\n\nexport const JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE = 'juno.datastore.error.user.cannot_update';\nexport const JUNO_DATASTORE_ERROR_USER_INVALID_DATA = 'juno.datastore.error.user.invalid_data';\nexport const JUNO_DATASTORE_ERROR_USER_CALLER_KEY = 'juno.datastore.error.user.caller_key';\nexport const JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL =\n 'juno.datastore.error.user.key_no_principal';\nexport const JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED = 'juno.datastore.error.user.not_allowed';\nexport const JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED =\n 'juno.datastore.error.user.usage.change_limit_reached';\nexport const JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA =\n 'juno.datastore.error.user.usage.invalid_data';\n", "export const JUNO_ERROR_CONTROLLERS_MAX_NUMBER = 'juno.error.controllers.max_number';\nexport const JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED =\n 'juno.error.controllers.anonymous_not_allowed';\nexport const JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED =\n 'juno.error.controllers.revoked_not_allowed';\n\nexport const JUNO_ERROR_MEMORY_STABLE_EXCEEDED = 'juno.error.memory.stable_exceeded';\nexport const JUNO_ERROR_MEMORY_HEAP_EXCEEDED = 'juno.error.memory.heap_exceeded';\n\nexport const JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW = 'juno.error.cycles.deposit_balance_low';\nexport const JUNO_ERROR_CYCLES_DEPOSIT_FAILED = 'juno.error.cycles.deposit_failed';\n\nexport const JUNO_ERROR_CANISTER_CREATE_FAILED = 'juno.error.canister.create_failed';\nexport const JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED = 'juno.error.canister.install_code_failed';\n\nexport const JUNO_ERROR_SEGMENT_STOP_FAILED = 'juno.error.segment.stop_failed';\nexport const JUNO_ERROR_SEGMENT_DELETE_FAILED = 'juno.error.segment.delete_failed';\n\nexport const JUNO_ERROR_CMC_CALL_LEDGER_FAILED = 'juno.error.cmc.call_ledger_failed';\nexport const JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED = 'juno.error.cmc.ledger_transfer_failed';\nexport const JUNO_ERROR_CMC_TOP_UP_FAILED = 'juno.error.cmc.top_up_failed';\nexport const JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED =\n 'juno.error.cmc.call_create_canister_failed';\nexport const JUNO_ERROR_CMC_CREATE_CANISTER_FAILED = 'juno.error.cmc.create_canister_failed';\nexport const JUNO_ERROR_CMC_INSTALL_CODE_FAILED = 'juno.error.cmc.install_code_failed';\n"],
|
|
5
|
+
"mappings": "wCAAO,IAAMA,EAAqC,qCACrCC,EACX,oDAEWC,EAAqC,qCACrCC,EACX,oDACWC,EAAoC,oCAEpCC,EAAoC,oCAEpCC,EACX,4CACWC,EACX,kDAEWC,EAAoC,oCACpCC,EACX,4CACWC,EACX,2DCpBK,IAAMC,EACX,oDACWC,EAAuC,uCACvCC,EACX,6CACWC,EACX,6CACWC,EACX,yCACWC,EAA8C,mCAC9CC,EAA8C,mCCVpD,IAAMC,EAAmC,mCACnCC,EAA0C,0CAC1CC,EAAiC,iCACjCC,EAAwC,wCAExCC,EAAoC,oCACpCC,EAAmC,mCAEnCC,EAAwC,wCACxCC,EAAqC,qCACrCC,EAAyC,yCACzCC,EAAqC,qCACrCC,EAAuC,uCAEvCC,EAAuC,uCACvCC,EAAiC,iCACjCC,EAAiC,iCAEjCC,EAA0C,0CAC1CC,EAAyC,yCACzCC,EAAuC,uCACvCC,EACX,6CACWC,EAAwC,wCACxCC,EACX,uDACWC,EACX,+CC3BK,IAAMC,EAAoC,oCACpCC,EACX,+CACWC,EACX,6CAEWC,EAAoC,oCACpCC,EAAkC,kCAElCC,EAAwC,wCACxCC,EAAmC,mCAEnCC,EAAoC,oCACpCC,EAA0C,0CAE1CC,EAAiC,iCACjCC,EAAmC,mCAEnCC,GAAoC,oCACpCC,GAAwC,wCACxCC,GAA+B,+BAC/BC,GACX,6CACWC,GAAwC,wCACxCC,GAAqC",
|
|
6
|
+
"names": ["JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT", "JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT_INVALID_STATUS", "JUNO_ERROR_PROPOSALS_CANNOT_COMMIT", "JUNO_ERROR_PROPOSALS_CANNOT_COMMIT_INVALID_STATUS", "JUNO_ERROR_PROPOSALS_INVALID_HASH", "JUNO_ERROR_PROPOSALS_UNKNOWN_TYPE", "JUNO_ERROR_PROPOSALS_EMPTY_CONTENT_CHUNKS", "JUNO_ERROR_PROPOSALS_NOT_CONTENT_CHUNKS_AT_INDEX", "JUNO_ERROR_PROPOSALS_EMPTY_ASSETS", "JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS", "JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS_INVALID_STATUS", "JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION", "JUNO_COLLECTIONS_ERROR_RESERVED_NAME", "JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION", "JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED", "JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED", "JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY", "JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND", "JUNO_ERROR_NO_TIMESTAMP_PROVIDED", "JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE", "JUNO_ERROR_NO_VERSION_PROVIDED", "JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE", "JUNO_DATASTORE_ERROR_CANNOT_WRITE", "JUNO_DATASTORE_ERROR_CANNOT_READ", "JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED", "JUNO_STORAGE_ERROR_SET_NOT_ALLOWED", "JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH", "JUNO_STORAGE_ERROR_ASSET_NOT_FOUND", "JUNO_STORAGE_ERROR_CANNOT_READ_ASSET", "JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER", "JUNO_AUTH_ERROR_INVALID_ORIGIN", "JUNO_AUTH_ERROR_NOT_CONTROLLER", "JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE", "JUNO_DATASTORE_ERROR_USER_INVALID_DATA", "JUNO_DATASTORE_ERROR_USER_CALLER_KEY", "JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL", "JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED", "JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED", "JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA", "JUNO_ERROR_CONTROLLERS_MAX_NUMBER", "JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED", "JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED", "JUNO_ERROR_MEMORY_STABLE_EXCEEDED", "JUNO_ERROR_MEMORY_HEAP_EXCEEDED", "JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW", "JUNO_ERROR_CYCLES_DEPOSIT_FAILED", "JUNO_ERROR_CANISTER_CREATE_FAILED", "JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED", "JUNO_ERROR_SEGMENT_STOP_FAILED", "JUNO_ERROR_SEGMENT_DELETE_FAILED", "JUNO_ERROR_CMC_CALL_LEDGER_FAILED", "JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED", "JUNO_ERROR_CMC_TOP_UP_FAILED", "JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED", "JUNO_ERROR_CMC_CREATE_CANISTER_FAILED", "JUNO_ERROR_CMC_INSTALL_CODE_FAILED"]
|
|
7
7
|
}
|
package/dist/node/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { createRequire as topLevelCreateRequire } from 'module';
|
|
2
2
|
const require = topLevelCreateRequire(import.meta.url);
|
|
3
|
-
var r="juno.error.
|
|
3
|
+
var r="juno.error.proposals.cannot_submit",e="juno.error.proposals.cannot_submit_invalid_status",t="juno.error.proposals.cannot_commit",R="juno.error.proposals.cannot_commit_invalid_status",O="juno.error.proposals.invalid_hash",n="juno.error.proposals.unknown_type",E="juno.error.proposals.empty_content_chunks",s="juno.error.proposals.no_content_chunks_at_index",N="juno.error.proposals.empty_assets",c="juno.error.proposals.cannot_delete_assets",T="juno.error.proposals.cannot_delete_assets_invalid_status";var A="juno.collections.error.modify_reserved_collection",S="juno.collections.error.reserved_name",p="juno.collections.error.reserved_collection",l="juno.collections.error.rate_config_enabled",L="juno.collections.error.prefix_deletion",u="juno.collections.error.not_empty",U="juno.collections.error.not_found";var i="juno.error.no_timestamp_provided",d="juno.error.timestamp_outdated_or_future",D="juno.error.no_version_provided",x="juno.error.version_outdated_or_future",I="juno.datastore.error.cannot_write",j="juno.datastore.error.cannot_read",J="juno.storage.error.upload_not_allowed",P="juno.storage.error.set_not_allowed",m="juno.storage.error.cannot_commit_batch",M="juno.storage.error.asset_not_found",f="juno.storage.error.cannot_read_asset",F="juno.auth.error.not_admin_controller",g="juno.auth.error.invalid_origin",V="juno.auth.error.not_controller",v="juno.datastore.error.user.cannot_update",G="juno.datastore.error.user.invalid_data",y="juno.datastore.error.user.caller_key",Y="juno.datastore.error.user.key_no_principal",h="juno.datastore.error.user.not_allowed",H="juno.datastore.error.user.usage.change_limit_reached",w="juno.datastore.error.user.usage.invalid_data";var W="juno.error.controllers.max_number",k="juno.error.controllers.anonymous_not_allowed",B="juno.error.controllers.revoked_not_allowed",K="juno.error.memory.stable_exceeded",X="juno.error.memory.heap_exceeded",q="juno.error.cycles.deposit_balance_low",z="juno.error.cycles.deposit_failed",Q="juno.error.canister.create_failed",Z="juno.error.canister.install_code_failed",$="juno.error.segment.stop_failed",oo="juno.error.segment.delete_failed",_o="juno.error.cmc.call_ledger_failed",ro="juno.error.cmc.ledger_transfer_failed",eo="juno.error.cmc.top_up_failed",to="juno.error.cmc.call_create_canister_failed",Ro="juno.error.cmc.create_canister_failed",Oo="juno.error.cmc.install_code_failed";var Eo=({error:o,type:_})=>typeof o=="string"?o.includes(_):o instanceof Error?o.message.includes(_):!1;export{g as JUNO_AUTH_ERROR_INVALID_ORIGIN,F as JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER,V as JUNO_AUTH_ERROR_NOT_CONTROLLER,u as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY,U as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND,L as JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED,A as JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION,l as JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED,p as JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION,S as JUNO_COLLECTIONS_ERROR_RESERVED_NAME,j as JUNO_DATASTORE_ERROR_CANNOT_READ,I as JUNO_DATASTORE_ERROR_CANNOT_WRITE,y as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,v as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,G as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,Y as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,h as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,H as JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED,w as JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA,Q as JUNO_ERROR_CANISTER_CREATE_FAILED,Z as JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED,to as JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED,_o as JUNO_ERROR_CMC_CALL_LEDGER_FAILED,Ro as JUNO_ERROR_CMC_CREATE_CANISTER_FAILED,Oo as JUNO_ERROR_CMC_INSTALL_CODE_FAILED,ro as JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED,eo as JUNO_ERROR_CMC_TOP_UP_FAILED,k as JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED,W as JUNO_ERROR_CONTROLLERS_MAX_NUMBER,B as JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED,q as JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW,z as JUNO_ERROR_CYCLES_DEPOSIT_FAILED,X as JUNO_ERROR_MEMORY_HEAP_EXCEEDED,K as JUNO_ERROR_MEMORY_STABLE_EXCEEDED,i as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,D as JUNO_ERROR_NO_VERSION_PROVIDED,t as JUNO_ERROR_PROPOSALS_CANNOT_COMMIT,R as JUNO_ERROR_PROPOSALS_CANNOT_COMMIT_INVALID_STATUS,c as JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS,T as JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS_INVALID_STATUS,r as JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT,e as JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT_INVALID_STATUS,N as JUNO_ERROR_PROPOSALS_EMPTY_ASSETS,E as JUNO_ERROR_PROPOSALS_EMPTY_CONTENT_CHUNKS,O as JUNO_ERROR_PROPOSALS_INVALID_HASH,s as JUNO_ERROR_PROPOSALS_NOT_CONTENT_CHUNKS_AT_INDEX,n as JUNO_ERROR_PROPOSALS_UNKNOWN_TYPE,oo as JUNO_ERROR_SEGMENT_DELETE_FAILED,$ as JUNO_ERROR_SEGMENT_STOP_FAILED,d as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,x as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,M as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,m as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,f as JUNO_STORAGE_ERROR_CANNOT_READ_ASSET,P as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,J as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED,Eo as isSatelliteError};
|
|
4
4
|
//# sourceMappingURL=index.mjs.map
|
package/dist/node/index.mjs.map
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../../src/constants.ts", "../../src/utils.ts"],
|
|
4
|
-
"sourcesContent": ["export const
|
|
5
|
-
"mappings": ";;AAAO,IAAMA,
|
|
6
|
-
"names": ["
|
|
3
|
+
"sources": ["../../src/constants/cdn.constants.ts", "../../src/constants/collections.constants.ts", "../../src/constants/satellite.constants.ts", "../../src/constants/shared.constants.ts", "../../src/utils.ts"],
|
|
4
|
+
"sourcesContent": ["export const JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT = 'juno.error.proposals.cannot_submit';\nexport const JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT_INVALID_STATUS =\n 'juno.error.proposals.cannot_submit_invalid_status';\n\nexport const JUNO_ERROR_PROPOSALS_CANNOT_COMMIT = 'juno.error.proposals.cannot_commit';\nexport const JUNO_ERROR_PROPOSALS_CANNOT_COMMIT_INVALID_STATUS =\n 'juno.error.proposals.cannot_commit_invalid_status';\nexport const JUNO_ERROR_PROPOSALS_INVALID_HASH = 'juno.error.proposals.invalid_hash';\n\nexport const JUNO_ERROR_PROPOSALS_UNKNOWN_TYPE = 'juno.error.proposals.unknown_type';\n\nexport const JUNO_ERROR_PROPOSALS_EMPTY_CONTENT_CHUNKS =\n 'juno.error.proposals.empty_content_chunks';\nexport const JUNO_ERROR_PROPOSALS_NOT_CONTENT_CHUNKS_AT_INDEX =\n 'juno.error.proposals.no_content_chunks_at_index';\n\nexport const JUNO_ERROR_PROPOSALS_EMPTY_ASSETS = 'juno.error.proposals.empty_assets';\nexport const JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS =\n 'juno.error.proposals.cannot_delete_assets';\nexport const JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS_INVALID_STATUS =\n 'juno.error.proposals.cannot_delete_assets_invalid_status';\n", "export const JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION =\n 'juno.collections.error.modify_reserved_collection';\nexport const JUNO_COLLECTIONS_ERROR_RESERVED_NAME = 'juno.collections.error.reserved_name';\nexport const JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION =\n 'juno.collections.error.reserved_collection';\nexport const JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED =\n 'juno.collections.error.rate_config_enabled';\nexport const JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED =\n 'juno.collections.error.prefix_deletion';\nexport const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY = 'juno.collections.error.not_empty';\nexport const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND = 'juno.collections.error.not_found';\n", "export const JUNO_ERROR_NO_TIMESTAMP_PROVIDED = 'juno.error.no_timestamp_provided';\nexport const JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE = 'juno.error.timestamp_outdated_or_future';\nexport const JUNO_ERROR_NO_VERSION_PROVIDED = 'juno.error.no_version_provided';\nexport const JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE = 'juno.error.version_outdated_or_future';\n\nexport const JUNO_DATASTORE_ERROR_CANNOT_WRITE = 'juno.datastore.error.cannot_write';\nexport const JUNO_DATASTORE_ERROR_CANNOT_READ = 'juno.datastore.error.cannot_read';\n\nexport const JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED = 'juno.storage.error.upload_not_allowed';\nexport const JUNO_STORAGE_ERROR_SET_NOT_ALLOWED = 'juno.storage.error.set_not_allowed';\nexport const JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH = 'juno.storage.error.cannot_commit_batch';\nexport const JUNO_STORAGE_ERROR_ASSET_NOT_FOUND = 'juno.storage.error.asset_not_found';\nexport const JUNO_STORAGE_ERROR_CANNOT_READ_ASSET = 'juno.storage.error.cannot_read_asset';\n\nexport const JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER = 'juno.auth.error.not_admin_controller';\nexport const JUNO_AUTH_ERROR_INVALID_ORIGIN = 'juno.auth.error.invalid_origin';\nexport const JUNO_AUTH_ERROR_NOT_CONTROLLER = 'juno.auth.error.not_controller';\n\nexport const JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE = 'juno.datastore.error.user.cannot_update';\nexport const JUNO_DATASTORE_ERROR_USER_INVALID_DATA = 'juno.datastore.error.user.invalid_data';\nexport const JUNO_DATASTORE_ERROR_USER_CALLER_KEY = 'juno.datastore.error.user.caller_key';\nexport const JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL =\n 'juno.datastore.error.user.key_no_principal';\nexport const JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED = 'juno.datastore.error.user.not_allowed';\nexport const JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED =\n 'juno.datastore.error.user.usage.change_limit_reached';\nexport const JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA =\n 'juno.datastore.error.user.usage.invalid_data';\n", "export const JUNO_ERROR_CONTROLLERS_MAX_NUMBER = 'juno.error.controllers.max_number';\nexport const JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED =\n 'juno.error.controllers.anonymous_not_allowed';\nexport const JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED =\n 'juno.error.controllers.revoked_not_allowed';\n\nexport const JUNO_ERROR_MEMORY_STABLE_EXCEEDED = 'juno.error.memory.stable_exceeded';\nexport const JUNO_ERROR_MEMORY_HEAP_EXCEEDED = 'juno.error.memory.heap_exceeded';\n\nexport const JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW = 'juno.error.cycles.deposit_balance_low';\nexport const JUNO_ERROR_CYCLES_DEPOSIT_FAILED = 'juno.error.cycles.deposit_failed';\n\nexport const JUNO_ERROR_CANISTER_CREATE_FAILED = 'juno.error.canister.create_failed';\nexport const JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED = 'juno.error.canister.install_code_failed';\n\nexport const JUNO_ERROR_SEGMENT_STOP_FAILED = 'juno.error.segment.stop_failed';\nexport const JUNO_ERROR_SEGMENT_DELETE_FAILED = 'juno.error.segment.delete_failed';\n\nexport const JUNO_ERROR_CMC_CALL_LEDGER_FAILED = 'juno.error.cmc.call_ledger_failed';\nexport const JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED = 'juno.error.cmc.ledger_transfer_failed';\nexport const JUNO_ERROR_CMC_TOP_UP_FAILED = 'juno.error.cmc.top_up_failed';\nexport const JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED =\n 'juno.error.cmc.call_create_canister_failed';\nexport const JUNO_ERROR_CMC_CREATE_CANISTER_FAILED = 'juno.error.cmc.create_canister_failed';\nexport const JUNO_ERROR_CMC_INSTALL_CODE_FAILED = 'juno.error.cmc.install_code_failed';\n", "export const isSatelliteError = ({error, type}: {error: unknown; type: string}): boolean => {\n if (typeof error === 'string') {\n return error.includes(type);\n }\n\n if (error instanceof Error) {\n return error.message.includes(type);\n }\n\n return false;\n};\n"],
|
|
5
|
+
"mappings": ";;AAAO,IAAMA,EAAqC,qCACrCC,EACX,oDAEWC,EAAqC,qCACrCC,EACX,oDACWC,EAAoC,oCAEpCC,EAAoC,oCAEpCC,EACX,4CACWC,EACX,kDAEWC,EAAoC,oCACpCC,EACX,4CACWC,EACX,2DCpBK,IAAMC,EACX,oDACWC,EAAuC,uCACvCC,EACX,6CACWC,EACX,6CACWC,EACX,yCACWC,EAA8C,mCAC9CC,EAA8C,mCCVpD,IAAMC,EAAmC,mCACnCC,EAA0C,0CAC1CC,EAAiC,iCACjCC,EAAwC,wCAExCC,EAAoC,oCACpCC,EAAmC,mCAEnCC,EAAwC,wCACxCC,EAAqC,qCACrCC,EAAyC,yCACzCC,EAAqC,qCACrCC,EAAuC,uCAEvCC,EAAuC,uCACvCC,EAAiC,iCACjCC,EAAiC,iCAEjCC,EAA0C,0CAC1CC,EAAyC,yCACzCC,EAAuC,uCACvCC,EACX,6CACWC,EAAwC,wCACxCC,EACX,uDACWC,EACX,+CC3BK,IAAMC,EAAoC,oCACpCC,EACX,+CACWC,EACX,6CAEWC,EAAoC,oCACpCC,EAAkC,kCAElCC,EAAwC,wCACxCC,EAAmC,mCAEnCC,EAAoC,oCACpCC,EAA0C,0CAE1CC,EAAiC,iCACjCC,GAAmC,mCAEnCC,GAAoC,oCACpCC,GAAwC,wCACxCC,GAA+B,+BAC/BC,GACX,6CACWC,GAAwC,wCACxCC,GAAqC,qCCxB3C,IAAMC,GAAmB,CAAC,CAAC,MAAAC,EAAO,KAAAC,CAAI,IACvC,OAAOD,GAAU,SACZA,EAAM,SAASC,CAAI,EAGxBD,aAAiB,MACZA,EAAM,QAAQ,SAASC,CAAI,EAG7B",
|
|
6
|
+
"names": ["JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT", "JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT_INVALID_STATUS", "JUNO_ERROR_PROPOSALS_CANNOT_COMMIT", "JUNO_ERROR_PROPOSALS_CANNOT_COMMIT_INVALID_STATUS", "JUNO_ERROR_PROPOSALS_INVALID_HASH", "JUNO_ERROR_PROPOSALS_UNKNOWN_TYPE", "JUNO_ERROR_PROPOSALS_EMPTY_CONTENT_CHUNKS", "JUNO_ERROR_PROPOSALS_NOT_CONTENT_CHUNKS_AT_INDEX", "JUNO_ERROR_PROPOSALS_EMPTY_ASSETS", "JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS", "JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS_INVALID_STATUS", "JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION", "JUNO_COLLECTIONS_ERROR_RESERVED_NAME", "JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION", "JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED", "JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED", "JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY", "JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND", "JUNO_ERROR_NO_TIMESTAMP_PROVIDED", "JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE", "JUNO_ERROR_NO_VERSION_PROVIDED", "JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE", "JUNO_DATASTORE_ERROR_CANNOT_WRITE", "JUNO_DATASTORE_ERROR_CANNOT_READ", "JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED", "JUNO_STORAGE_ERROR_SET_NOT_ALLOWED", "JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH", "JUNO_STORAGE_ERROR_ASSET_NOT_FOUND", "JUNO_STORAGE_ERROR_CANNOT_READ_ASSET", "JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER", "JUNO_AUTH_ERROR_INVALID_ORIGIN", "JUNO_AUTH_ERROR_NOT_CONTROLLER", "JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE", "JUNO_DATASTORE_ERROR_USER_INVALID_DATA", "JUNO_DATASTORE_ERROR_USER_CALLER_KEY", "JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL", "JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED", "JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED", "JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA", "JUNO_ERROR_CONTROLLERS_MAX_NUMBER", "JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED", "JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED", "JUNO_ERROR_MEMORY_STABLE_EXCEEDED", "JUNO_ERROR_MEMORY_HEAP_EXCEEDED", "JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW", "JUNO_ERROR_CYCLES_DEPOSIT_FAILED", "JUNO_ERROR_CANISTER_CREATE_FAILED", "JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED", "JUNO_ERROR_SEGMENT_STOP_FAILED", "JUNO_ERROR_SEGMENT_DELETE_FAILED", "JUNO_ERROR_CMC_CALL_LEDGER_FAILED", "JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED", "JUNO_ERROR_CMC_TOP_UP_FAILED", "JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED", "JUNO_ERROR_CMC_CREATE_CANISTER_FAILED", "JUNO_ERROR_CMC_INSTALL_CODE_FAILED", "isSatelliteError", "error", "type"]
|
|
7
7
|
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT = "juno.error.proposals.cannot_submit";
|
|
2
|
+
export declare const JUNO_ERROR_PROPOSALS_CANNOT_SUBMIT_INVALID_STATUS = "juno.error.proposals.cannot_submit_invalid_status";
|
|
3
|
+
export declare const JUNO_ERROR_PROPOSALS_CANNOT_COMMIT = "juno.error.proposals.cannot_commit";
|
|
4
|
+
export declare const JUNO_ERROR_PROPOSALS_CANNOT_COMMIT_INVALID_STATUS = "juno.error.proposals.cannot_commit_invalid_status";
|
|
5
|
+
export declare const JUNO_ERROR_PROPOSALS_INVALID_HASH = "juno.error.proposals.invalid_hash";
|
|
6
|
+
export declare const JUNO_ERROR_PROPOSALS_UNKNOWN_TYPE = "juno.error.proposals.unknown_type";
|
|
7
|
+
export declare const JUNO_ERROR_PROPOSALS_EMPTY_CONTENT_CHUNKS = "juno.error.proposals.empty_content_chunks";
|
|
8
|
+
export declare const JUNO_ERROR_PROPOSALS_NOT_CONTENT_CHUNKS_AT_INDEX = "juno.error.proposals.no_content_chunks_at_index";
|
|
9
|
+
export declare const JUNO_ERROR_PROPOSALS_EMPTY_ASSETS = "juno.error.proposals.empty_assets";
|
|
10
|
+
export declare const JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS = "juno.error.proposals.cannot_delete_assets";
|
|
11
|
+
export declare const JUNO_ERROR_PROPOSALS_CANNOT_DELETE_ASSETS_INVALID_STATUS = "juno.error.proposals.cannot_delete_assets_invalid_status";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare const JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION = "juno.collections.error.modify_reserved_collection";
|
|
2
|
+
export declare const JUNO_COLLECTIONS_ERROR_RESERVED_NAME = "juno.collections.error.reserved_name";
|
|
3
|
+
export declare const JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION = "juno.collections.error.reserved_collection";
|
|
4
|
+
export declare const JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED = "juno.collections.error.rate_config_enabled";
|
|
5
|
+
export declare const JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED = "juno.collections.error.prefix_deletion";
|
|
6
|
+
export declare const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY = "juno.collections.error.not_empty";
|
|
7
|
+
export declare const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND = "juno.collections.error.not_found";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const JUNO_ERROR_NO_TIMESTAMP_PROVIDED = "juno.error.no_timestamp_provided";
|
|
2
|
+
export declare const JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE = "juno.error.timestamp_outdated_or_future";
|
|
3
|
+
export declare const JUNO_ERROR_NO_VERSION_PROVIDED = "juno.error.no_version_provided";
|
|
4
|
+
export declare const JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE = "juno.error.version_outdated_or_future";
|
|
5
|
+
export declare const JUNO_DATASTORE_ERROR_CANNOT_WRITE = "juno.datastore.error.cannot_write";
|
|
6
|
+
export declare const JUNO_DATASTORE_ERROR_CANNOT_READ = "juno.datastore.error.cannot_read";
|
|
7
|
+
export declare const JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED = "juno.storage.error.upload_not_allowed";
|
|
8
|
+
export declare const JUNO_STORAGE_ERROR_SET_NOT_ALLOWED = "juno.storage.error.set_not_allowed";
|
|
9
|
+
export declare const JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH = "juno.storage.error.cannot_commit_batch";
|
|
10
|
+
export declare const JUNO_STORAGE_ERROR_ASSET_NOT_FOUND = "juno.storage.error.asset_not_found";
|
|
11
|
+
export declare const JUNO_STORAGE_ERROR_CANNOT_READ_ASSET = "juno.storage.error.cannot_read_asset";
|
|
12
|
+
export declare const JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER = "juno.auth.error.not_admin_controller";
|
|
13
|
+
export declare const JUNO_AUTH_ERROR_INVALID_ORIGIN = "juno.auth.error.invalid_origin";
|
|
14
|
+
export declare const JUNO_AUTH_ERROR_NOT_CONTROLLER = "juno.auth.error.not_controller";
|
|
15
|
+
export declare const JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE = "juno.datastore.error.user.cannot_update";
|
|
16
|
+
export declare const JUNO_DATASTORE_ERROR_USER_INVALID_DATA = "juno.datastore.error.user.invalid_data";
|
|
17
|
+
export declare const JUNO_DATASTORE_ERROR_USER_CALLER_KEY = "juno.datastore.error.user.caller_key";
|
|
18
|
+
export declare const JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL = "juno.datastore.error.user.key_no_principal";
|
|
19
|
+
export declare const JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED = "juno.datastore.error.user.not_allowed";
|
|
20
|
+
export declare const JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED = "juno.datastore.error.user.usage.change_limit_reached";
|
|
21
|
+
export declare const JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA = "juno.datastore.error.user.usage.invalid_data";
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare const JUNO_ERROR_CONTROLLERS_MAX_NUMBER = "juno.error.controllers.max_number";
|
|
2
|
+
export declare const JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED = "juno.error.controllers.anonymous_not_allowed";
|
|
3
|
+
export declare const JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED = "juno.error.controllers.revoked_not_allowed";
|
|
4
|
+
export declare const JUNO_ERROR_MEMORY_STABLE_EXCEEDED = "juno.error.memory.stable_exceeded";
|
|
5
|
+
export declare const JUNO_ERROR_MEMORY_HEAP_EXCEEDED = "juno.error.memory.heap_exceeded";
|
|
6
|
+
export declare const JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW = "juno.error.cycles.deposit_balance_low";
|
|
7
|
+
export declare const JUNO_ERROR_CYCLES_DEPOSIT_FAILED = "juno.error.cycles.deposit_failed";
|
|
8
|
+
export declare const JUNO_ERROR_CANISTER_CREATE_FAILED = "juno.error.canister.create_failed";
|
|
9
|
+
export declare const JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED = "juno.error.canister.install_code_failed";
|
|
10
|
+
export declare const JUNO_ERROR_SEGMENT_STOP_FAILED = "juno.error.segment.stop_failed";
|
|
11
|
+
export declare const JUNO_ERROR_SEGMENT_DELETE_FAILED = "juno.error.segment.delete_failed";
|
|
12
|
+
export declare const JUNO_ERROR_CMC_CALL_LEDGER_FAILED = "juno.error.cmc.call_ledger_failed";
|
|
13
|
+
export declare const JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED = "juno.error.cmc.ledger_transfer_failed";
|
|
14
|
+
export declare const JUNO_ERROR_CMC_TOP_UP_FAILED = "juno.error.cmc.top_up_failed";
|
|
15
|
+
export declare const JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED = "juno.error.cmc.call_create_canister_failed";
|
|
16
|
+
export declare const JUNO_ERROR_CMC_CREATE_CANISTER_FAILED = "juno.error.cmc.create_canister_failed";
|
|
17
|
+
export declare const JUNO_ERROR_CMC_INSTALL_CODE_FAILED = "juno.error.cmc.install_code_failed";
|
package/dist/types/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@junobuild/errors",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.10-next-2025-05-20",
|
|
4
4
|
"description": "A collection of predefined error constants and utilities for Juno applications.",
|
|
5
5
|
"author": "David Dal Busco (https://daviddalbusco.com)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -58,4 +58,4 @@
|
|
|
58
58
|
"developer-tools"
|
|
59
59
|
],
|
|
60
60
|
"homepage": "https://juno.build"
|
|
61
|
-
}
|
|
61
|
+
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
var _="juno.error.no_timestamp_provided",o="juno.error.timestamp_outdated_or_future",r="juno.error.no_version_provided",e="juno.error.version_outdated_or_future",R="juno.error.controllers.max_number",E="juno.error.controllers.anonymous_not_allowed",t="juno.error.controllers.revoked_not_allowed",O="juno.error.memory.stable_exceeded",n="juno.error.memory.heap_exceeded",N="juno.error.cycles.deposit_balance_low",c="juno.error.cycles.deposit_failed",s="juno.error.canister.create_failed",T="juno.error.canister.install_code_failed",a="juno.error.segment.stop_failed",A="juno.error.segment.delete_failed",L="juno.error.cmc.call_ledger_failed",l="juno.error.cmc.ledger_transfer_failed",u="juno.error.cmc.top_up_failed",U="juno.error.cmc.call_create_canister_failed",C="juno.error.cmc.create_canister_failed",D="juno.error.cmc.install_code_failed",d="juno.datastore.error.cannot_write",S="juno.datastore.error.cannot_read",p="juno.storage.error.upload_not_allowed",I="juno.storage.error.set_not_allowed",i="juno.storage.error.cannot_commit_batch",x="juno.storage.error.asset_not_found",j="juno.storage.error.cannot_read_asset",J="juno.collections.error.modify_reserved_collection",m="juno.collections.error.reserved_name",M="juno.collections.error.reserved_collection",f="juno.collections.error.rate_config_enabled",F="juno.collections.error.prefix_deletion",P="juno.collections.error.not_empty",g="juno.collections.error.not_found",G="juno.auth.error.not_admin_controller",V="juno.auth.error.invalid_origin",v="juno.auth.error.not_controller",y="juno.datastore.error.user.cannot_update",Y="juno.datastore.error.user.invalid_data",h="juno.datastore.error.user.caller_key",w="juno.datastore.error.user.key_no_principal",H="juno.datastore.error.user.not_allowed",W="juno.datastore.error.user.usage.change_limit_reached",b="juno.datastore.error.user.usage.invalid_data";export{_ as a,o as b,r as c,e as d,R as e,E as f,t as g,O as h,n as i,N as j,c as k,s as l,T as m,a as n,A as o,L as p,l as q,u as r,U as s,C as t,D as u,d as v,S as w,p as x,I as y,i as z,x as A,j as B,J as C,m as D,M as E,f as F,F as G,P as H,g as I,G as J,V as K,v as L,y as M,Y as N,h as O,w as P,H as Q,W as R,b as S};
|
|
2
|
-
//# sourceMappingURL=chunk-OVZBIFOY.js.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/constants.ts"],
|
|
4
|
-
"sourcesContent": ["export const JUNO_ERROR_NO_TIMESTAMP_PROVIDED = 'juno.error.no_timestamp_provided';\nexport const JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE = 'juno.error.timestamp_outdated_or_future';\nexport const JUNO_ERROR_NO_VERSION_PROVIDED = 'juno.error.no_version_provided';\nexport const JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE = 'juno.error.version_outdated_or_future';\n\nexport const JUNO_ERROR_CONTROLLERS_MAX_NUMBER = 'juno.error.controllers.max_number';\nexport const JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED =\n 'juno.error.controllers.anonymous_not_allowed';\nexport const JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED =\n 'juno.error.controllers.revoked_not_allowed';\n\nexport const JUNO_ERROR_MEMORY_STABLE_EXCEEDED = 'juno.error.memory.stable_exceeded';\nexport const JUNO_ERROR_MEMORY_HEAP_EXCEEDED = 'juno.error.memory.heap_exceeded';\n\nexport const JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW = 'juno.error.cycles.deposit_balance_low';\nexport const JUNO_ERROR_CYCLES_DEPOSIT_FAILED = 'juno.error.cycles.deposit_failed';\n\nexport const JUNO_ERROR_CANISTER_CREATE_FAILED = 'juno.error.canister.create_failed';\nexport const JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED = 'juno.error.canister.install_code_failed';\n\nexport const JUNO_ERROR_SEGMENT_STOP_FAILED = 'juno.error.segment.stop_failed';\nexport const JUNO_ERROR_SEGMENT_DELETE_FAILED = 'juno.error.segment.delete_failed';\n\nexport const JUNO_ERROR_CMC_CALL_LEDGER_FAILED = 'juno.error.cmc.call_ledger_failed';\nexport const JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED = 'juno.error.cmc.ledger_transfer_failed';\nexport const JUNO_ERROR_CMC_TOP_UP_FAILED = 'juno.error.cmc.top_up_failed';\nexport const JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED =\n 'juno.error.cmc.call_create_canister_failed';\nexport const JUNO_ERROR_CMC_CREATE_CANISTER_FAILED = 'juno.error.cmc.create_canister_failed';\nexport const JUNO_ERROR_CMC_INSTALL_CODE_FAILED = 'juno.error.cmc.install_code_failed';\n\nexport const JUNO_DATASTORE_ERROR_CANNOT_WRITE = 'juno.datastore.error.cannot_write';\nexport const JUNO_DATASTORE_ERROR_CANNOT_READ = 'juno.datastore.error.cannot_read';\n\nexport const JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED = 'juno.storage.error.upload_not_allowed';\nexport const JUNO_STORAGE_ERROR_SET_NOT_ALLOWED = 'juno.storage.error.set_not_allowed';\nexport const JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH = 'juno.storage.error.cannot_commit_batch';\nexport const JUNO_STORAGE_ERROR_ASSET_NOT_FOUND = 'juno.storage.error.asset_not_found';\nexport const JUNO_STORAGE_ERROR_CANNOT_READ_ASSET = 'juno.storage.error.cannot_read_asset';\n\nexport const JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION =\n 'juno.collections.error.modify_reserved_collection';\nexport const JUNO_COLLECTIONS_ERROR_RESERVED_NAME = 'juno.collections.error.reserved_name';\nexport const JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION =\n 'juno.collections.error.reserved_collection';\nexport const JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED =\n 'juno.collections.error.rate_config_enabled';\nexport const JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED =\n 'juno.collections.error.prefix_deletion';\nexport const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY = 'juno.collections.error.not_empty';\nexport const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND = 'juno.collections.error.not_found';\n\nexport const JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER = 'juno.auth.error.not_admin_controller';\nexport const JUNO_AUTH_ERROR_INVALID_ORIGIN = 'juno.auth.error.invalid_origin';\nexport const JUNO_AUTH_ERROR_NOT_CONTROLLER = 'juno.auth.error.not_controller';\n\nexport const JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE = 'juno.datastore.error.user.cannot_update';\nexport const JUNO_DATASTORE_ERROR_USER_INVALID_DATA = 'juno.datastore.error.user.invalid_data';\nexport const JUNO_DATASTORE_ERROR_USER_CALLER_KEY = 'juno.datastore.error.user.caller_key';\nexport const JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL =\n 'juno.datastore.error.user.key_no_principal';\nexport const JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED = 'juno.datastore.error.user.not_allowed';\nexport const JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED =\n 'juno.datastore.error.user.usage.change_limit_reached';\nexport const JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA =\n 'juno.datastore.error.user.usage.invalid_data';\n"],
|
|
5
|
-
"mappings": "AAAO,IAAMA,EAAmC,mCACnCC,EAA0C,0CAC1CC,EAAiC,iCACjCC,EAAwC,wCAExCC,EAAoC,oCACpCC,EACX,+CACWC,EACX,6CAEWC,EAAoC,oCACpCC,EAAkC,kCAElCC,EAAwC,wCACxCC,EAAmC,mCAEnCC,EAAoC,oCACpCC,EAA0C,0CAE1CC,EAAiC,iCACjCC,EAAmC,mCAEnCC,EAAoC,oCACpCC,EAAwC,wCACxCC,EAA+B,+BAC/BC,EACX,6CACWC,EAAwC,wCACxCC,EAAqC,qCAErCC,EAAoC,oCACpCC,EAAmC,mCAEnCC,EAAwC,wCACxCC,EAAqC,qCACrCC,EAAyC,yCACzCC,EAAqC,qCACrCC,EAAuC,uCAEvCC,EACX,oDACWC,EAAuC,uCACvCC,EACX,6CACWC,EACX,6CACWC,EACX,yCACWC,EAA8C,mCAC9CC,EAA8C,mCAE9CC,EAAuC,uCACvCC,EAAiC,iCACjCC,EAAiC,iCAEjCC,EAA0C,0CAC1CC,EAAyC,yCACzCC,EAAuC,uCACvCC,EACX,6CACWC,EAAwC,wCACxCC,EACX,uDACWC,EACX",
|
|
6
|
-
"names": ["JUNO_ERROR_NO_TIMESTAMP_PROVIDED", "JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE", "JUNO_ERROR_NO_VERSION_PROVIDED", "JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE", "JUNO_ERROR_CONTROLLERS_MAX_NUMBER", "JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED", "JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED", "JUNO_ERROR_MEMORY_STABLE_EXCEEDED", "JUNO_ERROR_MEMORY_HEAP_EXCEEDED", "JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW", "JUNO_ERROR_CYCLES_DEPOSIT_FAILED", "JUNO_ERROR_CANISTER_CREATE_FAILED", "JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED", "JUNO_ERROR_SEGMENT_STOP_FAILED", "JUNO_ERROR_SEGMENT_DELETE_FAILED", "JUNO_ERROR_CMC_CALL_LEDGER_FAILED", "JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED", "JUNO_ERROR_CMC_TOP_UP_FAILED", "JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED", "JUNO_ERROR_CMC_CREATE_CANISTER_FAILED", "JUNO_ERROR_CMC_INSTALL_CODE_FAILED", "JUNO_DATASTORE_ERROR_CANNOT_WRITE", "JUNO_DATASTORE_ERROR_CANNOT_READ", "JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED", "JUNO_STORAGE_ERROR_SET_NOT_ALLOWED", "JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH", "JUNO_STORAGE_ERROR_ASSET_NOT_FOUND", "JUNO_STORAGE_ERROR_CANNOT_READ_ASSET", "JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION", "JUNO_COLLECTIONS_ERROR_RESERVED_NAME", "JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION", "JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED", "JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED", "JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY", "JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND", "JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER", "JUNO_AUTH_ERROR_INVALID_ORIGIN", "JUNO_AUTH_ERROR_NOT_CONTROLLER", "JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE", "JUNO_DATASTORE_ERROR_USER_INVALID_DATA", "JUNO_DATASTORE_ERROR_USER_CALLER_KEY", "JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL", "JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED", "JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED", "JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA"]
|
|
7
|
-
}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-OVZBIFOY.js";export{K as JUNO_AUTH_ERROR_INVALID_ORIGIN,J as JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER,L as JUNO_AUTH_ERROR_NOT_CONTROLLER,H as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY,I as JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND,G as JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED,C as JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION,F as JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED,E as JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION,D as JUNO_COLLECTIONS_ERROR_RESERVED_NAME,w as JUNO_DATASTORE_ERROR_CANNOT_READ,v as JUNO_DATASTORE_ERROR_CANNOT_WRITE,O as JUNO_DATASTORE_ERROR_USER_CALLER_KEY,M as JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE,N as JUNO_DATASTORE_ERROR_USER_INVALID_DATA,P as JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL,Q as JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED,R as JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED,S as JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA,l as JUNO_ERROR_CANISTER_CREATE_FAILED,m as JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED,s as JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED,p as JUNO_ERROR_CMC_CALL_LEDGER_FAILED,t as JUNO_ERROR_CMC_CREATE_CANISTER_FAILED,u as JUNO_ERROR_CMC_INSTALL_CODE_FAILED,q as JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED,r as JUNO_ERROR_CMC_TOP_UP_FAILED,f as JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED,e as JUNO_ERROR_CONTROLLERS_MAX_NUMBER,g as JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED,j as JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW,k as JUNO_ERROR_CYCLES_DEPOSIT_FAILED,i as JUNO_ERROR_MEMORY_HEAP_EXCEEDED,h as JUNO_ERROR_MEMORY_STABLE_EXCEEDED,a as JUNO_ERROR_NO_TIMESTAMP_PROVIDED,c as JUNO_ERROR_NO_VERSION_PROVIDED,o as JUNO_ERROR_SEGMENT_DELETE_FAILED,n as JUNO_ERROR_SEGMENT_STOP_FAILED,b as JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE,d as JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE,A as JUNO_STORAGE_ERROR_ASSET_NOT_FOUND,z as JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH,B as JUNO_STORAGE_ERROR_CANNOT_READ_ASSET,y as JUNO_STORAGE_ERROR_SET_NOT_ALLOWED,x as JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED};
|
|
2
|
-
//# sourceMappingURL=constants.js.map
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
export declare const JUNO_ERROR_NO_TIMESTAMP_PROVIDED = "juno.error.no_timestamp_provided";
|
|
2
|
-
export declare const JUNO_ERROR_TIMESTAMP_OUTDATED_OR_FUTURE = "juno.error.timestamp_outdated_or_future";
|
|
3
|
-
export declare const JUNO_ERROR_NO_VERSION_PROVIDED = "juno.error.no_version_provided";
|
|
4
|
-
export declare const JUNO_ERROR_VERSION_OUTDATED_OR_FUTURE = "juno.error.version_outdated_or_future";
|
|
5
|
-
export declare const JUNO_ERROR_CONTROLLERS_MAX_NUMBER = "juno.error.controllers.max_number";
|
|
6
|
-
export declare const JUNO_ERROR_CONTROLLERS_ANONYMOUS_NOT_ALLOWED = "juno.error.controllers.anonymous_not_allowed";
|
|
7
|
-
export declare const JUNO_ERROR_CONTROLLERS_REVOKED_NOT_ALLOWED = "juno.error.controllers.revoked_not_allowed";
|
|
8
|
-
export declare const JUNO_ERROR_MEMORY_STABLE_EXCEEDED = "juno.error.memory.stable_exceeded";
|
|
9
|
-
export declare const JUNO_ERROR_MEMORY_HEAP_EXCEEDED = "juno.error.memory.heap_exceeded";
|
|
10
|
-
export declare const JUNO_ERROR_CYCLES_DEPOSIT_BALANCE_LOW = "juno.error.cycles.deposit_balance_low";
|
|
11
|
-
export declare const JUNO_ERROR_CYCLES_DEPOSIT_FAILED = "juno.error.cycles.deposit_failed";
|
|
12
|
-
export declare const JUNO_ERROR_CANISTER_CREATE_FAILED = "juno.error.canister.create_failed";
|
|
13
|
-
export declare const JUNO_ERROR_CANISTER_INSTALL_CODE_FAILED = "juno.error.canister.install_code_failed";
|
|
14
|
-
export declare const JUNO_ERROR_SEGMENT_STOP_FAILED = "juno.error.segment.stop_failed";
|
|
15
|
-
export declare const JUNO_ERROR_SEGMENT_DELETE_FAILED = "juno.error.segment.delete_failed";
|
|
16
|
-
export declare const JUNO_ERROR_CMC_CALL_LEDGER_FAILED = "juno.error.cmc.call_ledger_failed";
|
|
17
|
-
export declare const JUNO_ERROR_CMC_LEDGER_TRANSFER_FAILED = "juno.error.cmc.ledger_transfer_failed";
|
|
18
|
-
export declare const JUNO_ERROR_CMC_TOP_UP_FAILED = "juno.error.cmc.top_up_failed";
|
|
19
|
-
export declare const JUNO_ERROR_CMC_CALL_CREATE_CANISTER_FAILED = "juno.error.cmc.call_create_canister_failed";
|
|
20
|
-
export declare const JUNO_ERROR_CMC_CREATE_CANISTER_FAILED = "juno.error.cmc.create_canister_failed";
|
|
21
|
-
export declare const JUNO_ERROR_CMC_INSTALL_CODE_FAILED = "juno.error.cmc.install_code_failed";
|
|
22
|
-
export declare const JUNO_DATASTORE_ERROR_CANNOT_WRITE = "juno.datastore.error.cannot_write";
|
|
23
|
-
export declare const JUNO_DATASTORE_ERROR_CANNOT_READ = "juno.datastore.error.cannot_read";
|
|
24
|
-
export declare const JUNO_STORAGE_ERROR_UPLOAD_NOT_ALLOWED = "juno.storage.error.upload_not_allowed";
|
|
25
|
-
export declare const JUNO_STORAGE_ERROR_SET_NOT_ALLOWED = "juno.storage.error.set_not_allowed";
|
|
26
|
-
export declare const JUNO_STORAGE_ERROR_CANNOT_COMMIT_BATCH = "juno.storage.error.cannot_commit_batch";
|
|
27
|
-
export declare const JUNO_STORAGE_ERROR_ASSET_NOT_FOUND = "juno.storage.error.asset_not_found";
|
|
28
|
-
export declare const JUNO_STORAGE_ERROR_CANNOT_READ_ASSET = "juno.storage.error.cannot_read_asset";
|
|
29
|
-
export declare const JUNO_COLLECTIONS_ERROR_MODIFY_RESERVED_COLLECTION = "juno.collections.error.modify_reserved_collection";
|
|
30
|
-
export declare const JUNO_COLLECTIONS_ERROR_RESERVED_NAME = "juno.collections.error.reserved_name";
|
|
31
|
-
export declare const JUNO_COLLECTIONS_ERROR_RESERVED_COLLECTION = "juno.collections.error.reserved_collection";
|
|
32
|
-
export declare const JUNO_COLLECTIONS_ERROR_RATE_CONFIG_ENABLED = "juno.collections.error.rate_config_enabled";
|
|
33
|
-
export declare const JUNO_COLLECTIONS_ERROR_DELETE_PREFIX_RESERVED = "juno.collections.error.prefix_deletion";
|
|
34
|
-
export declare const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_EMPTY = "juno.collections.error.not_empty";
|
|
35
|
-
export declare const JUNO_COLLECTIONS_ERROR_COLLECTION_NOT_FOUND = "juno.collections.error.not_found";
|
|
36
|
-
export declare const JUNO_AUTH_ERROR_NOT_ADMIN_CONTROLLER = "juno.auth.error.not_admin_controller";
|
|
37
|
-
export declare const JUNO_AUTH_ERROR_INVALID_ORIGIN = "juno.auth.error.invalid_origin";
|
|
38
|
-
export declare const JUNO_AUTH_ERROR_NOT_CONTROLLER = "juno.auth.error.not_controller";
|
|
39
|
-
export declare const JUNO_DATASTORE_ERROR_USER_CANNOT_UPDATE = "juno.datastore.error.user.cannot_update";
|
|
40
|
-
export declare const JUNO_DATASTORE_ERROR_USER_INVALID_DATA = "juno.datastore.error.user.invalid_data";
|
|
41
|
-
export declare const JUNO_DATASTORE_ERROR_USER_CALLER_KEY = "juno.datastore.error.user.caller_key";
|
|
42
|
-
export declare const JUNO_DATASTORE_ERROR_USER_KEY_NO_PRINCIPAL = "juno.datastore.error.user.key_no_principal";
|
|
43
|
-
export declare const JUNO_DATASTORE_ERROR_USER_NOT_ALLOWED = "juno.datastore.error.user.not_allowed";
|
|
44
|
-
export declare const JUNO_DATASTORE_ERROR_USER_USAGE_CHANGE_LIMIT_REACHED = "juno.datastore.error.user.usage.change_limit_reached";
|
|
45
|
-
export declare const JUNO_DATASTORE_ERROR_USER_USAGE_INVALID_DATA = "juno.datastore.error.user.usage.invalid_data";
|