@primitivedotdev/sdk 0.8.0 → 0.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.
@@ -173,7 +173,7 @@
173
173
  "account:update-account": {
174
174
  "aliases": [],
175
175
  "args": {},
176
- "description": "PATCH /account",
176
+ "description": "PATCH /account\n\nBody fields (JSON --body):\n discard_content_on_webhook_confirmed boolean Whether to discard email content after the webhook endpoint confirms receipt.\n spam_threshold number? Global spam score threshold (0-15). Emails scoring above this are rejected....\n(* = required)",
177
177
  "flags": {
178
178
  "api-key": {
179
179
  "description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
@@ -219,7 +219,7 @@
219
219
  "domains:add-domain": {
220
220
  "aliases": [],
221
221
  "args": {},
222
- "description": "Creates an unverified domain claim. You will receive a\n`verification_token` to add as a DNS TXT record before\ncalling the verify endpoint.\n",
222
+ "description": "Creates an unverified domain claim. You will receive a\n`verification_token` to add as a DNS TXT record before\ncalling the verify endpoint.\n\n\nBody fields (JSON --body):\n * domain string The domain name to claim (e.g. \"example.com\")\n(* = required)",
223
223
  "flags": {
224
224
  "api-key": {
225
225
  "description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
@@ -337,7 +337,7 @@
337
337
  "domains:update-domain": {
338
338
  "aliases": [],
339
339
  "args": {},
340
- "description": "Update a verified domain's settings. Only verified domains can be\nupdated. Per-domain spam thresholds require a Pro plan.\n",
340
+ "description": "Update a verified domain's settings. Only verified domains can be\nupdated. Per-domain spam thresholds require a Pro plan.\n\n\nBody fields (JSON --body):\n is_active boolean Whether the domain accepts incoming emails\n spam_threshold number? Per-domain spam threshold override (Pro plan required)\n(* = required)",
341
341
  "flags": {
342
342
  "api-key": {
343
343
  "description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
@@ -755,7 +755,7 @@
755
755
  "endpoints:create-endpoint": {
756
756
  "aliases": [],
757
757
  "args": {},
758
- "description": "Creates a new webhook endpoint. If a deactivated endpoint with the\nsame URL and domain exists, it is reactivated instead.\nSubject to plan limits on the number of active endpoints.\n",
758
+ "description": "Creates a new webhook endpoint. If a deactivated endpoint with the\nsame URL and domain exists, it is reactivated instead.\nSubject to plan limits on the number of active endpoints.\n\n\nBody fields (JSON --body):\n * url string The webhook URL to deliver events to\n domain_id string? Restrict to emails from a specific domain\n enabled boolean Whether the endpoint is active\n rules object Endpoint-specific filtering rules\n(* = required)",
759
759
  "flags": {
760
760
  "api-key": {
761
761
  "description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
@@ -913,7 +913,7 @@
913
913
  "endpoints:update-endpoint": {
914
914
  "aliases": [],
915
915
  "args": {},
916
- "description": "Updates an active webhook endpoint. If the URL is changed, the old\nendpoint is deactivated and a new one is created (or an existing\ndeactivated endpoint with the new URL is reactivated).\n",
916
+ "description": "Updates an active webhook endpoint. If the URL is changed, the old\nendpoint is deactivated and a new one is created (or an existing\ndeactivated endpoint with the new URL is reactivated).\n\n\nBody fields (JSON --body):\n domain_id string?\n enabled boolean\n rules object\n url string New webhook URL (triggers endpoint rotation)\n(* = required)",
917
917
  "flags": {
918
918
  "api-key": {
919
919
  "description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
@@ -967,7 +967,7 @@
967
967
  "filters:create-filter": {
968
968
  "aliases": [],
969
969
  "args": {},
970
- "description": "Creates a new whitelist or blocklist filter. Per-domain filters\nrequire a Pro plan. Patterns are stored as lowercase.\n",
970
+ "description": "Creates a new whitelist or blocklist filter. Per-domain filters\nrequire a Pro plan. Patterns are stored as lowercase.\n\n\nBody fields (JSON --body):\n * pattern string Email address or pattern to filter\n * type string\n domain_id string? Restrict filter to a specific domain (Pro plan required)\n(* = required)",
971
971
  "flags": {
972
972
  "api-key": {
973
973
  "description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
@@ -1085,7 +1085,7 @@
1085
1085
  "filters:update-filter": {
1086
1086
  "aliases": [],
1087
1087
  "args": {},
1088
- "description": "Toggle a filter's enabled state.",
1088
+ "description": "Toggle a filter's enabled state.\n\nBody fields (JSON --body):\n * enabled boolean\n(* = required)",
1089
1089
  "flags": {
1090
1090
  "api-key": {
1091
1091
  "description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
@@ -1136,10 +1136,64 @@
1136
1136
  "summary": "Update a filter rule",
1137
1137
  "enableJsonFlag": false
1138
1138
  },
1139
+ "sending:reply-to-email": {
1140
+ "aliases": [],
1141
+ "args": {},
1142
+ "description": "Sends an outbound reply to the inbound email identified by `id`.\nThreading headers (`In-Reply-To`, `References`), recipient\nderivation (Reply-To, then From, then bare sender), and the\n`Re:` subject prefix are all derived server-side from the\nstored inbound row. The request body carries only the message\nbody and optional `wait` flag; passing any header or recipient\noverride is rejected by the schema (`additionalProperties:\nfalse`).\n\nForwards through the same gates as `/send-mail`: the response\nstatus, error envelope, and `idempotent_replay` flag mirror\nthe send-mail contract verbatim.\n\n\nBody fields (JSON --body):\n body_html string HTML reply body. At least one of body_text or body_html is required.\n body_text string Plain-text reply body. At least one of body_text or body_html is required. ...\n from string Optional override for the reply's From header. Defaults to\n wait boolean When true, wait for the first downstream SMTP delivery outcome before retur...\n(* = required)",
1143
+ "flags": {
1144
+ "api-key": {
1145
+ "description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
1146
+ "env": "PRIMITIVE_API_KEY",
1147
+ "name": "api-key",
1148
+ "hasDynamicHelp": false,
1149
+ "multiple": false,
1150
+ "type": "option"
1151
+ },
1152
+ "base-url": {
1153
+ "description": "API base URL (defaults to PRIMITIVE_API_URL or production)",
1154
+ "env": "PRIMITIVE_API_URL",
1155
+ "name": "base-url",
1156
+ "hasDynamicHelp": false,
1157
+ "multiple": false,
1158
+ "type": "option"
1159
+ },
1160
+ "id": {
1161
+ "description": "Resource UUID",
1162
+ "name": "id",
1163
+ "required": true,
1164
+ "hasDynamicHelp": false,
1165
+ "multiple": false,
1166
+ "type": "option"
1167
+ },
1168
+ "body": {
1169
+ "description": "JSON request body",
1170
+ "name": "body",
1171
+ "hasDynamicHelp": false,
1172
+ "multiple": false,
1173
+ "type": "option"
1174
+ },
1175
+ "body-file": {
1176
+ "description": "Path to a JSON file used as the request body",
1177
+ "name": "body-file",
1178
+ "hasDynamicHelp": false,
1179
+ "multiple": false,
1180
+ "type": "option"
1181
+ }
1182
+ },
1183
+ "hasDynamicHelp": false,
1184
+ "hiddenAliases": [],
1185
+ "id": "sending:reply-to-email",
1186
+ "pluginAlias": "@primitivedotdev/sdk",
1187
+ "pluginName": "@primitivedotdev/sdk",
1188
+ "pluginType": "core",
1189
+ "strict": true,
1190
+ "summary": "Reply to an inbound email",
1191
+ "enableJsonFlag": false
1192
+ },
1139
1193
  "sending:send-email": {
1140
1194
  "aliases": [],
1141
1195
  "args": {},
1142
- "description": "Sends an outbound email through Primitive's outbound relay. By default\nthe request returns once the relay accepts the message for delivery.\nSet `wait: true` to wait for the first downstream SMTP delivery outcome.\n",
1196
+ "description": "Sends an outbound email through Primitive's outbound relay. By default\nthe request returns once the relay accepts the message for delivery.\nSet `wait: true` to wait for the first downstream SMTP delivery outcome.\n\n\nBody fields (JSON --body):\n * from string RFC 5322 From header. The sender domain must be a verified outbound domain ...\n * subject string Subject line for the outbound message\n * to string Recipient address. Recipient eligibility depends on your account's outbound...\n body_html string HTML message body. At least one of body_text or body_html is required. The ...\n body_text string Plain-text message body. At least one of body_text or body_html is required...\n in_reply_to string Message-ID of the direct parent email when sending a threaded reply.\n references array<string> Full ordered message-id chain for the thread.\n wait boolean When true, wait for the first downstream SMTP delivery outcome before retur...\n wait_timeout_ms integer Maximum time to wait for a delivery outcome when wait is true. Defaults to ...\n(* = required)",
1143
1197
  "flags": {
1144
1198
  "api-key": {
1145
1199
  "description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
@@ -1309,5 +1363,5 @@
1309
1363
  "enableJsonFlag": false
1310
1364
  }
1311
1365
  },
1312
- "version": "0.8.0"
1366
+ "version": "0.10.0"
1313
1367
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@primitivedotdev/sdk",
3
- "version": "0.8.0",
3
+ "version": "0.10.0",
4
4
  "description": "Official Primitive Node.js SDK — webhook, api, openapi, contract, and parser modules",
5
5
  "type": "module",
6
6
  "module": "./dist/index.js",
@@ -152,7 +152,7 @@
152
152
  "json-schema-to-typescript": "^15.0.4",
153
153
  "oclif": "^4.23.0",
154
154
  "shx": "^0.3.4",
155
- "tsdown": "^0.9.1",
155
+ "tsdown": "^0.21.10",
156
156
  "tsx": "^4.21.0",
157
157
  "typescript": "^5.7.2",
158
158
  "vite": "^8.0.8",
@@ -1,11 +0,0 @@
1
- //#region rolldown:runtime
2
- var __defProp = Object.defineProperty;
3
- var __export = (target, all) => {
4
- for (var name in all) __defProp(target, name, {
5
- get: all[name],
6
- enumerable: true
7
- });
8
- };
9
-
10
- //#endregion
11
- export { __export };