primitive 1.25.0 → 1.26.1
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/oclif/index.js +46 -3
- package/package.json +1 -1
package/dist/oclif/index.js
CHANGED
|
@@ -5110,6 +5110,22 @@ const openapiDocument = {
|
|
|
5110
5110
|
"format": "date-time"
|
|
5111
5111
|
},
|
|
5112
5112
|
"description": "Inclusive upper bound on `created_at`."
|
|
5113
|
+
},
|
|
5114
|
+
{
|
|
5115
|
+
"name": "q",
|
|
5116
|
+
"in": "query",
|
|
5117
|
+
"schema": { "type": "string" },
|
|
5118
|
+
"description": "Literal case-insensitive substring filter over the\nsubject, the retained plain-text body, the sender, and\nthe To, CC and BCC recipients of each send. Matched\nverbatim: `%`, `_` and `\\` are ordinary characters and\ndo not act as wildcards, so a search for `10%` finds the\nliteral string `10%` rather than everything beginning\n`10`.\n\nLeading and trailing whitespace is trimmed, and the\nresult must be 3 to 500 UTF-16 code units. The\nthree-character minimum is the search index's: a shorter\npattern cannot be answered from the index and would scan\nthe whole mailbox, so it is rejected rather than served\nas a request that times out.\n\nThose bounds are deliberately NOT declared as\n`minLength`/`maxLength`. Both count Unicode code points\non the value as sent, while the server trims first and\ncounts UTF-16 code units, and the two disagree in both\ndirections: two astral characters are 2 code points but\n4 code units, so a declared minimum would reject a query\nthe server accepts, and `\"<499 chars> \"` is 500 code\npoints before trimming and 499 after, so a declared\nmaximum would reject another. Declaring a bound the\nserver does not enforce is worse than declaring none,\nbecause the client refuses locally and the caller never\nlearns why. The server validates; a violation is a `400`.\n\nRecipients are matched one address at a time rather than\nagainst the serialized recipient list, so a query\ncontaining a quote, comma or bracket matches only where\nthat character occurs inside an address. Bodies are\nsearched only where the plain-text body was retained;\nHTML-only bodies are not searched.\n\nNot served by every deployment. Where sent-mail search\nis not enabled the endpoint answers `503` with code\n`sent_mail_search_unavailable`, which callers should\ntreat as a capability answer and fall back on rather\nthan as an outage.\n"
|
|
5119
|
+
},
|
|
5120
|
+
{
|
|
5121
|
+
"name": "from",
|
|
5122
|
+
"in": "query",
|
|
5123
|
+
"schema": {
|
|
5124
|
+
"type": "string",
|
|
5125
|
+
"format": "email",
|
|
5126
|
+
"maxLength": 320
|
|
5127
|
+
},
|
|
5128
|
+
"description": "Exact case-insensitive sender mailbox filter. Returns\nonly sends whose from address equals this value; it is\nnot a substring match, so a partial mailbox matches\nnothing. Use `q` to search sender text loosely.\nCombines with every other filter, and unlike `q` it is\nserved by every deployment.\n"
|
|
5113
5129
|
}
|
|
5114
5130
|
],
|
|
5115
5131
|
"responses": {
|
|
@@ -5124,7 +5140,20 @@ const openapiDocument = {
|
|
|
5124
5140
|
}] } } }
|
|
5125
5141
|
},
|
|
5126
5142
|
"400": { "$ref": "#/components/responses/ValidationError" },
|
|
5127
|
-
"401": { "$ref": "#/components/responses/Unauthorized" }
|
|
5143
|
+
"401": { "$ref": "#/components/responses/Unauthorized" },
|
|
5144
|
+
"503": {
|
|
5145
|
+
"description": "Sent-mail text search is not enabled in this deployment,\nso `q` cannot be served. A capability answer, not an\noutage: it will not clear on retry, and the same request\nwithout `q` succeeds. Fall back to whatever local\nmatching the caller has. Distinguished from the generic\n503 by its `sent_mail_search_unavailable` code.\n",
|
|
5146
|
+
"content": { "application/json": {
|
|
5147
|
+
"schema": { "$ref": "#/components/schemas/ErrorResponse" },
|
|
5148
|
+
"example": {
|
|
5149
|
+
"success": false,
|
|
5150
|
+
"error": {
|
|
5151
|
+
"code": "sent_mail_search_unavailable",
|
|
5152
|
+
"message": "Sent-mail text search (`q`) is not enabled in this environment."
|
|
5153
|
+
}
|
|
5154
|
+
}
|
|
5155
|
+
} }
|
|
5156
|
+
}
|
|
5128
5157
|
}
|
|
5129
5158
|
} },
|
|
5130
5159
|
"/sent-emails/{id}": {
|
|
@@ -24914,6 +24943,20 @@ const operationManifest = [
|
|
|
24914
24943
|
"name": "date_to",
|
|
24915
24944
|
"required": false,
|
|
24916
24945
|
"type": "string"
|
|
24946
|
+
},
|
|
24947
|
+
{
|
|
24948
|
+
"description": "Literal case-insensitive substring filter over the\nsubject, the retained plain-text body, the sender, and\nthe To, CC and BCC recipients of each send. Matched\nverbatim: `%`, `_` and `\\` are ordinary characters and\ndo not act as wildcards, so a search for `10%` finds the\nliteral string `10%` rather than everything beginning\n`10`.\n\nLeading and trailing whitespace is trimmed, and the\nresult must be 3 to 500 UTF-16 code units. The\nthree-character minimum is the search index's: a shorter\npattern cannot be answered from the index and would scan\nthe whole mailbox, so it is rejected rather than served\nas a request that times out.\n\nThose bounds are deliberately NOT declared as\n`minLength`/`maxLength`. Both count Unicode code points\non the value as sent, while the server trims first and\ncounts UTF-16 code units, and the two disagree in both\ndirections: two astral characters are 2 code points but\n4 code units, so a declared minimum would reject a query\nthe server accepts, and `\"<499 chars> \"` is 500 code\npoints before trimming and 499 after, so a declared\nmaximum would reject another. Declaring a bound the\nserver does not enforce is worse than declaring none,\nbecause the client refuses locally and the caller never\nlearns why. The server validates; a violation is a `400`.\n\nRecipients are matched one address at a time rather than\nagainst the serialized recipient list, so a query\ncontaining a quote, comma or bracket matches only where\nthat character occurs inside an address. Bodies are\nsearched only where the plain-text body was retained;\nHTML-only bodies are not searched.\n\nNot served by every deployment. Where sent-mail search\nis not enabled the endpoint answers `503` with code\n`sent_mail_search_unavailable`, which callers should\ntreat as a capability answer and fall back on rather\nthan as an outage.\n",
|
|
24949
|
+
"enum": null,
|
|
24950
|
+
"name": "q",
|
|
24951
|
+
"required": false,
|
|
24952
|
+
"type": "string"
|
|
24953
|
+
},
|
|
24954
|
+
{
|
|
24955
|
+
"description": "Exact case-insensitive sender mailbox filter. Returns\nonly sends whose from address equals this value; it is\nnot a substring match, so a partial mailbox matches\nnothing. Use `q` to search sender text loosely.\nCombines with every other filter, and unlike `q` it is\nserved by every deployment.\n",
|
|
24956
|
+
"enum": null,
|
|
24957
|
+
"name": "from",
|
|
24958
|
+
"required": false,
|
|
24959
|
+
"type": "string"
|
|
24917
24960
|
}
|
|
24918
24961
|
],
|
|
24919
24962
|
"requestSchema": null,
|
|
@@ -32071,8 +32114,8 @@ const PRIMITIVE_TEAM_AUTHOR = {
|
|
|
32071
32114
|
name: "Primitive Team",
|
|
32072
32115
|
url: "https://primitive.dev"
|
|
32073
32116
|
};
|
|
32074
|
-
const SDK_VERSION_RANGE = "^1.
|
|
32075
|
-
const CLI_VERSION_RANGE = "^1.
|
|
32117
|
+
const SDK_VERSION_RANGE = "^1.26.1";
|
|
32118
|
+
const CLI_VERSION_RANGE = "^1.26.1";
|
|
32076
32119
|
const ESBUILD_VERSION_RANGE = "^0.27.0";
|
|
32077
32120
|
function renderHandler() {
|
|
32078
32121
|
return `// env.PRIMITIVE_API_KEY, env.PRIMITIVE_WEBHOOK_SECRET, and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "primitive",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.26.1",
|
|
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,
|