Add last used at to personal api key

Signed-off-by: Bryan Frimin <bryan@getprobo.com>
This commit is contained in:
Bryan Frimin
2026-01-05 16:46:13 +01:00
parent cf72beaba4
commit 71263367f6
11 changed files with 108 additions and 20 deletions

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<76057cc6f78c32b15c6e580c7a0c30da>>
* @generated SignedSource<<ee849e769490a70fd3d28e8f809245c2>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -124,6 +124,13 @@ return {
"name": "expiresAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lastUsedAt",
"storageKey": null
},
{
"alias": null,
"args": null,
@@ -187,12 +194,12 @@ return {
]
},
"params": {
"cacheID": "cf6f6f621bdcb1bd24a2dd94f856729f",
"cacheID": "4db28039c0fc6e587959d14faf5f3045",
"id": null,
"metadata": {},
"name": "APIKeysPageQuery",
"operationKind": "query",
"text": "query APIKeysPageQuery {\n viewer {\n ...PersonalAPIKeyListFragment\n id\n }\n}\n\nfragment PersonalAPIKeyListFragment on Identity {\n id\n personalAPIKeys(first: 1000) {\n edges {\n node {\n id\n ...PersonalAPIKeyRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment PersonalAPIKeyRowFragment on PersonalAPIKey {\n id\n name\n createdAt\n expiresAt\n}\n"
"text": "query APIKeysPageQuery {\n viewer {\n ...PersonalAPIKeyListFragment\n id\n }\n}\n\nfragment PersonalAPIKeyListFragment on Identity {\n id\n personalAPIKeys(first: 1000) {\n edges {\n node {\n id\n ...PersonalAPIKeyRowFragment\n __typename\n }\n cursor\n }\n pageInfo {\n endCursor\n hasNextPage\n }\n }\n}\n\nfragment PersonalAPIKeyRowFragment on PersonalAPIKey {\n id\n name\n createdAt\n expiresAt\n lastUsedAt\n}\n"
}
};
})();

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<d4d4692688621656de57fda5884703dd>>
* @generated SignedSource<<5899ebfb2c67ad34f132f53990b54136>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -14,6 +14,7 @@ export type PersonalAPIKeyRowFragment$data = {
readonly createdAt: string;
readonly expiresAt: string;
readonly id: string;
readonly lastUsedAt: string | null | undefined;
readonly name: string;
readonly token?: string | null | undefined;
readonly " $fragmentType": "PersonalAPIKeyRowFragment";
@@ -77,6 +78,13 @@ const node: ReaderFragment = {
"name": "expiresAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lastUsedAt",
"storageKey": null
},
{
"condition": "includeToken",
"kind": "Condition",
@@ -96,6 +104,6 @@ const node: ReaderFragment = {
"abstractKey": null
};
(node as any).hash = "d17db443fa203ee5f9c7d0f4576295f0";
(node as any).hash = "919daef49b4889be6801516d93f803cf";
export default node;

View File

@@ -1,5 +1,5 @@
/**
* @generated SignedSource<<2d413d4e4cf2528a45ff243c0fa733bb>>
* @generated SignedSource<<3f5cf991e78b2be0165979f65ecf845d>>
* @lightSyntaxTransform
* @nogrep
*/
@@ -133,6 +133,13 @@ return {
"name": "expiresAt",
"storageKey": null
},
{
"alias": null,
"args": null,
"kind": "ScalarField",
"name": "lastUsedAt",
"storageKey": null
},
{
"condition": "includeToken",
"kind": "Condition",
@@ -157,16 +164,16 @@ return {
]
},
"params": {
"cacheID": "b4732244e28d5847baaa5520a95a4cfb",
"cacheID": "f9dbf41761006cde825eb68290509c75",
"id": null,
"metadata": {},
"name": "PersonalAPIKeyRowRefetchQuery",
"operationKind": "query",
"text": "query PersonalAPIKeyRowRefetchQuery(\n $includeToken: Boolean = false\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...PersonalAPIKeyRowFragment_2T7Twf\n id\n }\n}\n\nfragment PersonalAPIKeyRowFragment_2T7Twf on PersonalAPIKey {\n id\n name\n createdAt\n expiresAt\n token @include(if: $includeToken)\n}\n"
"text": "query PersonalAPIKeyRowRefetchQuery(\n $includeToken: Boolean = false\n $id: ID!\n) {\n node(id: $id) {\n __typename\n ...PersonalAPIKeyRowFragment_2T7Twf\n id\n }\n}\n\nfragment PersonalAPIKeyRowFragment_2T7Twf on PersonalAPIKey {\n id\n name\n createdAt\n expiresAt\n lastUsedAt\n token @include(if: $includeToken)\n}\n"
}
};
})();
(node as any).hash = "d17db443fa203ee5f9c7d0f4576295f0";
(node as any).hash = "919daef49b4889be6801516d93f803cf";
export default node;