@pidgeon-ai/cli 1.36.1 → 1.37.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/{chunk-FA77SSPH.js → chunk-RWZQSI67.js} +274 -17
- package/dist/chunk-RWZQSI67.js.map +1 -0
- package/dist/{chunk-W5VS5RM7.js → chunk-UBA2RP6N.js} +257 -1
- package/dist/{chunk-W5VS5RM7.js.map → chunk-UBA2RP6N.js.map} +1 -1
- package/dist/cli.js +2 -2
- package/dist/commands.gen.js +1 -1
- package/dist/index.js +2 -2
- package/package.json +2 -2
- package/dist/chunk-FA77SSPH.js.map +0 -1
|
@@ -1901,6 +1901,236 @@ var COMMANDS = [
|
|
|
1901
1901
|
}
|
|
1902
1902
|
]
|
|
1903
1903
|
},
|
|
1904
|
+
{
|
|
1905
|
+
"group": "grants",
|
|
1906
|
+
"name": "create",
|
|
1907
|
+
"operationId": "grantsCreate",
|
|
1908
|
+
"method": "POST",
|
|
1909
|
+
"path": "/grants",
|
|
1910
|
+
"summary": "Ask for a grant",
|
|
1911
|
+
"flags": [
|
|
1912
|
+
{
|
|
1913
|
+
"name": "idempotency-key",
|
|
1914
|
+
"kind": "string",
|
|
1915
|
+
"required": false,
|
|
1916
|
+
"where": "header",
|
|
1917
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
1918
|
+
"header": "Idempotency-Key"
|
|
1919
|
+
},
|
|
1920
|
+
{
|
|
1921
|
+
"name": "identity_id",
|
|
1922
|
+
"kind": "string",
|
|
1923
|
+
"required": true,
|
|
1924
|
+
"where": "body",
|
|
1925
|
+
"describe": "The agent\u2019s address."
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
"name": "template",
|
|
1929
|
+
"kind": "string",
|
|
1930
|
+
"required": true,
|
|
1931
|
+
"where": "body",
|
|
1932
|
+
"describe": "A template\u2019s `name` or `id`."
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
"name": "grantor",
|
|
1936
|
+
"kind": "json",
|
|
1937
|
+
"required": true,
|
|
1938
|
+
"where": "body",
|
|
1939
|
+
"describe": "`{ email }` asks that person on a consent page, and the answer carries `consent_url` to send them to. `{ organisation: true }` grants at once as this account\u2019s verified domain, and needs a key with admin on the account."
|
|
1940
|
+
},
|
|
1941
|
+
{
|
|
1942
|
+
"name": "subject_id",
|
|
1943
|
+
"kind": "string",
|
|
1944
|
+
"required": true,
|
|
1945
|
+
"where": "body",
|
|
1946
|
+
"describe": "The customer, account or order it is for, in the recipient\u2019s own terms."
|
|
1947
|
+
},
|
|
1948
|
+
{
|
|
1949
|
+
"name": "expires_at",
|
|
1950
|
+
"kind": "string",
|
|
1951
|
+
"required": false,
|
|
1952
|
+
"where": "body",
|
|
1953
|
+
"describe": "When it ends. The template\u2019s `max_days` from now when omitted, and at most that."
|
|
1954
|
+
}
|
|
1955
|
+
]
|
|
1956
|
+
},
|
|
1957
|
+
{
|
|
1958
|
+
"group": "grants",
|
|
1959
|
+
"name": "get",
|
|
1960
|
+
"operationId": "grantsGet",
|
|
1961
|
+
"method": "GET",
|
|
1962
|
+
"path": "/grants/{id}",
|
|
1963
|
+
"summary": "Read a grant",
|
|
1964
|
+
"flags": [
|
|
1965
|
+
{
|
|
1966
|
+
"name": "id",
|
|
1967
|
+
"kind": "string",
|
|
1968
|
+
"required": true,
|
|
1969
|
+
"where": "path"
|
|
1970
|
+
}
|
|
1971
|
+
]
|
|
1972
|
+
},
|
|
1973
|
+
{
|
|
1974
|
+
"group": "grants",
|
|
1975
|
+
"name": "list",
|
|
1976
|
+
"operationId": "grantsList",
|
|
1977
|
+
"method": "GET",
|
|
1978
|
+
"path": "/grants",
|
|
1979
|
+
"summary": "List an address\u2019s grants",
|
|
1980
|
+
"flags": [
|
|
1981
|
+
{
|
|
1982
|
+
"name": "identity_id",
|
|
1983
|
+
"kind": "string",
|
|
1984
|
+
"required": true,
|
|
1985
|
+
"where": "query"
|
|
1986
|
+
}
|
|
1987
|
+
]
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
"group": "grants",
|
|
1991
|
+
"name": "revoke",
|
|
1992
|
+
"operationId": "grantsRevoke",
|
|
1993
|
+
"method": "DELETE",
|
|
1994
|
+
"path": "/grants/{id}",
|
|
1995
|
+
"summary": "Revoke a grant",
|
|
1996
|
+
"flags": [
|
|
1997
|
+
{
|
|
1998
|
+
"name": "id",
|
|
1999
|
+
"kind": "string",
|
|
2000
|
+
"required": true,
|
|
2001
|
+
"where": "path"
|
|
2002
|
+
},
|
|
2003
|
+
{
|
|
2004
|
+
"name": "idempotency-key",
|
|
2005
|
+
"kind": "string",
|
|
2006
|
+
"required": false,
|
|
2007
|
+
"where": "header",
|
|
2008
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2009
|
+
"header": "Idempotency-Key"
|
|
2010
|
+
}
|
|
2011
|
+
]
|
|
2012
|
+
},
|
|
2013
|
+
{
|
|
2014
|
+
"group": "grants",
|
|
2015
|
+
"name": "status",
|
|
2016
|
+
"operationId": "grantsStatus",
|
|
2017
|
+
"method": "GET",
|
|
2018
|
+
"path": "/grants/{id}/status",
|
|
2019
|
+
"summary": "Whether a grant still holds",
|
|
2020
|
+
"flags": [
|
|
2021
|
+
{
|
|
2022
|
+
"name": "id",
|
|
2023
|
+
"kind": "string",
|
|
2024
|
+
"required": true,
|
|
2025
|
+
"where": "path"
|
|
2026
|
+
}
|
|
2027
|
+
]
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
"group": "grants",
|
|
2031
|
+
"name": "templatesCreate",
|
|
2032
|
+
"operationId": "grantsTemplatesCreate",
|
|
2033
|
+
"method": "POST",
|
|
2034
|
+
"path": "/grant-templates",
|
|
2035
|
+
"summary": "Define a grant template",
|
|
2036
|
+
"flags": [
|
|
2037
|
+
{
|
|
2038
|
+
"name": "idempotency-key",
|
|
2039
|
+
"kind": "string",
|
|
2040
|
+
"required": false,
|
|
2041
|
+
"where": "header",
|
|
2042
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2043
|
+
"header": "Idempotency-Key"
|
|
2044
|
+
},
|
|
2045
|
+
{
|
|
2046
|
+
"name": "name",
|
|
2047
|
+
"kind": "string",
|
|
2048
|
+
"required": true,
|
|
2049
|
+
"where": "body",
|
|
2050
|
+
"describe": "The scope\u2019s stable name, for software: `bookings.change`."
|
|
2051
|
+
},
|
|
2052
|
+
{
|
|
2053
|
+
"name": "label",
|
|
2054
|
+
"kind": "string",
|
|
2055
|
+
"required": true,
|
|
2056
|
+
"where": "body",
|
|
2057
|
+
"describe": 'What the agent may do, as the consent screen says it after "wants to": `manage your bookings`.'
|
|
2058
|
+
},
|
|
2059
|
+
{
|
|
2060
|
+
"name": "audience",
|
|
2061
|
+
"kind": "string",
|
|
2062
|
+
"required": false,
|
|
2063
|
+
"where": "body",
|
|
2064
|
+
"describe": "The domain the agent will act with. A grant reaching anywhere else does not hold."
|
|
2065
|
+
},
|
|
2066
|
+
{
|
|
2067
|
+
"name": "audience_name",
|
|
2068
|
+
"kind": "string",
|
|
2069
|
+
"required": false,
|
|
2070
|
+
"where": "body",
|
|
2071
|
+
"describe": "How people call it: `Delta`."
|
|
2072
|
+
},
|
|
2073
|
+
{
|
|
2074
|
+
"name": "subject_type",
|
|
2075
|
+
"kind": "string",
|
|
2076
|
+
"choices": [
|
|
2077
|
+
"customer",
|
|
2078
|
+
"account",
|
|
2079
|
+
"order"
|
|
2080
|
+
],
|
|
2081
|
+
"required": true,
|
|
2082
|
+
"where": "body",
|
|
2083
|
+
"describe": "What a grant is for: a customer, an account or an order."
|
|
2084
|
+
},
|
|
2085
|
+
{
|
|
2086
|
+
"name": "limit",
|
|
2087
|
+
"kind": "json",
|
|
2088
|
+
"required": false,
|
|
2089
|
+
"where": "body",
|
|
2090
|
+
"describe": 'A ceiling the grant states, such as "refunds up to $100".'
|
|
2091
|
+
},
|
|
2092
|
+
{
|
|
2093
|
+
"name": "max_days",
|
|
2094
|
+
"kind": "number",
|
|
2095
|
+
"required": false,
|
|
2096
|
+
"where": "body",
|
|
2097
|
+
"describe": "The longest a grant from this template may last. 90 when omitted."
|
|
2098
|
+
}
|
|
2099
|
+
]
|
|
2100
|
+
},
|
|
2101
|
+
{
|
|
2102
|
+
"group": "grants",
|
|
2103
|
+
"name": "templatesDelete",
|
|
2104
|
+
"operationId": "grantsTemplatesDelete",
|
|
2105
|
+
"method": "DELETE",
|
|
2106
|
+
"path": "/grant-templates/{id}",
|
|
2107
|
+
"summary": "Retire a grant template",
|
|
2108
|
+
"flags": [
|
|
2109
|
+
{
|
|
2110
|
+
"name": "id",
|
|
2111
|
+
"kind": "string",
|
|
2112
|
+
"required": true,
|
|
2113
|
+
"where": "path"
|
|
2114
|
+
},
|
|
2115
|
+
{
|
|
2116
|
+
"name": "idempotency-key",
|
|
2117
|
+
"kind": "string",
|
|
2118
|
+
"required": false,
|
|
2119
|
+
"where": "header",
|
|
2120
|
+
"describe": "Any string unique to this attempt, reused on its retries. A repeat with the same key and the same request returns the first answer with `Idempotent-Replay: true` and does nothing \u2014 no second email. The same key with a different request is a `409`. Kept for 24 hours; a failure is not kept, so a retry after one runs.",
|
|
2121
|
+
"header": "Idempotency-Key"
|
|
2122
|
+
}
|
|
2123
|
+
]
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
"group": "grants",
|
|
2127
|
+
"name": "templatesList",
|
|
2128
|
+
"operationId": "grantsTemplatesList",
|
|
2129
|
+
"method": "GET",
|
|
2130
|
+
"path": "/grant-templates",
|
|
2131
|
+
"summary": "List grant templates",
|
|
2132
|
+
"flags": []
|
|
2133
|
+
},
|
|
1904
2134
|
{
|
|
1905
2135
|
"group": "identities",
|
|
1906
2136
|
"name": "accessCreate",
|
|
@@ -3352,6 +3582,12 @@ var COMMANDS = [
|
|
|
3352
3582
|
"where": "body",
|
|
3353
3583
|
"describe": "Ids from `POST /attachments`, uploaded before the message that carries them. Up to 20."
|
|
3354
3584
|
},
|
|
3585
|
+
{
|
|
3586
|
+
"name": "grant_ids",
|
|
3587
|
+
"kind": "list",
|
|
3588
|
+
"required": false,
|
|
3589
|
+
"where": "body"
|
|
3590
|
+
},
|
|
3355
3591
|
{
|
|
3356
3592
|
"name": "send_at",
|
|
3357
3593
|
"kind": "string",
|
|
@@ -3918,6 +4154,12 @@ var COMMANDS = [
|
|
|
3918
4154
|
"where": "body",
|
|
3919
4155
|
"describe": "Ids from `POST /attachments`, uploaded before the message that carries them. Up to 20."
|
|
3920
4156
|
},
|
|
4157
|
+
{
|
|
4158
|
+
"name": "grant_ids",
|
|
4159
|
+
"kind": "list",
|
|
4160
|
+
"required": false,
|
|
4161
|
+
"where": "body"
|
|
4162
|
+
},
|
|
3921
4163
|
{
|
|
3922
4164
|
"name": "send_at",
|
|
3923
4165
|
"kind": "string",
|
|
@@ -4585,6 +4827,20 @@ var COMMANDS = [
|
|
|
4585
4827
|
"kind": "string",
|
|
4586
4828
|
"required": false,
|
|
4587
4829
|
"where": "body"
|
|
4830
|
+
},
|
|
4831
|
+
{
|
|
4832
|
+
"name": "grants",
|
|
4833
|
+
"kind": "list",
|
|
4834
|
+
"required": false,
|
|
4835
|
+
"where": "body",
|
|
4836
|
+
"describe": 'Grants sent beside the message or request rather than in a `Post-Grant` header, such as an MCP call\u2019s `_meta["ai.pidgeon.post/grant"]`: compact JWS.'
|
|
4837
|
+
},
|
|
4838
|
+
{
|
|
4839
|
+
"name": "subject",
|
|
4840
|
+
"kind": "string",
|
|
4841
|
+
"required": false,
|
|
4842
|
+
"where": "body",
|
|
4843
|
+
"describe": "The customer, account or order you are about to act on. A grant for another one answers `wrong_subject`."
|
|
4588
4844
|
}
|
|
4589
4845
|
]
|
|
4590
4846
|
},
|
|
@@ -4846,4 +5102,4 @@ export {
|
|
|
4846
5102
|
__export,
|
|
4847
5103
|
COMMANDS
|
|
4848
5104
|
};
|
|
4849
|
-
//# sourceMappingURL=chunk-
|
|
5105
|
+
//# sourceMappingURL=chunk-UBA2RP6N.js.map
|