@primitivedotdev/sdk 0.14.0 → 0.15.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/dist/api/generated/sdk.gen.js +24 -1
- package/dist/api/index.d.ts +2 -2
- package/dist/{api-DH-YKt7a.js → api-DpATn7LQ.js} +24 -1
- package/dist/{index-Cts9r1sL.d.ts → index-DEY4h3MZ.d.ts} +93 -8
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/oclif/commands/emails-latest.js +15 -2
- package/dist/oclif/commands/send.js +1 -0
- package/dist/oclif/index.js +10 -1
- package/dist/openapi/index.d.ts +6 -0
- package/dist/openapi/openapi.generated.js +33 -47
- package/dist/openapi/operations.generated.js +2223 -18
- package/oclif.manifest.json +16 -14
- package/package.json +1 -1
package/oclif.manifest.json
CHANGED
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"required": true
|
|
52
52
|
}
|
|
53
53
|
},
|
|
54
|
-
"description": "Print the full operation manifest entry for a single API command, including the path, request schema, response schema, and per-field descriptions sourced from the OpenAPI spec.\n\n
|
|
54
|
+
"description": "Print the full operation manifest entry for a single API command, including the path, request schema, response schema, and per-field descriptions sourced from the OpenAPI spec.\n\n The manifest entry's `responseSchema` carries the inlined JSON Schema for the operation's 200/201 `data` envelope contents (`$ref`s resolved). Use it to look up what specific response fields mean. Examples:\n\n # Which of EmailDetail's sender-shaped fields is canonical?\n primitive describe emails:get-email | jq '.responseSchema.properties | keys'\n primitive describe emails:get-email | jq -r '.responseSchema.properties.from_email.description'\n\n # What does each value of SentEmailStatus mean?\n primitive describe sending:get-sent-email | jq -r '.responseSchema.properties.status.description'\n\n `requestSchema` is the same shape for the request body when one exists. For a single field across many operations at once, use `primitive list-operations | jq` instead.",
|
|
55
55
|
"examples": [
|
|
56
56
|
"<%= config.bin %> describe emails:get-email",
|
|
57
57
|
"<%= config.bin %> describe sending:send-email"
|
|
@@ -75,7 +75,8 @@
|
|
|
75
75
|
"<%= config.bin %> send --to alice@example.com --body 'Hi Alice!'",
|
|
76
76
|
"<%= config.bin %> send --to alice@example.com --from support@yourcompany.com --subject 'Quick question' --body 'Are you free Thursday?'",
|
|
77
77
|
"<%= config.bin %> send --to alice@example.com --html '<p>Hello!</p>'",
|
|
78
|
-
"<%= config.bin %> send --to alice@example.com --body 'Confirmed' --wait"
|
|
78
|
+
"<%= config.bin %> send --to alice@example.com --body 'Confirmed' --wait",
|
|
79
|
+
"<%= config.bin %> send --to inbox@your-managed-domain.primitive.email --body 'self-loop smoke test' --wait # any *.primitive.email address routes back to the sending account; useful for proving outbound + inbound work end-to-end"
|
|
79
80
|
],
|
|
80
81
|
"flags": {
|
|
81
82
|
"api-key": {
|
|
@@ -200,10 +201,11 @@
|
|
|
200
201
|
"emails:latest": {
|
|
201
202
|
"aliases": [],
|
|
202
203
|
"args": {},
|
|
203
|
-
"description": "Print the N most recent inbound emails as a one-line-per-row text table. Designed for quick triage and visual scanning. For programmatic access, use `primitive emails:list-emails` (full JSON envelope, cursor pagination, filters).\n\n The
|
|
204
|
+
"description": "Print the N most recent inbound emails as a one-line-per-row text table. Designed for quick triage and visual scanning. For programmatic access, use `primitive emails:list-emails` (full JSON envelope, cursor pagination, filters) or pass `--json` here for the same raw shape without pagination/filters.\n\n The default text table truncates each row's id to the first 8 characters for readability. Operations that take an id (`emails:get-email`, `emails:delete-email`, etc.) require the full UUID, so pass `--json` or use `emails:list-emails` when you need to feed an id back into another command.\n\n Output streams: the column header line is written to STDERR so the row data on STDOUT stays grep/awk-friendly. `--json` writes everything (including the envelope) to STDOUT.",
|
|
204
205
|
"examples": [
|
|
205
206
|
"<%= config.bin %> emails:latest",
|
|
206
|
-
"<%= config.bin %> emails:latest --limit 25"
|
|
207
|
+
"<%= config.bin %> emails:latest --limit 25",
|
|
208
|
+
"<%= config.bin %> emails:latest --json | jq '.data[0].id'"
|
|
207
209
|
],
|
|
208
210
|
"flags": {
|
|
209
211
|
"api-key": {
|
|
@@ -229,6 +231,12 @@
|
|
|
229
231
|
"hasDynamicHelp": false,
|
|
230
232
|
"multiple": false,
|
|
231
233
|
"type": "option"
|
|
234
|
+
},
|
|
235
|
+
"json": {
|
|
236
|
+
"description": "Print the raw response envelope (with full UUIDs and meta) as JSON on STDOUT instead of the text table. Useful for piping into `jq`, capturing ids for follow-up commands, or scripting.",
|
|
237
|
+
"name": "json",
|
|
238
|
+
"allowNo": false,
|
|
239
|
+
"type": "boolean"
|
|
232
240
|
}
|
|
233
241
|
},
|
|
234
242
|
"hasDynamicHelp": false,
|
|
@@ -813,7 +821,7 @@
|
|
|
813
821
|
"emails:get-email": {
|
|
814
822
|
"aliases": [],
|
|
815
823
|
"args": {},
|
|
816
|
-
"description": "
|
|
824
|
+
"description": "Returns the full record for an inbound email received at one\nof your verified domains, including the parsed text and HTML\nbodies, threading metadata, SMTP envelope detail, webhook\ndelivery state, and a `replies` array for any outbound sends\nrecorded as replies to this inbound.\n\nFor listing inbound emails (with cursor pagination, status\nand date filters, and free-text search), use\n`/emails`. Outbound (sent) email records are NOT returned\nhere; use `/sent-emails/{id}` for those.\n\nThe response carries four sender-shaped fields whose\nmeanings overlap. `from_email` is the canonical \"who sent\nthis\" field for most use cases (parsed bare address from\nthe `From:` header, with a `sender` fallback). `from_header`\nis the raw header including any display name. `sender` and\n`smtp_mail_from` both carry the SMTP envelope MAIL FROM\n(return-path) and are equal by construction; `sender` is\nthe older field name retained for compatibility. See\n`primitive describe emails:get-email | jq '.responseSchema.properties'`\nfor per-field detail.\n",
|
|
817
825
|
"flags": {
|
|
818
826
|
"api-key": {
|
|
819
827
|
"description": "Primitive API key (defaults to PRIMITIVE_API_KEY)",
|
|
@@ -847,7 +855,7 @@
|
|
|
847
855
|
"pluginName": "@primitivedotdev/sdk",
|
|
848
856
|
"pluginType": "core",
|
|
849
857
|
"strict": true,
|
|
850
|
-
"summary": "Get email
|
|
858
|
+
"summary": "Get inbound email by id",
|
|
851
859
|
"enableJsonFlag": false
|
|
852
860
|
},
|
|
853
861
|
"emails:list-emails": {
|
|
@@ -896,17 +904,11 @@
|
|
|
896
904
|
"type": "option"
|
|
897
905
|
},
|
|
898
906
|
"status": {
|
|
899
|
-
"description": "Filter by
|
|
907
|
+
"description": "Filter inbound rows by lifecycle status. See `EmailStatus`\nfor what each value means. Note that the webhook delivery\nstate is a SEPARATE lifecycle on the same row; filter by\n`webhook_status` semantics is not currently supported on\nthis endpoint.\n",
|
|
900
908
|
"name": "status",
|
|
901
909
|
"required": false,
|
|
902
910
|
"hasDynamicHelp": false,
|
|
903
911
|
"multiple": false,
|
|
904
|
-
"options": [
|
|
905
|
-
"pending",
|
|
906
|
-
"accepted",
|
|
907
|
-
"completed",
|
|
908
|
-
"rejected"
|
|
909
|
-
],
|
|
910
912
|
"type": "option"
|
|
911
913
|
},
|
|
912
914
|
"search": {
|
|
@@ -1908,5 +1910,5 @@
|
|
|
1908
1910
|
"enableJsonFlag": false
|
|
1909
1911
|
}
|
|
1910
1912
|
},
|
|
1911
|
-
"version": "0.
|
|
1913
|
+
"version": "0.15.0"
|
|
1912
1914
|
}
|