primcli 1.9.0 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -0
- package/dist/oclif/index.js +6 -6
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -93,6 +93,9 @@ primitive payments pay --challenge-file challenge.json
|
|
|
93
93
|
cat challenge.json | primitive payments pay
|
|
94
94
|
|
|
95
95
|
# Email-native flow: the payee issues a challenge over an email thread.
|
|
96
|
+
# Note: create-email-challenge takes --amount in token base units only; unlike
|
|
97
|
+
# `charge` it has no --amount-usdc. USDC has 6 decimals, so multiply by
|
|
98
|
+
# 1,000,000: 0.01 USDC is --amount 10000.
|
|
96
99
|
primitive payments create-email-challenge --from payee@your-domain.example \
|
|
97
100
|
--to payer@their-domain.example --amount 10000 --network base-sepolia
|
|
98
101
|
# Payer: sign a received email challenge into an interaction.json payment step.
|
package/dist/oclif/index.js
CHANGED
|
@@ -5531,7 +5531,7 @@ const openapiDocument = {
|
|
|
5531
5531
|
"amount": {
|
|
5532
5532
|
"type": "string",
|
|
5533
5533
|
"pattern": "^[1-9][0-9]{0,38}$",
|
|
5534
|
-
"description": "Amount to collect, in token base units. USDC has 6 decimals, so
|
|
5534
|
+
"description": "Amount to collect, in token base units (unlike the `charge` CLI\ncommand, which also accepts `--amount-usdc`, this field takes base\nunits only). USDC has 6 decimals, so `\"10000\"` is 0.01 USDC:\nmultiply a human USDC amount by 1,000,000 (0.01 USDC -> `\"10000\"`).\n"
|
|
5535
5535
|
},
|
|
5536
5536
|
"network": {
|
|
5537
5537
|
"type": "string",
|
|
@@ -5541,7 +5541,7 @@ const openapiDocument = {
|
|
|
5541
5541
|
"type": "integer",
|
|
5542
5542
|
"minimum": 60,
|
|
5543
5543
|
"maximum": 86400,
|
|
5544
|
-
"description": "Seconds until the challenge expires. Defaults to
|
|
5544
|
+
"description": "Seconds until the challenge expires. Defaults to 300."
|
|
5545
5545
|
},
|
|
5546
5546
|
"resource": {
|
|
5547
5547
|
"type": "string",
|
|
@@ -15478,7 +15478,7 @@ const operationManifest = [
|
|
|
15478
15478
|
"amount": {
|
|
15479
15479
|
"type": "string",
|
|
15480
15480
|
"pattern": "^[1-9][0-9]{0,38}$",
|
|
15481
|
-
"description": "Amount to collect, in token base units. USDC has 6 decimals, so
|
|
15481
|
+
"description": "Amount to collect, in token base units (unlike the `charge` CLI\ncommand, which also accepts `--amount-usdc`, this field takes base\nunits only). USDC has 6 decimals, so `\"10000\"` is 0.01 USDC:\nmultiply a human USDC amount by 1,000,000 (0.01 USDC -> `\"10000\"`).\n"
|
|
15482
15482
|
},
|
|
15483
15483
|
"network": {
|
|
15484
15484
|
"type": "string",
|
|
@@ -15488,7 +15488,7 @@ const operationManifest = [
|
|
|
15488
15488
|
"type": "integer",
|
|
15489
15489
|
"minimum": 60,
|
|
15490
15490
|
"maximum": 86400,
|
|
15491
|
-
"description": "Seconds until the challenge expires. Defaults to
|
|
15491
|
+
"description": "Seconds until the challenge expires. Defaults to 300."
|
|
15492
15492
|
},
|
|
15493
15493
|
"resource": {
|
|
15494
15494
|
"type": "string",
|
|
@@ -22648,8 +22648,8 @@ const PRIMITIVE_TEAM_AUTHOR = {
|
|
|
22648
22648
|
name: "Primitive Team",
|
|
22649
22649
|
url: "https://primitive.dev"
|
|
22650
22650
|
};
|
|
22651
|
-
const SDK_VERSION_RANGE = "^1.
|
|
22652
|
-
const CLI_VERSION_RANGE = "^1.
|
|
22651
|
+
const SDK_VERSION_RANGE = "^1.10.0";
|
|
22652
|
+
const CLI_VERSION_RANGE = "^1.10.0";
|
|
22653
22653
|
const ESBUILD_VERSION_RANGE = "^0.27.0";
|
|
22654
22654
|
function renderHandler() {
|
|
22655
22655
|
return `// env.PRIMITIVE_API_KEY, env.PRIMITIVE_WEBHOOK_SECRET, and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primcli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Official Primitive CLI: deploy Primitive Functions, send and inspect mail, manage endpoints, all from the terminal. Wraps the @primitivedotdev/sdk runtime client with one-shot commands.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|