naftiko: 1.0.0-alpha2 info: label: Microsoft Graph Policies — policies.tokenLifetimePolicy description: 'Microsoft Graph Policies — policies.tokenLifetimePolicy. 9 operations. Lead operation: Microsoft Graph List tokenLifetimePolicies. Self-contained Naftiko capability covering one Microsoft Graph business surface.' tags: - Microsoft Graph - policies.tokenLifetimePolicy created: '2026-05-19' modified: '2026-05-19' binds: - namespace: env keys: MICROSOFT_GRAPH_API_KEY: MICROSOFT_GRAPH_API_KEY capability: consumes: - type: http namespace: policies-policies-tokenlifetimepolicy baseUri: '' description: Microsoft Graph Policies — policies.tokenLifetimePolicy business capability. Self-contained, no shared references. resources: - name: policies-tokenLifetimePolicies path: /policies/tokenLifetimePolicies operations: - name: policieslisttokenlifetimepolicies method: GET description: Microsoft Graph List tokenLifetimePolicies outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $orderby in: query type: array description: Order items by property values - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: policiescreatetokenlifetimepolicies method: POST description: Microsoft Graph Create tokenLifetimePolicy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: policies-tokenLifetimePolicies-$count path: /policies/tokenLifetimePolicies/$count operations: - name: policiestokenlifetimepoliciesgetcount12df method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: policies-tokenLifetimePolicies-tokenLifetimePolicy-id path: /policies/tokenLifetimePolicies/{tokenLifetimePolicy-id} operations: - name: policiesgettokenlifetimepolicies method: GET description: Microsoft Graph Get tokenLifetimePolicy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: policiesupdatetokenlifetimepolicies method: PATCH description: Microsoft Graph Update tokenlifetimepolicy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: body in: body type: object description: Request body (JSON). required: true - name: policiesdeletetokenlifetimepolicies method: DELETE description: Microsoft Graph Delete tokenLifetimePolicy outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: If-Match in: header type: string description: ETag - name: policies-tokenLifetimePolicies-tokenLifetimePolicy-id-appliesTo path: /policies/tokenLifetimePolicies/{tokenLifetimePolicy-id}/appliesTo operations: - name: policiestokenlifetimepolicieslistappliesto method: GET description: Microsoft Graph List appliesTo outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $orderby in: query type: array description: Order items by property values - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities - name: policies-tokenLifetimePolicies-tokenLifetimePolicy-id-appliesTo-$count path: /policies/tokenLifetimePolicies/{tokenLifetimePolicy-id}/appliesTo/$count operations: - name: policiestokenlifetimepoliciesappliestogetcount3209 method: GET description: Microsoft Graph Get the number of the resource outputRawFormat: json outputParameters: - name: result type: object value: $. - name: policies-tokenLifetimePolicies-tokenLifetimePolicy-id-appliesTo-directoryObject- path: /policies/tokenLifetimePolicies/{tokenLifetimePolicy-id}/appliesTo/{directoryObject-id} operations: - name: policiestokenlifetimepoliciesgetappliesto method: GET description: Microsoft Graph Get appliesTo from policies outputRawFormat: json outputParameters: - name: result type: object value: $. inputParameters: - name: $select in: query type: array description: Select properties to be returned - name: $expand in: query type: array description: Expand related entities exposes: - type: rest namespace: policies-policies-tokenlifetimepolicy-rest port: 8080 description: REST adapter for Microsoft Graph Policies — policies.tokenLifetimePolicy. One Spectral-compliant resource per consumed operation, prefixed with /v1. resources: - path: /v1/policies/tokenlifetimepolicies name: policies-tokenlifetimepolicies description: REST surface for policies-tokenLifetimePolicies. operations: - method: GET name: policieslisttokenlifetimepolicies description: Microsoft Graph List tokenLifetimePolicies call: policies-policies-tokenlifetimepolicy.policieslisttokenlifetimepolicies with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: POST name: policiescreatetokenlifetimepolicies description: Microsoft Graph Create tokenLifetimePolicy call: policies-policies-tokenlifetimepolicy.policiescreatetokenlifetimepolicies with: body: rest.body outputParameters: - type: object mapping: $. - path: /v1/policies/tokenlifetimepolicies/count name: policies-tokenlifetimepolicies-count description: REST surface for policies-tokenLifetimePolicies-$count. operations: - method: GET name: policiestokenlifetimepoliciesgetcount12df description: Microsoft Graph Get the number of the resource call: policies-policies-tokenlifetimepolicy.policiestokenlifetimepoliciesgetcount12df outputParameters: - type: object mapping: $. - path: /v1/policies/tokenlifetimepolicies/{tokenlifetimepolicy-id} name: policies-tokenlifetimepolicies-tokenlifetimepolicy-id description: REST surface for policies-tokenLifetimePolicies-tokenLifetimePolicy-id. operations: - method: GET name: policiesgettokenlifetimepolicies description: Microsoft Graph Get tokenLifetimePolicy call: policies-policies-tokenlifetimepolicy.policiesgettokenlifetimepolicies with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - method: PATCH name: policiesupdatetokenlifetimepolicies description: Microsoft Graph Update tokenlifetimepolicy call: policies-policies-tokenlifetimepolicy.policiesupdatetokenlifetimepolicies with: body: rest.body outputParameters: - type: object mapping: $. - method: DELETE name: policiesdeletetokenlifetimepolicies description: Microsoft Graph Delete tokenLifetimePolicy call: policies-policies-tokenlifetimepolicy.policiesdeletetokenlifetimepolicies with: If-Match: rest.If-Match outputParameters: - type: object mapping: $. - path: /v1/policies/tokenlifetimepolicies/{tokenlifetimepolicy-id}/appliesto name: policies-tokenlifetimepolicies-tokenlifetimepolicy-id-appliesto description: REST surface for policies-tokenLifetimePolicies-tokenLifetimePolicy-id-appliesTo. operations: - method: GET name: policiestokenlifetimepolicieslistappliesto description: Microsoft Graph List appliesTo call: policies-policies-tokenlifetimepolicy.policiestokenlifetimepolicieslistappliesto with: $orderby: rest.$orderby $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - path: /v1/policies/tokenlifetimepolicies/{tokenlifetimepolicy-id}/appliesto/count name: policies-tokenlifetimepolicies-tokenlifetimepolicy-id-appliesto-count description: REST surface for policies-tokenLifetimePolicies-tokenLifetimePolicy-id-appliesTo-$count. operations: - method: GET name: policiestokenlifetimepoliciesappliestogetcount3209 description: Microsoft Graph Get the number of the resource call: policies-policies-tokenlifetimepolicy.policiestokenlifetimepoliciesappliestogetcount3209 outputParameters: - type: object mapping: $. - path: /v1/policies/tokenlifetimepolicies/{tokenlifetimepolicy-id}/appliesto/{directoryobject-id} name: policies-tokenlifetimepolicies-tokenlifetimepolicy-id-appliesto-directoryobject description: REST surface for policies-tokenLifetimePolicies-tokenLifetimePolicy-id-appliesTo-directoryObject-. operations: - method: GET name: policiestokenlifetimepoliciesgetappliesto description: Microsoft Graph Get appliesTo from policies call: policies-policies-tokenlifetimepolicy.policiestokenlifetimepoliciesgetappliesto with: $select: rest.$select $expand: rest.$expand outputParameters: - type: object mapping: $. - type: mcp namespace: policies-policies-tokenlifetimepolicy-mcp port: 9090 transport: http description: MCP adapter for Microsoft Graph Policies — policies.tokenLifetimePolicy. One tool per consumed operation, routed inline through this capability's consumes block. tools: - name: microsoft-graph-list-tokenlifetimepolicies description: Microsoft Graph List tokenLifetimePolicies hints: readOnly: true destructive: false idempotent: true call: policies-policies-tokenlifetimepolicy.policieslisttokenlifetimepolicies with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-create-tokenlifetimepolicy description: Microsoft Graph Create tokenLifetimePolicy hints: readOnly: false destructive: false idempotent: false call: policies-policies-tokenlifetimepolicy.policiescreatetokenlifetimepolicies with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-get-number-resource description: Microsoft Graph Get the number of the resource hints: readOnly: true destructive: false idempotent: true call: policies-policies-tokenlifetimepolicy.policiestokenlifetimepoliciesgetcount12df outputParameters: - type: object mapping: $. - name: microsoft-graph-get-tokenlifetimepolicy description: Microsoft Graph Get tokenLifetimePolicy hints: readOnly: true destructive: false idempotent: true call: policies-policies-tokenlifetimepolicy.policiesgettokenlifetimepolicies with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-update-tokenlifetimepolicy description: Microsoft Graph Update tokenlifetimepolicy hints: readOnly: false destructive: false idempotent: true call: policies-policies-tokenlifetimepolicy.policiesupdatetokenlifetimepolicies with: body: tools.body outputParameters: - type: object mapping: $. - name: microsoft-graph-delete-tokenlifetimepolicy description: Microsoft Graph Delete tokenLifetimePolicy hints: readOnly: false destructive: true idempotent: true call: policies-policies-tokenlifetimepolicy.policiesdeletetokenlifetimepolicies with: If-Match: tools.If-Match outputParameters: - type: object mapping: $. - name: microsoft-graph-list-appliesto description: Microsoft Graph List appliesTo hints: readOnly: true destructive: false idempotent: true call: policies-policies-tokenlifetimepolicy.policiestokenlifetimepolicieslistappliesto with: $orderby: tools.$orderby $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $. - name: microsoft-graph-get-number-resource-2 description: Microsoft Graph Get the number of the resource hints: readOnly: true destructive: false idempotent: true call: policies-policies-tokenlifetimepolicy.policiestokenlifetimepoliciesappliestogetcount3209 outputParameters: - type: object mapping: $. - name: microsoft-graph-get-appliesto-policies description: Microsoft Graph Get appliesTo from policies hints: readOnly: true destructive: false idempotent: true call: policies-policies-tokenlifetimepolicy.policiestokenlifetimepoliciesgetappliesto with: $select: tools.$select $expand: tools.$expand outputParameters: - type: object mapping: $.