@metamask-previews/claims-controller 0.4.3-preview-a0caca0c0 → 0.4.3-preview-17c76be24

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.
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
3
+ * This file is auto generated.
4
4
  * Do not edit manually.
5
5
  */
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -1 +1 @@
1
- {"version":3,"file":"ClaimsController-method-action-types.cjs","sourceRoot":"","sources":["../src/ClaimsController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { ClaimsController } from './ClaimsController';\n\n/**\n * Fetch the required configurations for the claims service.\n *\n * @returns The required configurations for the claims service.\n */\nexport type ClaimsControllerFetchClaimsConfigurationsAction = {\n type: `ClaimsController:fetchClaimsConfigurations`;\n handler: ClaimsController['fetchClaimsConfigurations'];\n};\n\n/**\n * Get required config for submitting a claim.\n *\n * @param claim - The claim request to get the required config for.\n * @returns The required config for submitting the claim.\n */\nexport type ClaimsControllerGetSubmitClaimConfigAction = {\n type: `ClaimsController:getSubmitClaimConfig`;\n handler: ClaimsController['getSubmitClaimConfig'];\n};\n\n/**\n * Generate a signature for a claim.\n *\n * @param chainId - The chain id of the claim.\n * @param walletAddress - The impacted wallet address of the claim.\n * @returns The signature for the claim.\n */\nexport type ClaimsControllerGenerateClaimSignatureAction = {\n type: `ClaimsController:generateClaimSignature`;\n handler: ClaimsController['generateClaimSignature'];\n};\n\n/**\n * Get the list of claims for the current user.\n *\n * @returns The list of claims for the current user.\n */\nexport type ClaimsControllerGetClaimsAction = {\n type: `ClaimsController:getClaims`;\n handler: ClaimsController['getClaims'];\n};\n\n/**\n * Save a claim draft to the state.\n * If the draft name is not provided, a default name will be generated.\n * If the draft with the same id already exists, it will be updated.\n *\n * @param draft - The draft to save.\n * @returns The saved draft.\n */\nexport type ClaimsControllerSaveOrUpdateClaimDraftAction = {\n type: `ClaimsController:saveOrUpdateClaimDraft`;\n handler: ClaimsController['saveOrUpdateClaimDraft'];\n};\n\n/**\n * Get the list of claim drafts.\n *\n * @returns The list of claim drafts.\n */\nexport type ClaimsControllerGetClaimDraftsAction = {\n type: `ClaimsController:getClaimDrafts`;\n handler: ClaimsController['getClaimDrafts'];\n};\n\n/**\n * Delete a claim draft from the state.\n *\n * @param draftId - The ID of the draft to delete.\n */\nexport type ClaimsControllerDeleteClaimDraftAction = {\n type: `ClaimsController:deleteClaimDraft`;\n handler: ClaimsController['deleteClaimDraft'];\n};\n\n/**\n * Delete all claim drafts from the state.\n */\nexport type ClaimsControllerDeleteAllClaimDraftsAction = {\n type: `ClaimsController:deleteAllClaimDrafts`;\n handler: ClaimsController['deleteAllClaimDrafts'];\n};\n\n/**\n * Clears the claims state and resets to default values.\n */\nexport type ClaimsControllerClearStateAction = {\n type: `ClaimsController:clearState`;\n handler: ClaimsController['clearState'];\n};\n\n/**\n * Union of all ClaimsController action types.\n */\nexport type ClaimsControllerMethodActions =\n | ClaimsControllerFetchClaimsConfigurationsAction\n | ClaimsControllerGetSubmitClaimConfigAction\n | ClaimsControllerGenerateClaimSignatureAction\n | ClaimsControllerGetClaimsAction\n | ClaimsControllerSaveOrUpdateClaimDraftAction\n | ClaimsControllerGetClaimDraftsAction\n | ClaimsControllerDeleteClaimDraftAction\n | ClaimsControllerDeleteAllClaimDraftsAction\n | ClaimsControllerClearStateAction;\n"]}
1
+ {"version":3,"file":"ClaimsController-method-action-types.cjs","sourceRoot":"","sources":["../src/ClaimsController-method-action-types.ts"],"names":[],"mappings":";AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { ClaimsController } from './ClaimsController';\n\n/**\n * Fetch the required configurations for the claims service.\n *\n * @returns The required configurations for the claims service.\n */\nexport type ClaimsControllerFetchClaimsConfigurationsAction = {\n type: `ClaimsController:fetchClaimsConfigurations`;\n handler: ClaimsController['fetchClaimsConfigurations'];\n};\n\n/**\n * Get required config for submitting a claim.\n *\n * @param claim - The claim request to get the required config for.\n * @returns The required config for submitting the claim.\n */\nexport type ClaimsControllerGetSubmitClaimConfigAction = {\n type: `ClaimsController:getSubmitClaimConfig`;\n handler: ClaimsController['getSubmitClaimConfig'];\n};\n\n/**\n * Generate a signature for a claim.\n *\n * @param chainId - The chain id of the claim.\n * @param walletAddress - The impacted wallet address of the claim.\n * @returns The signature for the claim.\n */\nexport type ClaimsControllerGenerateClaimSignatureAction = {\n type: `ClaimsController:generateClaimSignature`;\n handler: ClaimsController['generateClaimSignature'];\n};\n\n/**\n * Get the list of claims for the current user.\n *\n * @returns The list of claims for the current user.\n */\nexport type ClaimsControllerGetClaimsAction = {\n type: `ClaimsController:getClaims`;\n handler: ClaimsController['getClaims'];\n};\n\n/**\n * Save a claim draft to the state.\n * If the draft name is not provided, a default name will be generated.\n * If the draft with the same id already exists, it will be updated.\n *\n * @param draft - The draft to save.\n * @returns The saved draft.\n */\nexport type ClaimsControllerSaveOrUpdateClaimDraftAction = {\n type: `ClaimsController:saveOrUpdateClaimDraft`;\n handler: ClaimsController['saveOrUpdateClaimDraft'];\n};\n\n/**\n * Get the list of claim drafts.\n *\n * @returns The list of claim drafts.\n */\nexport type ClaimsControllerGetClaimDraftsAction = {\n type: `ClaimsController:getClaimDrafts`;\n handler: ClaimsController['getClaimDrafts'];\n};\n\n/**\n * Delete a claim draft from the state.\n *\n * @param draftId - The ID of the draft to delete.\n */\nexport type ClaimsControllerDeleteClaimDraftAction = {\n type: `ClaimsController:deleteClaimDraft`;\n handler: ClaimsController['deleteClaimDraft'];\n};\n\n/**\n * Delete all claim drafts from the state.\n */\nexport type ClaimsControllerDeleteAllClaimDraftsAction = {\n type: `ClaimsController:deleteAllClaimDrafts`;\n handler: ClaimsController['deleteAllClaimDrafts'];\n};\n\n/**\n * Clears the claims state and resets to default values.\n */\nexport type ClaimsControllerClearStateAction = {\n type: `ClaimsController:clearState`;\n handler: ClaimsController['clearState'];\n};\n\n/**\n * Union of all ClaimsController action types.\n */\nexport type ClaimsControllerMethodActions =\n | ClaimsControllerFetchClaimsConfigurationsAction\n | ClaimsControllerGetSubmitClaimConfigAction\n | ClaimsControllerGenerateClaimSignatureAction\n | ClaimsControllerGetClaimsAction\n | ClaimsControllerSaveOrUpdateClaimDraftAction\n | ClaimsControllerGetClaimDraftsAction\n | ClaimsControllerDeleteClaimDraftAction\n | ClaimsControllerDeleteAllClaimDraftsAction\n | ClaimsControllerClearStateAction;\n"]}
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { ClaimsController } from "./ClaimsController.cjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  import type { ClaimsController } from "./ClaimsController.mjs";
@@ -1,5 +1,5 @@
1
1
  /**
2
- * This file is auto generated by `scripts/generate-method-action-types.ts`.
2
+ * This file is auto generated.
3
3
  * Do not edit manually.
4
4
  */
5
5
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"ClaimsController-method-action-types.mjs","sourceRoot":"","sources":["../src/ClaimsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated by `scripts/generate-method-action-types.ts`.\n * Do not edit manually.\n */\n\nimport type { ClaimsController } from './ClaimsController';\n\n/**\n * Fetch the required configurations for the claims service.\n *\n * @returns The required configurations for the claims service.\n */\nexport type ClaimsControllerFetchClaimsConfigurationsAction = {\n type: `ClaimsController:fetchClaimsConfigurations`;\n handler: ClaimsController['fetchClaimsConfigurations'];\n};\n\n/**\n * Get required config for submitting a claim.\n *\n * @param claim - The claim request to get the required config for.\n * @returns The required config for submitting the claim.\n */\nexport type ClaimsControllerGetSubmitClaimConfigAction = {\n type: `ClaimsController:getSubmitClaimConfig`;\n handler: ClaimsController['getSubmitClaimConfig'];\n};\n\n/**\n * Generate a signature for a claim.\n *\n * @param chainId - The chain id of the claim.\n * @param walletAddress - The impacted wallet address of the claim.\n * @returns The signature for the claim.\n */\nexport type ClaimsControllerGenerateClaimSignatureAction = {\n type: `ClaimsController:generateClaimSignature`;\n handler: ClaimsController['generateClaimSignature'];\n};\n\n/**\n * Get the list of claims for the current user.\n *\n * @returns The list of claims for the current user.\n */\nexport type ClaimsControllerGetClaimsAction = {\n type: `ClaimsController:getClaims`;\n handler: ClaimsController['getClaims'];\n};\n\n/**\n * Save a claim draft to the state.\n * If the draft name is not provided, a default name will be generated.\n * If the draft with the same id already exists, it will be updated.\n *\n * @param draft - The draft to save.\n * @returns The saved draft.\n */\nexport type ClaimsControllerSaveOrUpdateClaimDraftAction = {\n type: `ClaimsController:saveOrUpdateClaimDraft`;\n handler: ClaimsController['saveOrUpdateClaimDraft'];\n};\n\n/**\n * Get the list of claim drafts.\n *\n * @returns The list of claim drafts.\n */\nexport type ClaimsControllerGetClaimDraftsAction = {\n type: `ClaimsController:getClaimDrafts`;\n handler: ClaimsController['getClaimDrafts'];\n};\n\n/**\n * Delete a claim draft from the state.\n *\n * @param draftId - The ID of the draft to delete.\n */\nexport type ClaimsControllerDeleteClaimDraftAction = {\n type: `ClaimsController:deleteClaimDraft`;\n handler: ClaimsController['deleteClaimDraft'];\n};\n\n/**\n * Delete all claim drafts from the state.\n */\nexport type ClaimsControllerDeleteAllClaimDraftsAction = {\n type: `ClaimsController:deleteAllClaimDrafts`;\n handler: ClaimsController['deleteAllClaimDrafts'];\n};\n\n/**\n * Clears the claims state and resets to default values.\n */\nexport type ClaimsControllerClearStateAction = {\n type: `ClaimsController:clearState`;\n handler: ClaimsController['clearState'];\n};\n\n/**\n * Union of all ClaimsController action types.\n */\nexport type ClaimsControllerMethodActions =\n | ClaimsControllerFetchClaimsConfigurationsAction\n | ClaimsControllerGetSubmitClaimConfigAction\n | ClaimsControllerGenerateClaimSignatureAction\n | ClaimsControllerGetClaimsAction\n | ClaimsControllerSaveOrUpdateClaimDraftAction\n | ClaimsControllerGetClaimDraftsAction\n | ClaimsControllerDeleteClaimDraftAction\n | ClaimsControllerDeleteAllClaimDraftsAction\n | ClaimsControllerClearStateAction;\n"]}
1
+ {"version":3,"file":"ClaimsController-method-action-types.mjs","sourceRoot":"","sources":["../src/ClaimsController-method-action-types.ts"],"names":[],"mappings":"AAAA;;;GAGG","sourcesContent":["/**\n * This file is auto generated.\n * Do not edit manually.\n */\n\nimport type { ClaimsController } from './ClaimsController';\n\n/**\n * Fetch the required configurations for the claims service.\n *\n * @returns The required configurations for the claims service.\n */\nexport type ClaimsControllerFetchClaimsConfigurationsAction = {\n type: `ClaimsController:fetchClaimsConfigurations`;\n handler: ClaimsController['fetchClaimsConfigurations'];\n};\n\n/**\n * Get required config for submitting a claim.\n *\n * @param claim - The claim request to get the required config for.\n * @returns The required config for submitting the claim.\n */\nexport type ClaimsControllerGetSubmitClaimConfigAction = {\n type: `ClaimsController:getSubmitClaimConfig`;\n handler: ClaimsController['getSubmitClaimConfig'];\n};\n\n/**\n * Generate a signature for a claim.\n *\n * @param chainId - The chain id of the claim.\n * @param walletAddress - The impacted wallet address of the claim.\n * @returns The signature for the claim.\n */\nexport type ClaimsControllerGenerateClaimSignatureAction = {\n type: `ClaimsController:generateClaimSignature`;\n handler: ClaimsController['generateClaimSignature'];\n};\n\n/**\n * Get the list of claims for the current user.\n *\n * @returns The list of claims for the current user.\n */\nexport type ClaimsControllerGetClaimsAction = {\n type: `ClaimsController:getClaims`;\n handler: ClaimsController['getClaims'];\n};\n\n/**\n * Save a claim draft to the state.\n * If the draft name is not provided, a default name will be generated.\n * If the draft with the same id already exists, it will be updated.\n *\n * @param draft - The draft to save.\n * @returns The saved draft.\n */\nexport type ClaimsControllerSaveOrUpdateClaimDraftAction = {\n type: `ClaimsController:saveOrUpdateClaimDraft`;\n handler: ClaimsController['saveOrUpdateClaimDraft'];\n};\n\n/**\n * Get the list of claim drafts.\n *\n * @returns The list of claim drafts.\n */\nexport type ClaimsControllerGetClaimDraftsAction = {\n type: `ClaimsController:getClaimDrafts`;\n handler: ClaimsController['getClaimDrafts'];\n};\n\n/**\n * Delete a claim draft from the state.\n *\n * @param draftId - The ID of the draft to delete.\n */\nexport type ClaimsControllerDeleteClaimDraftAction = {\n type: `ClaimsController:deleteClaimDraft`;\n handler: ClaimsController['deleteClaimDraft'];\n};\n\n/**\n * Delete all claim drafts from the state.\n */\nexport type ClaimsControllerDeleteAllClaimDraftsAction = {\n type: `ClaimsController:deleteAllClaimDrafts`;\n handler: ClaimsController['deleteAllClaimDrafts'];\n};\n\n/**\n * Clears the claims state and resets to default values.\n */\nexport type ClaimsControllerClearStateAction = {\n type: `ClaimsController:clearState`;\n handler: ClaimsController['clearState'];\n};\n\n/**\n * Union of all ClaimsController action types.\n */\nexport type ClaimsControllerMethodActions =\n | ClaimsControllerFetchClaimsConfigurationsAction\n | ClaimsControllerGetSubmitClaimConfigAction\n | ClaimsControllerGenerateClaimSignatureAction\n | ClaimsControllerGetClaimsAction\n | ClaimsControllerSaveOrUpdateClaimDraftAction\n | ClaimsControllerGetClaimDraftsAction\n | ClaimsControllerDeleteClaimDraftAction\n | ClaimsControllerDeleteAllClaimDraftsAction\n | ClaimsControllerClearStateAction;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/claims-controller",
3
- "version": "0.4.3-preview-a0caca0c0",
3
+ "version": "0.4.3-preview-17c76be24",
4
4
  "description": "Controller handling shield subscription claims logic",
5
5
  "keywords": [
6
6
  "MetaMask",