Skip to content

Commit

Permalink
fix(metrics): add missing request model id attribute (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
ewanharris authored Jul 11, 2024
2 parents 565cea3 + 56aa225 commit 7575bde
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -760,6 +760,7 @@ export const OpenFgaApiFp = function(configuration: Configuration, credentials:
return createRequestFunction(localVarAxiosArgs, globalAxios, configuration, credentials, {
[attributeNames.requestMethod]: "check",
[attributeNames.requestStoreId]: storeId,
[attributeNames.requestModelId]: body.authorization_model_id,
[attributeNames.user]: body.tuple_key.user
});
},
Expand Down Expand Up @@ -802,6 +803,7 @@ export const OpenFgaApiFp = function(configuration: Configuration, credentials:
const localVarAxiosArgs = await localVarAxiosParamCreator.expand(storeId, body, options);
return createRequestFunction(localVarAxiosArgs, globalAxios, configuration, credentials, {
[attributeNames.requestMethod]: "expand",
[attributeNames.requestModelId]: body.authorization_model_id,
[attributeNames.requestStoreId]: storeId,
});
},
Expand Down Expand Up @@ -832,6 +834,7 @@ export const OpenFgaApiFp = function(configuration: Configuration, credentials:
return createRequestFunction(localVarAxiosArgs, globalAxios, configuration, credentials, {
[attributeNames.requestMethod]: "listObjects",
[attributeNames.requestStoreId]: storeId,
[attributeNames.requestModelId]: body.authorization_model_id,
[attributeNames.user]: body.user
});
},
Expand Down Expand Up @@ -862,6 +865,7 @@ export const OpenFgaApiFp = function(configuration: Configuration, credentials:
return createRequestFunction(localVarAxiosArgs, globalAxios, configuration, credentials, {
[attributeNames.requestMethod]: "listUsers",
[attributeNames.requestStoreId]: storeId,
[attributeNames.requestModelId]: body.authorization_model_id,
});
},
/**
Expand Down Expand Up @@ -892,6 +896,7 @@ export const OpenFgaApiFp = function(configuration: Configuration, credentials:
return createRequestFunction(localVarAxiosArgs, globalAxios, configuration, credentials, {
[attributeNames.requestMethod]: "readAssertions",
[attributeNames.requestStoreId]: storeId,
[attributeNames.requestModelId]: authorizationModelId,
});
},
/**
Expand Down Expand Up @@ -955,6 +960,7 @@ export const OpenFgaApiFp = function(configuration: Configuration, credentials:
return createRequestFunction(localVarAxiosArgs, globalAxios, configuration, credentials, {
[attributeNames.requestMethod]: "write",
[attributeNames.requestStoreId]: storeId,
[attributeNames.requestModelId]: body.authorization_model_id,
});
},
/**
Expand All @@ -971,6 +977,7 @@ export const OpenFgaApiFp = function(configuration: Configuration, credentials:
return createRequestFunction(localVarAxiosArgs, globalAxios, configuration, credentials, {
[attributeNames.requestMethod]: "writeAssertions",
[attributeNames.requestStoreId]: storeId,
[attributeNames.requestModelId]: authorizationModelId,
});
},
/**
Expand Down

0 comments on commit 7575bde

Please sign in to comment.